secrets[].data must be base64 (like k8s .data); b081c18 stored the username
and password as plain text, so the secrets stack failed in plan with
'failed to decode base64 data' / 'not valid UTF-8'. Same values, encoded.
Namespace entry (regcred only, flux creates the namespace), database
premises_db with uuid-ossp, postgres creds in apps/premises/postgres, kafka
creds reusing the flows user (as premises shares proc with flows in vad),
S3 on s3.uralmine.com with the static key documentations already uses,
bucket premises, and the premises vault role bound to premises-vault.
Same host and account as documentations: minio/apps/attachments now holds
minioadmin and http://10.133.0.245:9000 instead of tfstate via s3-proxy.
Bucket stays attachments.
workflows-engine injects it from vault/common/django_auth for jobs using the
comparison-api-db service (pkg/kube_services/services.go). Connection to the
comparisons database on 10.133.0.249:5432.
minio/apps/documentations is read only by documentations-hasher and
documentations-pdf-markings-amqp. Point it at 10.133.0.245:9000 with the
MinIO root account, same as documentations-api and processing already use,
instead of tfstate via s3-proxy (pdf-markings got 503 on HeadObject).
All 13 cde deployments read their whole environment from vault/apps/cde and
were stuck in Init since the entry was dropped in 1faf404. Same shape as vad,
with uralkal values: documentations_db on 10.133.0.249, MinIO root on
10.133.0.245:9000. PUBLIC_KEY is referenced from vault/common/rsa_keys because
the contour has its own generated key; AMQP_* stay referenced from
rabbitmq/apps/cde.
The value was retyped from a screen and had 1/l swapped in two places;
processing jobs failed with 'password authentication failed for user
documentations'. Replaced with the value taken as a hex dump from Vault.
documentations_s3_service_account_json switches from the tfstate account via
s3-proxy to minioadmin on the MinIO host directly. yc-s3-service-account.json
(read by processing, present in vad and ugmk) is added with the same values;
uralkal did not have it.
Step 2 of 2 - push only after the pipeline for the previous commit has
applied. secrets[] writes kafka/apps/issues and kafka/apps/flows (user proc)
and kafka/apps/pm (user pm) from the kafka-topics outputs, so the password
in Vault is the one actually set in the broker. Fields are flat
(username, password, sasl_mechanism, ...), there is no nested auth map.
Step 1 of 2. kafka-topics creates SCRAM users proc (issues, flows) and pm
(pm, message-hub) and topics issues_broadcast_prod, assets_broadcast,
message-hub-prod, iam.resource.updated.v2, iam.resource.deleted.v2.
vault-secrets stops writing kafka/apps/{issues,flows,pm}: those held a
generated password for users that were never created in the broker. Step 2
re-creates the same paths from the kafka-topics outputs via secrets[]; it is
a separate commit because vault-secrets runs after secrets and its destroy
would soft-delete the version secrets has just written.
Same key and shape as vad/ugmk/sarex-contour (Zitadel application key JSON);
documentations api and filestream render it from vault/common/django_auth.
iam-backend crash-looped on '/vault/secrets/iam-zitadel: syntax error:
unexpected end of file': the key was missing from vault/common/django_auth,
so the agent template rendered ZITADEL_ACCESS_TOKEN=<no value> and the
entrypoint failed sourcing it.