-
Notifications
You must be signed in to change notification settings - Fork 86
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
Improve Notation authentication experience #503
Comments
I also detected another problem when using cc @JeyJeyGao |
Confirmed the bug. |
@FeynmanZhou is it possible to use |
I like the idea of sharing credentials to prevent users authenticating twice. Instead of sharing crednetial only for Docker, how about adding a credential path feature to let users point any config.json locally? Users can simply put "DockerConfig" keyword in "credStore" in notation config, then notation will use $DOCKER_CONFIG/config.json as the plain test credential store. ($DOCKER_CONFIG is ~/.docker by default but can be overriden by users)
WDYT? I could try to implement this if this sounds good. @FeynmanZhou |
@ningziwen Thanks for your interest. Yes, I agree with @duffney and your proposal of sharing and reusing the Docker credential store within Notation authentication. If users log in to a registry with As this issue is tracking an authentication UX bug in |
@FeynmanZhou Having a new issue sounds good to me. Thanks! |
Will the proposed implementation cover improvements in the error messages returned by the CLI as described in notaryproject/notaryproject.dev#156? |
#503 Added e2e tests. The current unit tests don't have RunE() testing code. Adding the unit test could lead to lots of refactoring. I'm happy to help the refactoring and start the unit tests of RunE() but I think it is better to be in a separated PR. Adding lots of unit test refactoring could mess up this PR. TODO: Seems login requires credential helper. Need to install credential helper as a test step. Signed-off-by: Ziwen Ning <[email protected]>
What is the areas you would like to add the new feature to?
Notation CLI
Is your feature request related to a problem?
Notation has a command
notation login
to enable authentication with registries. It should allow users to input a username and password from the prompted response when usingnotation login sample.registry.com
.What solution do you propose?
The expected experience is as follows:
What alternatives have you considered?
None
Any additional context?
No response
The text was updated successfully, but these errors were encountered: