66565367f1
8 routes over Customer + orders/payments sub-resources, proxying to classic-models-api. openid-connect with RFC 8693 token exchange to classic-models-api audience, rate-limiting, proxy-cache, audit-log — same plugin set and structure as catalog-api's REST surface. Not deployed: dev/gitrepository.yaml points at a gitea repo that doesn't exist yet (kong-customers-api.git, 404). No MCP layer yet either, unlike catalog-api.
31 lines
692 B
YAML
31 lines
692 B
YAML
apiVersion: configuration.konghq.com/v1
|
|
kind: KongPlugin
|
|
metadata:
|
|
name: ${NAME}-customers-api-openid-connect
|
|
namespace: ${NAMESPACE}
|
|
plugin: openid-connect
|
|
config:
|
|
issuer: ${OIDC_ISSUER}
|
|
audience_required: ${BACKEND_AUDIENCE}
|
|
auth_methods:
|
|
- bearer
|
|
display_errors: false
|
|
ssl_verify: true
|
|
consumer_claims:
|
|
- - sub
|
|
consumer_by:
|
|
- custom_id
|
|
- username
|
|
consumer_optional: true
|
|
client_id:
|
|
- ${TOKEN_EXCHANGE_CLIENT_ID}
|
|
client_secret:
|
|
- ${TOKEN_EXCHANGE_CLIENT_SECRET}
|
|
token_exchange:
|
|
subject_token_issuers:
|
|
- issuer: ${OIDC_ISSUER}
|
|
conditions: {}
|
|
request:
|
|
audience: ${BACKEND_AUDIENCE}
|
|
scopes: ${BACKEND_SCOPES}
|