-
Notifications
You must be signed in to change notification settings - Fork 175
Handle access denied exceptions on resource details fetching #882
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
Conversation
79ee5a4
to
f0833cc
Compare
Codecov Report
@@ Coverage Diff @@
## main #882 +/- ##
==========================================
- Coverage 81.59% 81.57% -0.02%
==========================================
Files 232 232
Lines 7520 7551 +31
==========================================
+ Hits 6136 6160 +24
- Misses 1159 1164 +5
- Partials 225 227 +2
|
721bb1b
to
18e7d52
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.
Great work ππ» I only got some small implementation remarks
eac03b3
to
a31f71f
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.
Can't wait to get this merged, I still one last little naming remark.
@@ -76,10 +122,18 @@ func handleAWSError(alerter alerter.AlerterInterface, listError *remoteerror.Res | |||
return reqerr | |||
|
|||
|
|||
func sendEnumerationAlert(provider string, alerter alerter.AlerterInterface, listError *remoteerror.ResourceEnumerationError) { | |||
func sendAlert(provider string, alerter alerter.AlerterInterface, listError *remoteerror.ResourceScanningError, p ScanningPhase) { |
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.
I think it should be called sendRemoteAccessDeniedAlert
since this method is scoped to pkg/remote
it will prevent us eventual name collisions in the future.
Description
Tested resources