Skip to content

Comments

Remove credential file from spec#262

Merged
shizhMSFT merged 1 commit intonotaryproject:mainfrom
shizhMSFT:rm_creds_file
Aug 3, 2022
Merged

Remove credential file from spec#262
shizhMSFT merged 1 commit intonotaryproject:mainfrom
shizhMSFT:rm_creds_file

Conversation

@shizhMSFT
Copy link
Contributor

Resolve #206

Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
## Credential Store

As local credentials may be required to access the remote registries, they need to be stored and accessed securely. To achieve maximum security, credential helpers are preferred so that credentials are stored in the system key chain with better protection. If credential helpers are not available, notation will fall back to credential files with proper access control.
As local credentials may be required to access the remote registries, they need to be stored and accessed securely. To achieve maximum security, credential helpers are preferred so that credentials are stored in the system key chain with better protection. If credential helpers are not available, credentials SHOULD be provided to notation via command line parameters `--username` / `--password` or environment variables `NOTATION_USERNAME` / `NOTATION_PASSWORD`.
Copy link
Contributor

Choose a reason for hiding this comment

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

username/password options are only supported in notation loging cmd now. Should we mention it here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, we need to clarify what is or is not supported.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

username/password options are also supported for notation sign, notation verify, and other commands which need registry accesses.

Copy link
Contributor

@binbin-li binbin-li left a comment

Choose a reason for hiding this comment

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

lgtm

@FeynmanZhou
Copy link
Member

Do we need to create another issue to update the CLI baseline accordingly?

@binbin-li
Copy link
Contributor

binbin-li commented Aug 2, 2022

Do we need to create another issue to update the CLI baseline accordingly?

Yeah, I'll create an issue to track it. Current implementation does support username/password options in other commands. We can just update the cli spec.

@shizhMSFT shizhMSFT merged commit af0c9a1 into notaryproject:main Aug 3, 2022
@shizhMSFT shizhMSFT deleted the rm_creds_file branch August 3, 2022 02:14
7h3-3mp7y-m4n pushed a commit to 7h3-3mp7y-m4n/notation that referenced this pull request Mar 29, 2025
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Define local credential experience for Registry Authentication

5 participants