-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add remoteuser authenticator #1
base: main
Are you sure you want to change the base?
Conversation
8b79cf8
to
f9af8d0
Compare
// | ||
// In the future, per-user ACLs/roles/etc could even be part of other | ||
// headers. Alternatively, there could also be a local DB here (as in | ||
// the userlist authenticator). Or a even a combination of both! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think maybe we can just add a flag to the userlist one, something like a default username when none is given.
Setting that option would trigger the userlist one to accept a empty login and then look for this header, if the header is set it would use the default username to find a user definition and use that as a template.
That feels like less code and probably a bit easier to handle?
@@ -312,6 +313,29 @@ Once you signed up for Okta and set up a application for Choria you'll get endpo | |||
|
|||
Here we configure `acls` based on Okta groups - all users can `rpcutil ping`, there are Puppet admins with appropriate rights and fleet wide admins capable of managing anything. | |||
|
|||
#### Login delegation via `X-Remote-User` | |||
|
|||
It's possible to delegate the responsibility of verifying the users' identity to a front-end configured using the mechanism of your choice (Kerberos, OIDC, etc) and setting the identity of the caller in the `X-Remote-User` HTTP header. In this case, configure the `remoteuser` authenticator and make sure that the entrypoint `/login` is well protected. All users will receive the same ACLs et al, configured via `default_user`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's all users strictly getdefault_user
or users without a definition get default_user ? A fall back user may be useful. e.g we might have use for handful of special users .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found an ancient comment I never submitted. @nbarrientos can you rebase so I can give this a spin. |
Done. |
See https://github.com/nbarrientos/aaasvc/blob/issue84/README.md#login-delegation-via-x-remote-user
For "internal" comsumption only (needs discussion upstream):
With config:
To be discussed in choria-io#84. We need though something quick to unblock the testing/validation.