Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx Ingress Basic Auth #94

Merged
merged 1 commit into from
Dec 5, 2023
Merged

Conversation

lalyos
Copy link
Contributor

@lalyos lalyos commented Dec 4, 2023

Implement nginx ingress basic-auth

if you add:

ingress:
  host: secret.k8z.eu
  nginxBasicAuth:
    user: admin1
    password: secret1

You will get:

  • a secret named: basic-auth with bcrypt encoded http password, using the htpasswd sprig function
  • 3 annotations on the ingress:
  annotations:
    nginx.ingress.kubernetes.io/auth-type: basic
    nginx.ingress.kubernetes.io/auth-secret: basic-auth
    nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - basic'

@lalyos lalyos changed the title Basic auth Nginx Ingress Basic Auth Dec 4, 2023
@laszlocph
Copy link
Contributor

Thank you for the amazing contribution!

I merge this now (and adjust slightly)

@laszlocph laszlocph merged commit b628ea8 into gimlet-io:master Dec 5, 2023
0 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants