update: added log to notation login and logout commands#484
update: added log to notation login and logout commands#484priteshbandi merged 7 commits intonotaryproject:mainfrom
Conversation
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Codecov Report
@@ Coverage Diff @@
## main #484 +/- ##
==========================================
- Coverage 32.14% 32.12% -0.02%
==========================================
Files 25 25
Lines 1341 1357 +16
==========================================
+ Hits 431 436 +5
- Misses 898 909 +11
Partials 12 12
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
priteshbandi
left a comment
There was a problem hiding this comment.
Looks like we are not adding much information in debug logs, do we really want debug log for login logout commands?
| }, | ||
| } | ||
| opts.LoggingFlagOpts.ApplyFlags(command.Flags()) | ||
| opts.SecureFlagOpts.ApplyFlags(command.Flags()) |
There was a problem hiding this comment.
why do we need SecureFlagOpts for login/logout?
There was a problem hiding this comment.
why do we need
SecureFlagOptsfor login/logout?
This flag only appears in login. It contains username and password fields which are required in the login process.
Oh yeah, so I think one good reason to add debug logs to login is that there are several https roundtrips among notation, registry, and authorization service -> spec. Printing out those traces could be useful during debug. |
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
shizhMSFT
left a comment
There was a problem hiding this comment.
LGTM with suggestions.
|
|
||
| ### Log out from all logged in registries | ||
|
|
||
| ```shell | ||
| notation logout --all | ||
| ``` |
…t#484) This PR adds logs to the login and logout commands. This PR is a part of resolving notaryproject/roadmap#71. Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com> Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
…t#484) This PR adds logs to the login and logout commands. This PR is a part of resolving notaryproject/roadmap#71. Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com> Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
…t#484) This PR adds logs to the login and logout commands. This PR is a part of resolving notaryproject/roadmap#71. Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com> Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
…t#484) This PR adds logs to the login and logout commands. This PR is a part of resolving notaryproject/roadmap#71. Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com> Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
…t#484) This PR adds logs to the login and logout commands. This PR is a part of resolving notaryproject/roadmap#71. Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com> Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
…t#484) This PR adds logs to the login and logout commands. This PR is a part of resolving notaryproject/roadmap#71. Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com> Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
…t#484) This PR adds logs to the login and logout commands. This PR is a part of resolving notaryproject/roadmap#71. Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com> Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
…t#484) This PR adds logs to the login and logout commands. This PR is a part of resolving notaryproject/roadmap#71. Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
…t#484) This PR adds logs to the login and logout commands. This PR is a part of resolving notaryproject/roadmap#71. Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
This PR adds logs to the login and logout commands.
This PR is a part of resolving notaryproject/roadmap#71.