apiVersion: v1
kind: ConfigMap
metadata:
  name: nginx-auth-jwt-config
  labels:
    app: nginx-auth-jwt
data:
  config.yaml: |
    validationKeys:
    - type: ecPublicKey
      keyFrom:
        source: env
        name: JWT_PUBKEY
    claimsSource: queryString
    cookieNames:
    - crane-jwt
    responseHeaders:
      UserId: user_id
      UserRole: permissions