first commit

This commit is contained in:
Stéphane Tailland
2026-08-23 14:42:26 +02:00
parent 7b7257379f
commit 9c2dd3f8db
8 changed files with 151 additions and 22 deletions
@@ -0,0 +1,42 @@
# Split from gateway-kustomization.yaml on purpose: different change
# cadence (policies get tuned far more often than the Gateway itself gets
# recreated) and different blast radius (a bad policy build/prune can't
# touch the Gateway/DataPlane, and vice versa). Same GitRepository, same
# domain namespace, different path.
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: customers-dev-api-gateway-policies
namespace: flux-system
spec:
interval: 10m
sourceRef:
kind: GitRepository
name: k8s-platform
path: ./dataplane-globalpolicy-template
prune: true
postBuild:
substitute:
NAME: customers-dev
NAMESPACE: customers
# Looked up manually after gateway-kustomization.yaml's
# Gateway/GatewayConfiguration first reconciled — the operator
# auto-names the mirrored KonnectGatewayControlPlane with a random
# suffix, not derivable from NAME. See
# dataplane-globalpolicy-template/global-policies-pluginbindings.yaml's
# comment. Automate this lookup once the self-service pipeline exists.
CONTROL_PLANE_REF_NAME: customers-dev-tw8tn
# Every audience valid anywhere in the customers domain — grows as the
# domain gains APIs.
JWT_AUDIENCE_WHITELIST: '["customers-api"]'
# Deliberate override of dataplane-template-defaults' OIDC_ISSUER (VPS
# Keycloak) — the customers-api client lives only in the local
# in-cluster Keycloak (ns keycloak, keycloak.sttlab.local/realms/
# classic-models, deployed 2026-08-23), a separate IdP instance from
# the VPS one the other domains (catalog, librechat) authenticate
# against. Confirmed reachable in-cluster (OIDC discovery, 200) before
# wiring this in.
OIDC_ISSUER: https://keycloak.sttlab.local/realms/classic-models
substituteFrom:
- kind: ConfigMap
name: dataplane-template-defaults