-
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
[Feature] support notation login #218
Conversation
e3bc8b8
to
9699d69
Compare
d0f53d4
to
2f02aa0
Compare
d5bc151
to
ccdb1dd
Compare
@shizhMSFT @binbin-li maybe we could split long PR like this one into multiple smaller PRs in the future to enhance the readability? (there are 20 files been added/updated in this PR) Please suggest if you think otherwise. |
You're right. I didn't expect this PR would be so large at the beginning. I would split long PRs next time. |
pkg/dockerconfig/config.go
Outdated
@@ -0,0 +1,115 @@ | |||
package dockerconfig |
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.
We can merge the dockerconfig
package into a single file docker.go
in the config
package.
c97998f
to
3caa631
Compare
go.mod
Outdated
github.com/notaryproject/notation-core-go v0.0.0-20220602183001-a7b72555a44b | ||
github.com/notaryproject/notation-go v0.8.0-alpha.1.0.20220622031208-45f149e1b5ae | ||
github.com/opencontainers/go-digest v1.0.0 | ||
github.com/urfave/cli/v2 v2.10.3 | ||
oras.land/oras-go/v2 v2.0.0-20220620164807-8b2a54608a94 | ||
oras.land/oras-go/v2 v2.0.0-alpha |
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.
We need to upgrade oras-go
to rc.1
in the next PR.
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.
Sure, I'll bump it up in a seperate PR
6cc5439
to
5521311
Compare
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.
LGTM
When referring to PR #119 , do you mean #223 ? @SteveLasker |
#119 is an issue. It must be a typo and refers to #223. @binbin-li Could you update this PR to reflect #223? |
95e8c75
to
7085fc0
Compare
Working on it. |
066cfa4
to
7a2547c
Compare
Updated as #223 defined.
|
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.
thanks @binbin-li
LGTM
8af7cc5
to
41f9bca
Compare
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.
LGTM!
Signed-off-by: Binbin Li <[email protected]>
Signed-off-by: Binbin Li <[email protected]>
Signed-off-by: Binbin Li <[email protected]>
Signed-off-by: Binbin Li <[email protected]>
Signed-off-by: Binbin Li <[email protected]>
41f9bca
to
e705d73
Compare
What?
Add support for logging in/out. Related Issue: #119
Work need to be done:
Directory
pkg to manipulate the config file once it's ready to be useTest?
test plan:
3.1 user types username/password explicitly. [expect: user-typed credential is used]
3.2 user doesn't type username/password. [expect: saved credential is used]
4.1 both credHelpers and credsStore are configured. [expect: only credHeplers is honored]
4.2 only credsStore is configured. [expect: credsStore is honored]
5.1 both credHelpers and credsStore are configured. [expect: only credHeplers is honored]
5.2 only credsStore is configured. [expect: credsStore is honored]
Signed-off-by: Binbin Li [email protected]