Commit Graph

458 Commits

Author SHA1 Message Date
e572069fab ++ stand kafka without acls 2026-10-28 11:07:28 +03:00
ae20e05deb ++ stand no rabbitmq adoption 2026-10-28 11:05:27 +03:00
f2485e1f14 ++ stand minio endpoint and rabbitmq admin env 2026-10-28 11:01:40 +03:00
2f0f2e37c8 ++ stand test entities 2026-10-28 10:56:22 +03:00
a1d2db6bd7 ++ stand camunda databases 2026-10-28 10:51:02 +03:00
4f9d236f91 ++ stand postgresql-zitadel vault role 2026-10-28 10:36:17 +03:00
93b5272247 ++ terraform slice jobs
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 2m5s
Terraform Terragrunt (contour) / plan (push) Successful in 1m32s
Terraform Terragrunt (contour) / apply (push) Successful in 1m13s
2026-10-27 23:12:09 +03:00
49437054e6 ++ stand contract env 2026-10-27 23:10:33 +03:00
183240224f ++ documentations conn limit
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m13s
Terraform Terragrunt (contour) / plan (push) Successful in 1m10s
Terraform Terragrunt (contour) / apply (push) Successful in 1m2s
2026-10-27 10:35:05 +03:00
ivan
b7e1f68bfc uralkal: rename cross_sections_api_db_prod.json -> cross-section-api-db-prod.json
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m21s
Terraform Terragrunt (contour) / plan (push) Successful in 1m43s
Terraform Terragrunt (contour) / apply (push) Successful in 1m12s
2026-10-26 13:38:27 +05:00
ivan
9481653f55 uralkal: add cross_sections_api_db_prod.json to processing extras 2026-10-26 13:22:44 +05:00
ivan
1135ea637d uralkal: issues S3 -> MinIO directly with the root account
minio/apps/issues now holds minioadmin and http://10.133.0.245:9000 instead
of tfstate via s3-proxy, same as documentations and attachments.
2026-10-26 12:48:10 +05:00
ivan
c0c85072c9 ugmk: base64-encode processing-rabbitmq data
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 2m6s
Terraform Terragrunt (contour) / plan (push) Successful in 2m5s
Terraform Terragrunt (contour) / apply (push) Successful in 1m35s
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.
2026-10-23 16:27:30 +05:00
ivan
856ab546bc ugmk: provision premises
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.
2026-10-23 16:06:11 +05:00
ivan
fa8c6ddecf uralkal: attachments S3 -> MinIO directly with the root account
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m9s
Terraform Terragrunt (contour) / plan (push) Successful in 1m6s
Terraform Terragrunt (contour) / apply (push) Successful in 1m6s
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.
2026-10-22 12:39:44 +05:00
ivan
0d651e9d33 uralkal: comparisons-db-prod.json use_ssl false 2026-10-22 11:47:25 +05:00
ivan
6d17baf077 uralkal: add comparisons-db-prod.json for processing
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.
2026-10-22 11:24:56 +05:00
ivan
85a1b794fb uralkal: hasher and pdf-markings-amqp read S3 straight from MinIO
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m43s
Terraform Terragrunt (contour) / plan (push) Successful in 1m27s
Terraform Terragrunt (contour) / apply (push) Successful in 1m28s
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).
2026-10-21 17:56:05 +05:00
ivan
7eab826e99 uralkal: restore cde-env (vault/apps/cde)
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 58s
Terraform Terragrunt (contour) / plan (push) Successful in 1m2s
Terraform Terragrunt (contour) / apply (push) Successful in 1m3s
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.
2026-10-08 14:12:25 +05:00
ivan
2751fbf457 uralkal: fix bim password in bim-api-v2-db-prod.json
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m20s
Terraform Terragrunt (contour) / plan (push) Successful in 1m22s
Terraform Terragrunt (contour) / apply (push) Successful in 1m13s
The value was retyped from a screen with O in place of 0; replaced with the
value taken as a hex dump from Vault.
2026-10-07 16:14:19 +05:00
ivan
81fb85cbf6 uralkal: fix documentations password in pdm-api-db-prod.json
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.
2026-10-07 16:13:13 +05:00
ivan
51333be3a3 uralkal: add bim-api-v2-db-prod.json for processing
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m10s
Terraform Terragrunt (contour) / plan (push) Successful in 1m16s
Terraform Terragrunt (contour) / apply (push) Successful in 1m14s
Same shape as vad: connection to database bim as user bim on
10.133.0.249:5432, read by processing from vault/common/django_auth.
2026-10-07 14:56:52 +05:00
ivan
b1b0c2cb70 uralkal: add pdm-api-db-prod.json for processing
Same shape as vad: connection to documentations_db as user documentations on
10.133.0.249:5432, read by processing from vault/common/django_auth.
2026-10-07 14:51:08 +05:00
ivan
9a31b1ee28 uralkal: S3 JSON for documentations and processing -> MinIO root at 10.133.0.245:9000
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.
2026-10-07 14:41:04 +05:00
ivan
5d8ac86460 uralkal: deliver kafka creds for issues, flows and pm from kafka-topics
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m16s
Terraform Terragrunt (contour) / plan (push) Successful in 1m19s
Terraform Terragrunt (contour) / apply (push) Successful in 1m19s
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.
2026-10-06 22:38:02 +05:00
ivan
70e2687459 uralkal: kafka users proc and pm, application topics; stop writing stale kafka creds
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.
2026-10-06 22:37:35 +05:00
ivan
f4994d8710 uralkal: add documentations_zitadel_account_json to django_auth
Same key and shape as vad/ugmk/sarex-contour (Zitadel application key JSON);
documentations api and filestream render it from vault/common/django_auth.
2026-10-06 16:04:49 +05:00
ivan
50d248185b uralkal: rotate django_zitadel_access_token
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m9s
Terraform Terragrunt (contour) / plan (push) Successful in 1m13s
Terraform Terragrunt (contour) / apply (push) Successful in 1m12s
2026-10-06 14:08:45 +05:00
ivan
5a7d03456c uralkal: add django_zitadel_access_token to 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.
2026-10-06 12:51:59 +05:00
9e18c1eae2 ++ retrigger pipeline
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m15s
Terraform Terragrunt (contour) / plan (push) Successful in 1m13s
Terraform Terragrunt (contour) / apply (push) Successful in 1m17s
2026-10-05 16:37:15 +03:00
46306597ad ++ minio admin guard 2026-10-05 16:30:21 +03:00
ivan
2255d1c94f uralkal: minio admin is minioadmin, not tfstate
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>
2026-10-05 15:08:30 +05:00
ivan
2cb10af8bd ++ retrigger contour pipeline (comment-only change)
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m22s
Terraform Terragrunt (contour) / plan (push) Successful in 1m10s
Terraform Terragrunt (contour) / apply (push) Successful in 1m9s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 14:42:19 +05:00
ivan
22fd9ddfb9 ++ retrigger contour pipeline (comment-only change)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 14:28:18 +05:00
ivan
741f4f5e5e uralkal: write secrets/minio/admin (rootUser/rootPassword) so CI's load_admin_creds.sh can read it
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>
2026-10-05 14:07:39 +05:00
ivan
e19c99038d uralkal: match vad's django_auth credentials (username/password/token)
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>
2026-10-05 13:53:07 +05:00
ivan
b081c18933 ugmk: set processing rabbitmq creds (rabbitmq/apps/processing) to user sarex
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m9s
Terraform Terragrunt (contour) / plan (push) Successful in 1m11s
Terraform Terragrunt (contour) / apply (push) Successful in 1m13s
No terraform-managed rabbitmq vhost/user named 'processing' existed for
ugmk (infrastructure.yaml's rabbitmq.users has no such entry), yet
processing's Vault role already has rabbitmq/apps/processing in
read_paths and its engine templates read username/password from there.
Added as an opaque literal secret, matching the existing user sarex on
the broker rather than provisioning a new dedicated vhost/user.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-30 18:36:35 +03:00
f205274cf3 ++ first contour pipeline 2026-09-30 11:22:49 +03:00
1e344b29d5 ++ ugmk zitadel vault sa
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m11s
Terraform Terragrunt (contour) / plan (push) Successful in 1m11s
Terraform Terragrunt (contour) / apply (push) Successful in 1m13s
2026-09-29 21:41:10 +03:00
ivan
1faf40426c uralkal: drop cde-env for now — its extra_fields read rabbitmq/apps/cde and vault/common/rsa_keys, which vault-secrets hasn't created yet on a fresh apply, and secrets runs before vault-secrets alphabetically. Re-add once cde-env's real config is ready, via the STACKS=vault-secrets bootstrap run.
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m10s
Terraform Terragrunt (contour) / plan (push) Successful in 1m15s
Terraform Terragrunt (contour) / apply (push) Successful in 1m18s
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-28 22:27:16 +03:00
ivan
04c8946b53 uralkal: rename databases to match the reference naming (django->sarex_db, documentations->documentations_db, notes->notes_db, flows->flow_db, pm->pm_db, workspaces_db->workspaces)
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m13s
Terraform Terragrunt (contour) / plan (push) Successful in 1m14s
Terraform Terragrunt (contour) / apply (push) Successful in 1m11s
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-28 14:55:07 +03:00
ivan
b0435647ac uralkal: order infra for the 36 business apps replicated in iac
namespaces/databases/buckets/rabbitmq vhosts for all app namespaces
(mirrors the vad set: workspaces, eav, notes, rfi, checklists, contracts,
django, documentations, processing, flows, issues, bim, attachments, bi,
comparisons, drawings, inspections, mapper, measurements, subscriptions,
system-log, transmittal, iam, pm, message-hub, cde).

vault: applications/read_paths for the 26 apps that need Vault secrets,
common.django_auth/rsa_keys/smtp_auth, minio.apps (admin creds tfstate/
09Eat4eiMcg5 via s3-proxy, matching the iac s3-proxy component), kafka.apps
(random creds, kafka users still need manual SCRAM creation like vad).

cde-env carries the same structure as vad's but without DATABASE_URL
(documentations DB creds not known until this DB is actually created) and
without a real Camunda/Zitadel-issued secret — those are follow-ups.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-28 14:44:49 +03:00
d9158a6b8a ++ uralkal zitadel bundled
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m8s
Terraform Terragrunt (contour) / plan (push) Successful in 1m8s
Terraform Terragrunt (contour) / apply (push) Successful in 1m9s
2026-09-25 17:27:14 +03:00
df13f562c0 ++ uralkal apps vault
All checks were successful
Terraform Terragrunt (contour) / validate (push) Successful in 1m7s
Terraform Terragrunt (contour) / plan (push) Successful in 1m13s
Terraform Terragrunt (contour) / apply (push) Successful in 1m9s
2026-09-25 16:46:07 +03:00
3696e4d675 ++ uralkal apps infra 2026-09-25 16:26:20 +03:00
b4522737fe ++ uralkal vault infra 2026-09-25 16:18:39 +03:00
f62e062ba3 ++ uralkal test only 2026-09-25 15:40:57 +03:00
f04ef68fdc ++ trigger uralkal 2026-09-25 15:16:08 +03:00
a590a37fb0 ++ uralkal vault block 2026-09-25 14:26:52 +03:00
1a33c9ec5d ++ uralkal test entities 2026-09-25 11:06:10 +03:00