-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(cli): add trivy auth
#7664
Conversation
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
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.
@knqyf263
left comments.
Take a loot, when you have time.
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Co-authored-by: DmitriyLewen <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
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
@itaysk I'll merge this PR, but we can fix the command name anytime you find a better one. |
Signed-off-by: knqyf263 <[email protected]> Co-authored-by: DmitriyLewen <[email protected]>
feel free to merge, but I do think we'll need to change it. |
Signed-off-by: knqyf263 <[email protected]>
@itaysk You can open a discussion if you want. Since I didn't think we needed a discussion on this topic, and it was easy to implement, I didn't create an issue, but I'm open to discussion. |
I'll try to summarize my feedback into 3 points: 1 - main login command should be reserved for main api loginwhen we say 2 - registry login is not the only kind of auth we supportFlows based on container registry:
Flows not based on container registry:
3 - several registry authentication optionsIf I understand correctly, this command (or docker login) will cover all of the registry based flows listed abobe. |
It is required to obtain a password for
|
@itaysk that's an interesting point and to be honest I do agree, it sounds like trivy requires a login to use it's functionality.
If we're not planning to support any other credentials in the future, |
yes it does excuse me for thinking out loud for a bit: The problem with this approach is that it might be confusing with registry scanning (which we don't support today). But coming back to reality, I guess |
I worte this before reading @simar7 's response :) |
I don't mind @DmitriyLewen @nikpivkin Any thoughts? If not, I'd go for |
|
Description
We have seen several use cases where people want to use Trivy in environments withoug container runtimes such as Docker. This PR adds
trivy auth login
andtrivy auth logout
to replacedocker login
anddocker logout
.Checklist