stand: волна 1 — базы и секреты Vault для drawings, bi, checklists, comparisons

This commit is contained in:
ivan 2026-11-09 15:03:17 +05:00
parent d934c7a3a1
commit 99fa5864b7
6 changed files with 138 additions and 0 deletions

View File

@ -23,3 +23,27 @@ namespaces:
secret_prefix: service secret_prefix: service
services: services:
- django - django
drawings:
owner: drawings
manage: false
secret_prefix: service
services:
- drawings
bi:
owner: bi
manage: false
secret_prefix: service
services:
- bi
checklists:
owner: checklists
manage: false
secret_prefix: service
services:
- checklists
comparisons:
owner: comparisons
manage: false
secret_prefix: service
services:
- comparisons

View File

@ -68,6 +68,44 @@ environments:
- minio/apps/django - minio/apps/django
- vault/common/rsa_keys - vault/common/rsa_keys
- zitadel/setup - zitadel/setup
drawings:
enabled: true
service_account_names:
- drawings-vault
service_account_namespaces:
- drawings
token_ttl: 24h
read_paths:
- apps/drawings/postgres
bi:
enabled: true
service_account_names:
- bi-vault
service_account_namespaces:
- bi
token_ttl: 24h
read_paths:
- apps/bi/postgres
checklists:
enabled: true
service_account_names:
- checklists-vault
service_account_namespaces:
- checklists
token_ttl: 24h
read_paths:
- apps/checklists/postgres
- vault/common/rsa_keys
comparisons:
enabled: true
service_account_names:
- comparisons-vault
service_account_namespaces:
- comparisons
token_ttl: 24h
read_paths:
- apps/comparisons/postgres
- vault/common/rsa_keys
data: data:
common: common:
rsa_keys: rsa_keys:
@ -185,3 +223,51 @@ environments:
targets: targets:
- kind: vault - kind: vault
path: minio/apps/django path: minio/apps/django
- id: drawings-db
schema: postgresql.v1
namespace: drawings
source:
kind: postgresql_user
ref:
cluster: stand
database: drawings
user: drawings
targets:
- kind: vault
path: apps/drawings/postgres
- id: bi-db
schema: postgresql.v1
namespace: bi
source:
kind: postgresql_user
ref:
cluster: stand
database: bi
user: bi
targets:
- kind: vault
path: apps/bi/postgres
- id: checklists-db
schema: postgresql.v1
namespace: checklists
source:
kind: postgresql_user
ref:
cluster: stand
database: checklists
user: checklists
targets:
- kind: vault
path: apps/checklists/postgres
- id: comparisons-db
schema: postgresql.v1
namespace: comparisons
source:
kind: postgresql_user
ref:
cluster: stand
database: comparisons
user: comparisons
targets:
- kind: vault
path: apps/comparisons/postgres

View File

@ -0,0 +1,7 @@
service: bi
owner: bi
needs:
postgresql:
database: bi
user: bi

View File

@ -0,0 +1,7 @@
service: checklists
owner: checklists
needs:
postgresql:
database: checklists
user: checklists

View File

@ -0,0 +1,7 @@
service: comparisons
owner: comparisons
needs:
postgresql:
database: comparisons
user: comparisons

View File

@ -0,0 +1,7 @@
service: drawings
owner: drawings
needs:
postgresql:
database: drawings
user: drawings