-
Notifications
You must be signed in to change notification settings - Fork 8
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 logging when insights_core_gpg_check is disabled #90
Conversation
18e59f2
to
e05c994
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.
Have a question, based on the changes it's not clear to me why the gpg check even exists 😅 So we have basically four cases right?
- verification enabled, gpg check enabled
- insights client call without
--no-gpg
- insights client call without
- verification enabled, gpg check disabled
- this is my question - this should append the
--no-gpg
option to insights client verification call?
- this is my question - this should append the
- verification disabled, gpg enabled
- verification and gpg should be skipped, no insights-client call
- verification disabled, gpg disabled
- verification simply disabled, no insights-client call
2599303
to
8a5f99e
Compare
Update the logs that related to the signature verification. Now it is more clear to the user that the insights-client call will still occur, but the result may be ignored because the validation is disabled. Signed-off-by: Rodolfo Olivieri <[email protected]>
8a5f99e
to
a9f6a4c
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #90 +/- ##
==========================================
- Coverage 65.61% 65.34% -0.28%
==========================================
Files 5 5
Lines 349 352 +3
==========================================
+ Hits 229 230 +1
- Misses 100 101 +1
- Partials 20 21 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
Just one minor typo in log - suggested improvement
Co-authored-by: Andrea Waltlová <[email protected]>
If the user specify that the insights gpg check should be disabled, we should do nothing and execute the script anyway, as there is no gpg check to be performed. Otherwise, if the gpg check is still enabled, we call insights-client to verify the signature.
If there is no need to validate the gpg signature, we should not call insights-client for it.
HMS-2647