Commit Graph

193 Commits

Author SHA1 Message Date
ivan
c89aaab9eb Remove retired sarex-contour and yc-k8s-test configurations 2026-11-25 13:47:45 +05:00
ivan
5fad7d54e8 stand: enable Django ams-sync events with Vault-backed Kafka credentials 2026-11-23 16:58:22 +05:00
ivan
a7be87135c stand: add stage frontend/export services and align IAM integrations 2026-11-23 15:36:44 +05:00
ivan
861d096a91 ++ 2026-11-20 14:23:11 +05:00
emelinda
05bfd32067 django/uralkal: hotfix changelog без пересборки образа + отключить запись тел запросов
- activities-tasks-configmap: пропатченный tasks.py (request_body Optional — pydantic v2
  падал на None в send_to_django_action/send_to_system_log), смонтирован поверх
  /opt/sarex/sarex/activities/tasks.py в backend и celery.
  ВРЕМЕННО: убрать конфигмап и маунты после выката образа с 76a3fbad5
- backend/celery: SERVER_LOGINGG_BODY_ACTION=0 — не писать request_body/response_body
  в Action (csrf-токены и персональные данные в логе действий)
- volumes в патчах продублированы из base полностью: в HelmRelease-патчах списки
  заменяются целиком, частичное добавление отрезает base-маунты
2026-11-17 01:50:24 +03:00
emelinda
6029dd2984 django/uralkal: hotfix changelog без пересборки образа — пропатченный tasks.py
(Optional request_body, pydantic v2) через configmap-маунт в backend и celery;
2026-11-17 01:36:01 +03:00
emelinda
0c0dfc460c django/uralkal: CACHE_HOST/CACHE_PORT=redis для backend и celery — CacheSettings дефолтит на localhost, refresh_cache_service_accounts падал с Connection refused 2026-11-17 01:22:25 +03:00
emelinda
cee4a7c2b4 django/uralkal: включить changelog — ActivityMiddleware в django-configmap, GATEWAY_HOST→pdm-svc, убрать wb-хосты из celery 2026-11-17 00:37:26 +03:00
emelinda
e2d69d037e Merge remote-tracking branch 'origin/master' 2026-11-16 18:03:10 +03:00
emelinda
2e52d00c79 django/uralkal: enable user action changelog with 14-day rotation
SERVER_USE_CHANGELOG=True and SERVER_CHANGELOG_MODE_CELERY=True on backend
and celery (worker already runs on the default queue), rotation enabled via
SERVER_CHANGELOG_ROTATION=True, SERVER_CHANGELOG_PERIOD_IN_DAYS=14.
celery patch now carries the full envs list (copy of base + changelog
vars) since the kustomize merge replaces the list wholesale.
2026-11-16 18:00:37 +03:00
ivan
79cbc5a02f ++ 2026-11-16 19:46:53 +05:00
ivan
096db3d70b Update brusnika-stage images 2026-11-16 19:30:19 +05:00
ivan
35587e5f8b stand: use OIDC client ID for Django frontend 2026-11-16 01:27:15 +05:00
ivan
f4bf1baae2 stand: update frontend Zitadel client ID 2026-11-16 01:19:30 +05:00
ivan
15f796258a stand: correct Django frontend Zitadel client ID 2026-11-16 01:13:41 +05:00
ivan
2585a25e60 stand: update Django frontend Zitadel client ID 2026-11-15 20:51:05 +05:00
ivan
3e6cbc7ed4 stand: frontend django включён, zitadel-configmap с client_id стенда и login-хостом контура; istio-config: маршрут / на frontend-svc.django 2026-11-15 18:40:48 +05:00
ivan
ac83947697 stand: волна 3 — flows, iam, inspections, issues, mapper, notes, rfi, system-log, workspaces, contracts, message-hub, premises; django: Job сервисного пользователя для django_auth 2026-11-13 12:28:48 +05:00
ivan
7bff92b9e3 stand: celery — шаблон django-s3 с тем же набором переменных, что в base 2026-11-09 14:55:48 +05:00
ivan
fb49327aa7 stand: django в слое 50-apps; оверлей меняет только хосты и шаблоны Vault стенда, frontend и srx-admin отключены 2026-11-09 14:31:43 +05:00
ivan
857bd4a675 uralkal: upload-oblako-las — креды и хост MinIO из documentations_s3_service_account_json 2026-11-05 17:31:39 +05:00
ivan
1c1b866331 uralkal: upload-oblako-las — curl без проверки сертификата (TLS-инспекция в сети Уралкалия) 2026-11-05 17:18:42 +05:00
ivan
142b28be80 uralkal: django — Job upload-oblako-las скачивает Облако.las и кладёт в MinIO бакет django 2026-11-05 17:11:13 +05:00
ivan
297f4b0adf uralkal: zitadel-action — при 403 на admin API берёт организацию токена через /management/v1/orgs/me 2026-11-05 16:26:29 +05:00
ivan
59a02bc7dc uralkal: django — Job создаёт в Zitadel action createUser на External Authentication / Pre Creation 2026-11-05 16:15:10 +05:00
ivan
1fc4742931 uralkal: kc-sync-users — синхронизация из realm sarex 2026-11-05 15:48:45 +05:00
ivan
b9c73a2d28 uralkal: kc-sync-users — привязка пользователей к компании id 1 (--sync-users-def-company-id 1) 2026-11-05 15:01:37 +05:00
ivan
e5a0419545 uralkal: django — CronJob kc-sync-users, синхронизация пользователей из Keycloak camunda каждые 10 минут 2026-11-05 14:37:08 +05:00
ivan
b9022560f3 ++ 2026-11-02 14:32:11 +05:00
ivan
104bde49c4 ++ 2026-10-29 18:23:28 +05:00
ivan
b61571a858 ++ 2026-10-29 17:36:35 +05:00
ivan
03eb83b362 ++ 2026-10-26 14:09:35 +05:00
ivan
b3a1fe63c2 ++ 2026-10-24 12:53:11 +05:00
ivan
0c0f5c7f55 ++ 2026-10-21 20:32:59 +05:00
ivan
b36a349aff ++ 2026-10-15 16:58:22 +05:00
ivan
7f48b1ad0d django: take HOST from DJANGO_HOST
The base django-configmap hardcoded HOST to the yc-k8s-test domain, and every
cluster inheriting it got that value. HOST now reads DJANGO_HOST with the old
value as the default; backend in vad, uralkal and d8-ugmk-prod sets its own
public host. celery is left on the default.
2026-10-14 16:25:11 +05:00
ivan
53f4886b29 ++ 2026-10-07 16:16:15 +05:00
emelinda
2564167f27 Update S3 proxy image reference to stable in brusnika-prod configuration 2026-10-06 00:01:12 +03:00
emelinda
7301e50947 Update AWS_API_ENDPOINT value in brusnika-prod S3 proxy configuration 2026-10-05 23:56:47 +03:00
ivan
0bd15c6ae5 ++ 2026-10-02 14:57:19 +05:00
ivan
7531341438 ++ 2026-10-02 12:33:16 +05:00
ivan
6251cfed5c brusnika-stage: bring images and env vars up to wb level
Missing env vars copied from wb for ams-sync, attachments, bi/frontend,
checklists, django (celery, export-project, sarex-backend), documentations
(api, filestream, pdm), eav, flows (backend, celery, frontend), iam,
inspections, issues (backend, celery), rfi, transmittal/worker.

Image tags updated to match wb for flows (backend/celery/frontend), iam.

Known issue, not yet fixed in this commit: several of the copied env
values are wb-specific hosts (*.wb.ru, one uralmine.com) that don't apply
to brusnika-stage — ZITADEL_HOST/ZITADEL_DOMAIN (django, documentations,
iam), DATABASE_HOST/FLOWS_DB_HOST/ISSUES_DB_HOST (checklists, flows),
SUPERSET_HOST (bi), DJANGO_BASE_HOST/SAREX_BACKEND_URL (flows,
inspections), RESOURCES_INTERNAL_HOST/RESOURCE_URL (ams-sync, django,
flows, notes-related). To be corrected in a follow-up commit.

bi/backend.yaml, bim/backend.yaml and notes/backend.yaml were reverted
before this commit (image-tag updates for bi-backend/bim/notes and bi's
SUPERSET_* env additions are not included).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-01 18:04:55 +05:00
ivan
979e5c2a51 uralkal: clear CPU/memory requests for all 36 business apps
Every services.<svc>.deployment.resources.requests.{cpu,memory} across the
36 uralkal apps (69 HelmRelease/service entries total) is now nulled via a
kustomize patch, so Helm never renders a requests block for these pods on
uralkal — Kubernetes won't reserve CPU/memory for them there.

Where a uralkal patch already existed for that service (13 cases:
documentations api/filestream/pdf-markings-amqp, django backend, flows
backend/celery, pm backend/celery, transmittal backend/worker, bi,
document-link, stamp-verification, message-hub), the null block was added
into that same file. Where no uralkal patch existed yet (55 cases,
including all 13 cde workers and every plain frontend), a new minimal
patch file was added and wired into that app's kustomization.yaml.

vad and the other clusters are untouched — only apps/*/uralkal/* changed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-30 15:06:51 +03:00
ivan
b32e4667c1 ++ 2026-09-30 14:11:08 +03:00
ivan
f48a81f5c2 ++ 2026-09-30 11:10:45 +03:00
ivan
9ec172c0f4 uralkal: replicate the vad business-app footprint (36 apps) with uralkal domains
apps/<app>/uralkal mirrors apps/<app>/vad for all 36 apps from
clusters/vad/kustomization.yaml, with domains remapped (not a suffix swap —
vad's sarex-login.vadroad.ru etc. use a different host scheme than uralkal's
login.sarex.local.uralkali.com). Two things are left as explicit
placeholders pending real infra: the Zitadel client_id/org_id
(TBD_URALKAL_ZITADEL_CLIENT_ID, since uralkal's Zitadel has no application
registered yet) and the Kafka CA cert in pm/issues/message-hub/flows
(copied from vad, will need swapping once uralkal's Kafka actually
generates its own CA, same as vad's history).

infrastructure/s3-proxy/uralkal: new component, nginx upstream points at
the single uralkal minio endpoint (10.133.0.245:9000) from terraform,
unlike vad's 4-node list.

clusters/uralkal/kustomization.yaml: wires in s3-proxy + all 36 apps.

infrastructure/istio-config/uralkal/istio-config.yaml: adds the 28
path-routed virtualServices under sarex.local.uralkali.com (mirroring
vad's sarex.vadroad.ru routing, incl. the documentations-api CORS policy)
plus stamp-verification/document-link/s3 on their already-declared hosts.
Pre-existing zitadel/superset/camunda-operate blocks are untouched.

apps/django/vad/backend.yaml: drop a stale explanatory comment (also
removed from the uralkal copy before this commit).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-28 14:56:17 +03:00
ivan
6e8151fed6 ++ 2026-09-27 22:34:07 +03:00
emelinda
cdaf20f7cc Add "Справочники" section to django-configmap navigation menu. 2026-09-24 21:26:42 +03:00
ivan
f6df384388 added asterus 2026-09-23 23:36:27 +05:00
ivan
a1afea5ae3 ++ 2026-09-18 17:56:09 +05:00