028a0be2a6
list-payments/get-payment (all 5 roles) and create-payment (admin only — matches PaymentPermission's actual write-access logic, not guessed). One KongRoute for GET/POST/DELETE, one ai-mcp-proxy binding — avoids the duplicate-tool-name bug found and fixed on customers-mcp (STATUS.md section 18), built correctly here instead of repeating the two-route mistake. Keycloak (local): mcp-payments-audience client scope + mcp-payments resource client, attached to librechat as an optional scope, no dedicated protocol mappers on the client itself.
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
apiVersion: configuration.konghq.com/v1beta1
|
|
kind: KongConsumerGroup
|
|
metadata:
|
|
name: ${NAME}-admin
|
|
namespace: ${NAMESPACE}
|
|
spec:
|
|
controlPlaneRef:
|
|
type: konnectNamespacedRef
|
|
konnectNamespacedRef:
|
|
name: ${CONTROL_PLANE_REF_NAME}
|
|
name: admin
|
|
---
|
|
apiVersion: configuration.konghq.com/v1beta1
|
|
kind: KongConsumerGroup
|
|
metadata:
|
|
name: ${NAME}-read-only
|
|
namespace: ${NAMESPACE}
|
|
spec:
|
|
controlPlaneRef:
|
|
type: konnectNamespacedRef
|
|
konnectNamespacedRef:
|
|
name: ${CONTROL_PLANE_REF_NAME}
|
|
name: read_only
|
|
---
|
|
apiVersion: configuration.konghq.com/v1beta1
|
|
kind: KongConsumerGroup
|
|
metadata:
|
|
name: ${NAME}-product-manager
|
|
namespace: ${NAMESPACE}
|
|
spec:
|
|
controlPlaneRef:
|
|
type: konnectNamespacedRef
|
|
konnectNamespacedRef:
|
|
name: ${CONTROL_PLANE_REF_NAME}
|
|
name: product_manager
|
|
---
|
|
apiVersion: configuration.konghq.com/v1beta1
|
|
kind: KongConsumerGroup
|
|
metadata:
|
|
name: ${NAME}-customer
|
|
namespace: ${NAMESPACE}
|
|
spec:
|
|
controlPlaneRef:
|
|
type: konnectNamespacedRef
|
|
konnectNamespacedRef:
|
|
name: ${CONTROL_PLANE_REF_NAME}
|
|
name: customer
|
|
---
|
|
apiVersion: configuration.konghq.com/v1beta1
|
|
kind: KongConsumerGroup
|
|
metadata:
|
|
name: ${NAME}-support
|
|
namespace: ${NAMESPACE}
|
|
spec:
|
|
controlPlaneRef:
|
|
type: konnectNamespacedRef
|
|
konnectNamespacedRef:
|
|
name: ${CONTROL_PLANE_REF_NAME}
|
|
name: support
|