# Reference overlay for installations that run the Gateway in Kubernetes.
# Keep the Secret empty: the Gateway writes only generated Push Bearers.
apiVersion: v1
kind: Secret
metadata:
  name: easyai-gateway-security-events
  namespace: easyai
type: Opaque
data: {}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: easyai-gateway-security-events
  namespace: easyai
rules:
  - apiGroups: [""]
    resources: ["secrets"]
    resourceNames: ["easyai-gateway-security-events"]
    verbs: ["get", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: easyai-gateway-security-events
  namespace: easyai
subjects:
  - kind: ServiceAccount
    name: easyai-ai-gateway
    namespace: easyai
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: easyai-gateway-security-events
