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.
24 lines
620 B
YAML
24 lines
620 B
YAML
apiVersion: configuration.konghq.com/v1
|
|
kind: KongPlugin
|
|
metadata:
|
|
name: ${NAME}-workforce-api-audit-capture-request
|
|
namespace: ${NAMESPACE}
|
|
plugin: pre-function
|
|
config:
|
|
access:
|
|
- "kong.ctx.shared.audit_request_body = kong.request.get_raw_body()"
|
|
---
|
|
apiVersion: configuration.konghq.com/v1
|
|
kind: KongPlugin
|
|
metadata:
|
|
name: ${NAME}-workforce-api-audit-capture-response
|
|
namespace: ${NAMESPACE}
|
|
plugin: post-function
|
|
config:
|
|
body_filter:
|
|
- |
|
|
local chunk = ngx.arg[1]
|
|
if chunk then
|
|
kong.ctx.shared.audit_response_body = (kong.ctx.shared.audit_response_body or "") .. chunk
|
|
end
|