ingress-controller
ingress-controller copied to clipboard
Proposal: Provide a secure storage for policy headers
Currently pomerium-operator
doesn't provide a secure way to store policy set_request_headers
key.
Maybe it makes sense to add a new annotation like:
ingress.pomerium.io/policy_from_secret: "secretName"
which will point at the existing secret in the same namespace as the ingress/service. The secret will contain the sensitive bits of a policy like headers or a client certificate.
Example secret:
apiVersion: v1
kind: Secret
metadata:
name: secretName
type: Opaque
stringData:
set_request_headers:
Authorization: Basic YWRtaW46YWRtaW4K
X-Example: example
I can help with the implementation if it sounds like a good idea.