-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Feature] Setting DisplayName and ProfilePicURL for headscale users #2166
Comments
Yes please, I was hoping someone would pick it up so I would appreciate if you want to try to do this :) You will need to implement the gRPC/API part as part of this, and I think your first example looks nicer for both API and CLI.
|
@vikanezrimaya As part of a discussion in #2170, a command for setting email would be required, not only sensible. Let me know if you have started this work so we dont step on each others toes :) |
Kristoffer Dalby ***@***.***> writes:
Let me know if you have started this work so we dont step on each others toes :)
Sorry, haven't had time to get started, so you may proceed with this on
your own if you wish. I bet a regular contributor and a maintainer would
be able to write better code than me anyway due to the familiarity with
the codebase. Making a command to set the profile pic URL would be
trivial copy-pasting in this case.
…--
With love,
Vika <3
|
Please feel free to take a stab at it, I am ran down and wont have time to circle back to it for a while in addition to holidays. |
Updates juanfont#2166 Signed-off-by: Kristoffer Dalby <[email protected]>
Updates #2166 Signed-off-by: Kristoffer Dalby <[email protected]>
I've added the gRPC part and read as I needed it in a test, but the setting of fields is still open. |
Updates juanfont#2166 Signed-off-by: Kristoffer Dalby <[email protected]>
Updates juanfont#2166 Signed-off-by: Kristoffer Dalby <[email protected]>
* ensure valid tags is populated on user gets too Signed-off-by: Kristoffer Dalby <[email protected]> * ensure forced tags are added Signed-off-by: Kristoffer Dalby <[email protected]> * remove unused envvar in test Signed-off-by: Kristoffer Dalby <[email protected]> * debug log auth/unauth tags in policy man Signed-off-by: Kristoffer Dalby <[email protected]> * defer shutdown in tags test Signed-off-by: Kristoffer Dalby <[email protected]> * add tag test with groups Signed-off-by: Kristoffer Dalby <[email protected]> * add email, display name, picture to create user Updates #2166 Signed-off-by: Kristoffer Dalby <[email protected]> * add ability to set display and email to cli Signed-off-by: Kristoffer Dalby <[email protected]> * add email to test users in integration Signed-off-by: Kristoffer Dalby <[email protected]> * fix issue where tags were only assigned to email, not username Fixes #2300 Fixes #2307 Signed-off-by: Kristoffer Dalby <[email protected]> * expand principles to correct login name and if fix an issue where nodeip principles might not expand to all relevant IPs instead of taking the first in a prefix. Signed-off-by: Kristoffer Dalby <[email protected]> * fix ssh unit test Signed-off-by: Kristoffer Dalby <[email protected]> * update cli and oauth tests for users with email Signed-off-by: Kristoffer Dalby <[email protected]> * index by test email Signed-off-by: Kristoffer Dalby <[email protected]> * fix last test Signed-off-by: Kristoffer Dalby <[email protected]> --------- Signed-off-by: Kristoffer Dalby <[email protected]>
Use case
Mostly for niceness and completeness. I would like Headscale to know users by name, so that
tailscale whois
(and related solutions such astailscale-nginx-auth
) can know the user's display name and profile picture.The OIDC rework document mentioned that CLI-based login should be able to populate these fields, so I hope the maintainers won't mind me filing this as an issue so it could be easily trackable (and to show that this is in fact desirable, and bikeshed over the minute details of the implementation).
Additionally, I may try my hand at implementing this. (I don't really know Go that well, but how hard could it be?)
Description
One or two commands in the Headscale CLI to set the user's display name and the profile picture. Optionally a way to set these fields on user creation.
Contribution
How can it be implemented?
Exact subcommand/option names subject to bikeshedding.
Alternatively:
The text was updated successfully, but these errors were encountered: