30x / k8s-router

A general purpose router for Kubernetes.
Apache License 2.0
15 stars 2 forks source link

First pass at API Key authorization #19

Closed whitlockjc closed 8 years ago

whitlockjc commented 8 years ago

This commit allows you to create a specially named secret in a namespace and allow that secret to be used to authorize requests prior to routing. To use this, create a generic secret named ingress with an api-key data field. Once you've done this, host and path combinations served by pods in your namespace will check the value of the X-INGRESS-API-KEY against the value in the secret and return a 403 if they do not match.

See: #11 Subtask Link: https://github.com/30x/k8s-pods-ingress/issues/11#issuecomment-209014852

jbowen93 commented 8 years ago

Looks good to me.