-
Notifications
You must be signed in to change notification settings - Fork 16
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
Allow using upstream creds from scan job #209
Conversation
policy/scan/local_scanner.go
Outdated
spaceMrn := s.spaceMrn | ||
jobCredentials := job.Inventory.Spec.UpstreamCredentals | ||
|
||
if s.useJobCredentials && jobCredentials != nil { |
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.
semantically we could call it:
useJobCredentials
- in this case I would expect that all jobs need their own credentials, no fall back to default credentialsallowJobCredentials
- here job credentials are optional
Depending on what you want to achieve, we need to decide for the wording and then implement it accordinly
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.
Good point. I went with the latter (AllowJobCredentials
) as I feel that's a bit more flexible
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.
Perfect, makes a lot of sense. We can restrict that further going forward if we need to
…can. Signed-off-by: Preslav <[email protected]>
Signed-off-by: Preslav <[email protected]>
e925625
to
2fb1267
Compare
…o get the correct header. Signed-off-by: Preslav <[email protected]>
9a91f8a
to
e04dd9e
Compare
…he original map. Signed-off-by: Preslav <[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.
Thank you @preslavgerchev
Allow the scanner to use credentials from an inventory job. Only works if that's enabled via
EnableJobCredentials