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

Implement credential nicknames #34

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

cnweaver
Copy link
Collaborator

These are purely labels for users' convenience.
Nicknames are editable internally, but this capacity is not yet exposed to users.
The nickname is now included in the downloadable credential file, but will currently be ignored by the client.

These are purely labels for users' convenience.
Nicknames are editable internally, but this capacity is not yet exposed to users.
The nickname is now included in the downloadable credential file, but will currently be ignored by the client.
@cnweaver cnweaver requested a review from spenczar March 22, 2021 19:45
@cnweaver cnweaver self-assigned this Mar 22, 2021
@cnweaver
Copy link
Collaborator Author

Originally I wanted to let users change credential nicknames whenever they want, since nothing on the server side cares what they are. However, it has since occurred to me that there is no good way to ensure propagation of an updated name to the users client configuration(s). It may therefore be better to just never support changing these.

Copy link
Collaborator

@spenczar spenczar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are nicknames included in downloaded bundles? It seems to me that they're purely UI for the admin website, and not used in any communication, so I'm not sure they need to be downloaded. If they don't need to be downloaded, then changes don't need to propagate, so they can be edited, which is nice.

scimma_admin/hopskotch_auth/views.py Outdated Show resolved Hide resolved
@cnweaver
Copy link
Collaborator Author

Why are nicknames included in downloaded bundles? It seems to me that they're purely UI for the admin website, and not used in any communication, so I'm not sure they need to be downloaded. If they don't need to be downloaded, then changes don't need to propagate, so they can be edited, which is nice.

My plan was that we would use them for disambiguation when a user has multiple credentials which are valid for the same Kafka host, as we've been discussing on the multiple credential configuration document. We don't have to do that, of course, but if the point is to give the user an easier way to think about/refer to them, that seems like the main other place where it would be relevant.

@mjuric
Copy link

mjuric commented Mar 22, 2021

I'm not sure about assigning addt'l meaning to the nicknames quite yet, beyond just a description to users on the website. It could get confusing very quickly, with the username, password, nickname, and potentially a "profile name" in the hop config (if that's how the "multi-cred" feature gets implemented in hop).

It may be OK to keep this code around for experimentation, but my vote for the prod roll-out would be to start with "less is more" keep nicknames website-only (e.g., I like how https://github.com/settings/tokens handles their PATs)?

(because once a feature is out, it will be difficult to remove or change if if we change our minds).

@cnweaver
Copy link
Collaborator Author

I was imagining that this would obviate the need for a 'profile name' by taking its place. I was also trying to get this integrated in order to have a foundation on which to build the multi-credential stuff on the client side, which won't really work very well without it (unless I'm missing a good alternative).

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.

3 participants