2880e21ef1
16 routes: Office (single key, full CRUD + employees sub-resource) and Employee (single key, full CRUD + reports + customers sub-resources). MCP layer built with the single-route pattern from the start. Only domain where customer role has zero access — verified against ReferenceDataPermission.check(): read_only/product_manager/support get reads, writes are admin-only, customer isn't in the allow-list at all. All 9 MCP tool ACLs reflect this exactly. Keycloak (local): workforce-api-audience + mcp-workforce-audience client scopes, resource clients, broker/librechat attachments. Deploy key and broker secret reused/mirrored, same pattern as every domain since payments-api.
31 lines
692 B
YAML
31 lines
692 B
YAML
apiVersion: configuration.konghq.com/v1
|
|
kind: KongPlugin
|
|
metadata:
|
|
name: ${NAME}-workforce-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}
|