iac/infrastructure/security-audit/uralkal/kustomization.yaml
emelinda 14d3cf0ca3 - istio-config/uralkal: RequestAuthentication audit-jwt (zitadel + camunda-keycloak
issuers; claims to x-sarex-audit-sub/org and x-user-id), zitadel-jwks ServiceEntry;
  istio-pilot/uralkal: PILOT_JWT_ENABLE_REMOTE_JWKS=envoy
- opentelemetry-collector/uralkal: transform/mask strips tokens and JWTs from span
  URL attributes before export (same rules as access-collector)
- security-audit: access journal is mesh-wide now (Telemetry mesh-audit-access,
  access-collector NetworkPolicy/AuthorizationPolicy allow all mesh sources on 4317)
2026-11-08 19:29:15 +03:00

45 lines
2.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
- ../mesh # istio-system; применять после раскатки провайдера audit-access в istio-pilot/uralkal
patches:
- path: audit-collector.yaml
- path: access-collector.yaml
# События Zitadel отложены (нет PAT); включать вместе с idp-actions-bootstrap в base/kustomization.yaml.
# - path: idp-actions-bootstrap.yaml
# Селектор ingress-шлюза (HelmRelease istio-system/ingressgateway): replace, а не merge —
# merge-patch CRD оставил бы и заглушку security-audit/gateway.
- target:
kind: EnvoyFilter
name: strip-audit-headers
patch: |-
- op: replace
path: /spec/workloadSelector/labels
value: {istio: ingressgateway}
# Контур-специфика audit-processor (Kafka → MinIO/Parquet).
- target:
kind: Deployment
name: audit-processor
patch: |-
- op: add
path: /spec/template/spec/containers/0/env
value:
- name: K8S_AUDIT_CONTOUR
value: uralkal
# MinIO контура — внешний, без TLS: strict-валидация (app.env ∉ dev/local/stand)
# не пройдёт по minio.secure. Послабления стенда при этом используются только здесь:
# Kafka по-прежнему TLS+SASL, start_from earliest.
- name: K8S_AUDIT_APP_ENV
value: stand
# Отладочное эхо записанных в S3 событий в stdout. Только на время запуска (п.20):
# после проверки потока выключить (false) и убрать комментарий.
- name: K8S_AUDIT_LOG_S3_ECHO
value: "true"
# Service чарта kafka-contour; тот же адрес у коллекторов и приложений.
- name: K8S_AUDIT_KAFKA_BROKERS
value: kafka-kafka-contour.kafka.svc.cluster.local:9092
# Внешний MinIO (ServiceEntry minio.uralkal.external в istio-config).
- name: K8S_AUDIT_MINIO_ENDPOINT
value: 10.133.0.245:9000