d0093ad2c7
Post http-log to /customers instead of /logs. Fluent Bit's http input derives the record tag from the request URI, so the path is what identifies this domain in the collector and becomes the Loki label domain=customers. The collector keeps writing every domain to the on-disk audit trail as well, so this is reversible by restoring the previous path. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
46 lines
1.8 KiB
YAML
46 lines
1.8 KiB
YAML
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: customers-dev-api
|
|
namespace: customers
|
|
spec:
|
|
interval: 10m
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: customers-api-dev
|
|
path: ./kong
|
|
prune: true
|
|
dependsOn:
|
|
- name: customers-dev-api-gateway
|
|
namespace: flux-system
|
|
postBuild:
|
|
substitute:
|
|
NAME: customers-dev
|
|
NAMESPACE: customers
|
|
CONTROL_PLANE_REF_NAME: customers-dev-tw8tn
|
|
BACKEND_HOST: classic-models-api.classic-models.svc.cluster.local
|
|
OIDC_ISSUER: https://keycloak.sttlab.local/realms/classic-models
|
|
API_AUDIENCE: '["customers-api"]'
|
|
# Unused today — same dead variable already present in catalog-api's
|
|
# flux-kustomization.yaml (no file under kong/rest/ or kong/mcp/
|
|
# actually reads API_SCOPES_REQUIRED). Kept for parity; fix in both
|
|
# places together if this ever gets wired up for real.
|
|
API_SCOPES_REQUIRED: '["customers:read"]'
|
|
BACKEND_AUDIENCE: '["classic-models-api"]'
|
|
BACKEND_SCOPES: '[]'
|
|
API_RATE_LIMIT_MINUTE: "60"
|
|
# The URI path is the collector's routing key: Fluent Bit tags the
|
|
# record `customers` and turns that into the Loki label domain=customers.
|
|
AUDIT_LOG_ENDPOINT: http://audit-log-collector.observability.svc.cluster.local/customers
|
|
REST_HOSTNAME: customers-dev.sttlab.local
|
|
TOKEN_EXCHANGE_CLIENT_ID: kong-token-exchange-broker
|
|
# Unused today — same dead variable already present in catalog-api's
|
|
# flux-kustomization.yaml (kong/mcp/openid-connect.yaml uses
|
|
# API_AUDIENCE for its audience_required/token_exchange target, not
|
|
# this). Kept for parity/documentation of what the MCP layer's real
|
|
# token audience is meant to be.
|
|
MCP_AUDIENCE: '["mcp-customers"]'
|
|
substituteFrom:
|
|
- kind: Secret
|
|
name: customers-token-exchange-broker
|