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

Basic auth translation mode #22

Open
yyunikov opened this issue Jan 11, 2021 · 2 comments
Open

Basic auth translation mode #22

yyunikov opened this issue Jan 11, 2021 · 2 comments
Labels
enhancement New feature or request low low priority

Comments

@yyunikov
Copy link

Title

Basic auth translation mode

Summary

I'm looking for a way to use basic auth on Gatekeeper proxy using central identity server such as Keycloak:

  • Client passes basic auth credentials to Gatekeeper
  • Gatekeeper makes a call using Password grant flow to OAuth server to authenticate
  • Based on that authentication is either succeeded or failed

Such implementation is available in Keycloak Java adapter with enable-basic-auth flag.

Looking to get some feedback on this.

Why?

Some external solutions don't support OAuth directly, such as Prometheus and therefore there is no way to use one identity server for everything. Such mode would help to integrate more solutions in the same way.

How

This can be added to Gatekeeper in a similar way to Java adapter (e.g. --enable-basic-auth) and optionally support hardcoded username / password. By default it can make a call to OAuth server to verify credentials.

Acceptance criteria

TBD

Additional Information

Similar was requested on OAuth proxy.

@p53
Copy link

p53 commented Jan 15, 2021

  1. i understand this is simplest solution for integrating e.g. API's (i also made kind of proxy like that for my app...), you don't have to request for any token
  2. you can place gatekeeper in authentication proxy mode before prometheus and on client side use forward-signing proxy (with resource owner credential grant setup)
  3. Problem might be that proxy in such mode receives everyone credentials

@p53 p53 added the enhancement New feature or request label Jan 16, 2021
@yyunikov
Copy link
Author

@p53 thanks for reply. yes, I've considered forward proxy mode on client side and that would indeed work. though client side setup should be very minimal in our use case, though would be nice to have such option.

@p53 p53 added the low low priority label Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low low priority
Projects
None yet
Development

No branches or pull requests

2 participants