stand: django — база, бакет и vhost, секреты в Vault по путям base, роль django, rsa_keys

This commit is contained in:
ivan 2026-11-09 14:31:43 +05:00
parent acb4bcff25
commit cb9e82b2ff
3 changed files with 67 additions and 1 deletions

View File

@ -17,3 +17,9 @@ namespaces:
secret_prefix: service
services:
- bim
django:
owner: django
manage: false
secret_prefix: service
services:
- django

View File

@ -9,7 +9,7 @@ environments:
create_regcred: false
create_smtp_auth: false
create_django_auth: false
create_rsa_keys: false
create_rsa_keys: true
create_infra_secrets: true
create_infra_policies: true
create_infra_roles: true
@ -55,6 +55,19 @@ environments:
token_ttl: 24h
read_paths:
- apps/bim/postgres
django:
enabled: true
service_account_names:
- django-vault
service_account_namespaces:
- django
token_ttl: 24h
read_paths:
- apps/django/postgres
- rabbitmq/apps/django
- minio/apps/django
- vault/common/rsa_keys
- zitadel/setup
data:
infrastructure:
postgresql:
@ -135,3 +148,37 @@ environments:
targets:
- kind: vault
path: apps/bim/postgres
- id: django-db
schema: postgresql.v1
namespace: django
source:
kind: postgresql_user
ref:
cluster: stand
database: django
user: django
targets:
- kind: vault
path: apps/django/postgres
- id: django-rabbitmq
schema: rabbitmq.v1
namespace: django
source:
kind: rabbitmq_user
ref:
cluster: default
vhost: django
user: django
targets:
- kind: vault
path: rabbitmq/apps/django
- id: django-s3
schema: s3.v1
namespace: django
source:
kind: s3_bucket
ref:
bucket: django
targets:
- kind: vault
path: minio/apps/django

View File

@ -0,0 +1,13 @@
service: django
owner: django
needs:
postgresql:
database: django
user: django
s3:
buckets:
- name: django
rabbitmq:
vhosts:
- django