Skip to content

[PLT-1425] Add the key used to decrypt cdap sops files to correct failed workflow#352

Merged
juliareynolds-nava merged 16 commits into
mainfrom
plt-1425_sops_permissions_for_codebuild
Dec 18, 2025
Merged

[PLT-1425] Add the key used to decrypt cdap sops files to correct failed workflow#352
juliareynolds-nava merged 16 commits into
mainfrom
plt-1425_sops_permissions_for_codebuild

Conversation

@juliareynolds-nava

@juliareynolds-nava juliareynolds-nava commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

🎫 Ticket

https://jira.cms.gov/browse/PLT-1425

🛠 Changes

Granted codebuild-runner access to decrypt the bcda-prod or bcda-test keys as they are used to encrypt cdap sops values.

ℹ️ Context

Added the kms key to correct this permissions error:
Error: User: arn:aws:sts::{$account}:assumed-role/codebuild-runner/AWSCodeBuild-axxxxxxx-7272-421e-8d25-d4f58468c162 is not authorized to perform: kms:Decrypt on resource: arn:aws:kms:us-east-1:{$account}:key/37584589-3eb7-437a-9f20-b00000000b3 because no identity-based policy allows the kms:Decrypt action (Service: AWSKMS; Status Code: 400; Error Code: AccessDeniedException; roxy: null)

🧪 Validation

https://github.com/CMSgov/cdap/actions/runs/20241886420/job/58111901612?pr=352

@juliareynolds-nava juliareynolds-nava marked this pull request as ready for review December 10, 2025 21:26
@juliareynolds-nava juliareynolds-nava requested a review from a team as a code owner December 10, 2025 21:26
Comment thread terraform/services/github-actions-role/data.tf Outdated
@juliareynolds-nava juliareynolds-nava marked this pull request as draft December 17, 2025 16:00
Comment thread terraform/services/github-actions-role/data.tf Outdated
@juliareynolds-nava juliareynolds-nava marked this pull request as ready for review December 17, 2025 20:27
@juliareynolds-nava juliareynolds-nava requested a review from a team December 17, 2025 21:36
Comment thread terraform/services/github-actions-role/data.tf Outdated

@mianava mianava left a comment

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.

LGTM

@juliareynolds-nava juliareynolds-nava merged commit 7b3259e into main Dec 18, 2025
15 checks passed
@juliareynolds-nava juliareynolds-nava deleted the plt-1425_sops_permissions_for_codebuild branch December 18, 2025 16:30
mianava pushed a commit that referenced this pull request Dec 19, 2025
…led workflow (#352)

## 🎫 Ticket

https://jira.cms.gov/browse/PLT-1425

## 🛠 Changes

Granted codebuild-runner access to decrypt the bcda-prod or bcda-test
keys as they are used to encrypt cdap sops values.

## ℹ️ Context

Added the kms key to correct this permissions error:
`Error: User:
arn:aws:sts::{$account}:assumed-role/codebuild-runner/AWSCodeBuild-axxxxxxx-7272-421e-8d25-d4f58468c162
is not authorized to perform: kms:Decrypt on resource:
arn:aws:kms:us-east-1:{$account}:key/37584589-3eb7-437a-9f20-b00000000b3
because no identity-based policy allows the kms:Decrypt action (Service:
AWSKMS; Status Code: 400; Error Code: AccessDeniedException; roxy:
null)`


## 🧪 Validation


https://github.com/CMSgov/cdap/actions/runs/20241886420/job/58111901612?pr=352

---------

Co-authored-by: Sean Fern <seanfern@navapbc.com>
juliareynolds-nava added a commit that referenced this pull request Jan 6, 2026
…led workflow (#352)

## 🎫 Ticket

https://jira.cms.gov/browse/PLT-1425

## 🛠 Changes

Granted codebuild-runner access to decrypt the bcda-prod or bcda-test
keys as they are used to encrypt cdap sops values.

## ℹ️ Context

Added the kms key to correct this permissions error:
`Error: User:
arn:aws:sts::{$account}:assumed-role/codebuild-runner/AWSCodeBuild-axxxxxxx-7272-421e-8d25-d4f58468c162
is not authorized to perform: kms:Decrypt on resource:
arn:aws:kms:us-east-1:{$account}:key/37584589-3eb7-437a-9f20-b00000000b3
because no identity-based policy allows the kms:Decrypt action (Service:
AWSKMS; Status Code: 400; Error Code: AccessDeniedException; roxy:
null)`


## 🧪 Validation


https://github.com/CMSgov/cdap/actions/runs/20241886420/job/58111901612?pr=352

---------

Co-authored-by: Sean Fern <seanfern@navapbc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants