-
Notifications
You must be signed in to change notification settings - Fork 20
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
less permissive db permissions #4531
Conversation
less permissive db permissions
|
|
|
|
|
|
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 worry that this is complicating things somewhat with all the extra outputs. I think if we just set enable_ec2_oracle_enterprise_managed_server = true in hmpps-oem account it eliminates a lot of the code. And effectively an OEM manager is managing itself, so needs to have these permissions.
@@ -40,6 +39,58 @@ locals { | |||
baseline_ec2_autoscaling_groups = {} | |||
baseline_ec2_instances = {} | |||
baseline_iam_policies = { | |||
OracleEnterpriseManagementSecretsPolicy = module.baseline_presets.iam_policies_all.OracleEnterpriseManagementSecretsPolicy, |
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.
If we set enable_ec2_oracle_enterprise_managed_server = true then we don't need this.
@@ -95,6 +146,8 @@ locals { | |||
} | |||
} | |||
baseline_iam_roles = { | |||
# allow EC2 instance profiles ability to assume this role | |||
EC2OracleEnterpriseManagementSecretsRole = module.baseline_presets.iam_roles_all.EC2OracleEnterpriseManagementSecretsRole |
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.
If we set enable_ec2_oracle_enterprise_managed_server = true then we don't need this.
@@ -153,6 +206,7 @@ locals { | |||
} | |||
} | |||
} | |||
"account" = module.baseline_presets.ssm_parameters_all.account |
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.
If we set enable_ec2_oracle_enterprise_managed_server = true then we don't need this.
"arn:aws:s3:::*" | ||
] | ||
}, | ||
DBSecrets = [ |
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.
Is this being used now - I couldn't see it referenced. But if it is, I'd think about changing the name
|
||
value = local.iam_roles | ||
} | ||
|
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.
We shouldn't need this (or the other 2 outputs either)
|
|
less permissive db permissions