-
Notifications
You must be signed in to change notification settings - Fork 127
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
CIS 4.01: Ensure that instances are not configured to use the default… #244
base: main
Are you sure you want to change the base?
CIS 4.01: Ensure that instances are not configured to use the default… #244
Conversation
… service account with full access to all Cloud APIs
f39aa58
to
c6a0c8e
Compare
|
||
scope == "https://www.googleapis.com/auth/cloud-platform" | ||
|
||
message := sprintf("Instance %v has default service account with full access to all Cloud APIs.", [asset.name]) |
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.
Looks like this block only checks scope but not service account
Suggest to add re_match("[email protected]$", service_account.email)
to check for default compute engine service account
If we use custom service account, scope will always be full scope, which is actually recommended: https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances#best_practices
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.
Thanks for the recommendation! @charliewolf what do you think about this strategy?
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.
@katze120 or @gkowalski-google can you help with data needed by Charlie base on the code review feedback. |
… service account with full access to all Cloud APIs