Skip to content

Add DB Ec2 instances access to postgres secrets - #18713

Merged
dave-belton merged 9 commits into
mainfrom
DBA-1282-Oracle-to-PostgreSQL-connectivity-for-ONR
Sep 2, 2026
Merged

Add DB Ec2 instances access to postgres secrets#18713
dave-belton merged 9 commits into
mainfrom
DBA-1282-Oracle-to-PostgreSQL-connectivity-for-ONR

Conversation

@dave-belton

Copy link
Copy Markdown
Contributor

No description provided.

@dave-belton
dave-belton requested review from a team as code owners September 1, 2026 09:28
@github-actions github-actions Bot added the environments-repository Used to exclude PRs from this repo in our Slack PR update label Sep 1, 2026
Error: Invalid template interpolation value
│
│   on locals_preproduction.tf line 218, in locals:
│  218:               "arn:aws:secretsmanager:*:*:secret:/postgres/database/${local.arns_integration.database_hostname}/*",
│     ├────────────────
│     │ local.arns_integration.database_hostname is null
│
│ The expression result is null. Cannot include a null value in a string
│ template.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terraform plan evaluation detected changes to resources that require approval from @ministryofjustice/modernsation-platform - please contact #ask-modernisation-platform for assistance

@modernisation-platform-ci

Copy link
Copy Markdown
Contributor

dave-belton Terraform plan evaluation detected changes to resources that require approval from a member of @ministryofjustice/modernisation-platform - please contact #ask-modernisation-platform for assistance

Guidance on approving these PRs is available at https://user-guide.modernisation-platform.service.justice.gov.uk/runbooks/reviewing-mp-environments-prs.html#process-for-approving-prs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terraform plan evaluation detected changes to resources that require approval from @ministryofjustice/modernsation-platform - please contact #ask-modernisation-platform for assistance

@modernisation-platform-ci

Copy link
Copy Markdown
Contributor

dave-belton Terraform plan evaluation detected changes to resources that require approval from a member of @ministryofjustice/modernisation-platform - please contact #ask-modernisation-platform for assistance

Guidance on approving these PRs is available at https://user-guide.modernisation-platform.service.justice.gov.uk/runbooks/reviewing-mp-environments-prs.html#process-for-approving-prs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terraform plan evaluation detected changes to resources that require approval from @ministryofjustice/modernsation-platform - please contact #ask-modernisation-platform for assistance

@modernisation-platform-ci

Copy link
Copy Markdown
Contributor

dave-belton Terraform plan evaluation detected changes to resources that require approval from a member of @ministryofjustice/modernisation-platform - please contact #ask-modernisation-platform for assistance

Guidance on approving these PRs is available at https://user-guide.modernisation-platform.service.justice.gov.uk/runbooks/reviewing-mp-environments-prs.html#process-for-approving-prs

MalformedPolicyDocument: Resource alias/kms-arns-integration-test must be in ARN format or "*"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terraform plan evaluation detected changes to resources that require approval from @ministryofjustice/modernsation-platform - please contact #ask-modernisation-platform for assistance

@modernisation-platform-ci

Copy link
Copy Markdown
Contributor

dave-belton Terraform plan evaluation detected changes to resources that require approval from a member of @ministryofjustice/modernisation-platform - please contact #ask-modernisation-platform for assistance

Guidance on approving these PRs is available at https://user-guide.modernisation-platform.service.justice.gov.uk/runbooks/reviewing-mp-environments-prs.html#process-for-approving-prs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terraform plan evaluation detected changes to resources that require approval from @ministryofjustice/modernsation-platform - please contact #ask-modernisation-platform for assistance

@modernisation-platform-ci

Copy link
Copy Markdown
Contributor

dave-belton Terraform plan evaluation detected changes to resources that require approval from a member of @ministryofjustice/modernisation-platform - please contact #ask-modernisation-platform for assistance

Guidance on approving these PRs is available at https://user-guide.modernisation-platform.service.justice.gov.uk/runbooks/reviewing-mp-environments-prs.html#process-for-approving-prs

actions = [
"kms:Decrypt",
]
resources = ["*"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be a specific resource to follow the least privilege. If you dont know the key ARN maybe a condition or restrict usage to secrets manager.

…nally restrict KMS use to requests via Secrets Manager.
…y and restrict KMS use to requests via Secrets Manager

following successful change to test env
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Checkov Scan Success

Show Output
*****************************

Checkov will check the following folders:
terraform/environments/oasys

*****************************

Running Checkov in terraform/environments/oasys
terraform scan results:

Passed checks: 228, Failed checks: 0, Skipped checks: 42


checkov_exitcode=0

TFLint Scan Success

Show Output
*****************************

Using default config
Installing "terraform" plugin...
The plugin was signed using a legacy PGP signing key. Please update the plugin to the latest version
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version: 0.15.0)
tflint checking:
terraform/environments/oasys

*****************************

Running tflint in terraform/environments/oasys
tflint_exitcode=0

@dave-belton
dave-belton merged commit 485d75a into main Sep 2, 2026
33 of 35 checks passed
@dave-belton
dave-belton deleted the DBA-1282-Oracle-to-PostgreSQL-connectivity-for-ONR branch September 2, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

environments-repository Used to exclude PRs from this repo in our Slack PR update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants