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.
741f4f5 set minio.admin to the tfstate account by assumption; tfstate is a
regular user, so admin API calls from live/s3 failed with
SignatureDoesNotMatch on minio_iam_user refresh. The real root account is
the one stored in secrets/minio/admin version 1 (2026-09-25). Without this
change vault-secrets would overwrite the manually restored Vault value back
to tfstate on the next apply.
Only minio.admin.root_user/root_password change in the decrypted content;
the other ciphertext lines are sops re-encrypting non-string values.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pipeline's validate step failed before terraform even ran:
load_admin_creds: EMPTY creds: MINIO_ADMIN_USER MINIO_ADMIN_PASSWORD
— VAULT_TOKEN cannot read the matching secrets/* paths
scripts/load_admin_creds.sh unconditionally reads secrets/minio/admin
(rootUser/rootPassword) to configure the minio-buckets provider in
live/terragrunt.hcl, used by live/s3 to actually create buckets. uralkal's
minio.admin was never enabled (only per-app minio.apps.* entries existed)
so that Vault path didn't exist yet. Using the same admin creds
(tfstate/09Eat4eiMcg5) already set on every minio.apps.* entry — this is
the real external minio endpoint's admin account, not per-app.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Root cause of documentations-api's 'panic: invalid system auth format'
crash loop: uralkal's django_auth had username/password set manually but
no matching token — with generate:true and no manual token, terraform
generates an INDEPENDENT random 40-char string for token, unrelated to
username/password. Any consumer decoding token as base64(username:password)
(documentations-api's sarex_backend client does exactly this) gets garbage
with no ':' separator and panics.
Fixed by using the same username/password/token triple as vad
(hagen013/zealot096), rather than deriving a new token for uralkal's own
credentials, per request.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>