Skip to content

CCM-23434: Add DL getLetterData permissions - #684

Open
masl2 wants to merge 2 commits into
mainfrom
fix/CCM-23434_dl-bucket-perms
Open

CCM-23434: Add DL getLetterData permissions#684
masl2 wants to merge 2 commits into
mainfrom
fix/CCM-23434_dl-bucket-perms

Conversation

@masl2

@masl2 masl2 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Description

Use new TF variables identifying associated DL account and environment to grant appropriate bucket permissions for the getLetterData function

Context

GetLetterData is a supplier api function to allow suppliers to retrived PDFs for printing. This lambda's prinicpal requires permissions for the storage location of the PDFs such that when it generates a pre-signed URL, said URL has the appropriate bucket permissions

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

DT3-Specific Checklist

  • If I have added a new resource (SQS, Lambda, Gateway, DDB table, etc), I have created the appropriate alarms

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@masl2
masl2 requested a review from a team as a code owner September 3, 2026 13:17
@masl2 masl2 changed the title add DL variable feed for pdf perms CCM-23434: Add DL getLetterData permissions Sep 3, 2026
@sonarqubecloud

sonarqubecloud Bot commented Sep 3, 2026

Copy link
Copy Markdown

resources = [
"${module.s3bucket_test_letters.arn}/*",
"${local.core_pdf_bucket_arn}/*",
"${local.digital_letters_pdf_bucket_arn}/*",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

just wondering whether it is needed the PutObject permission for the DL S3 bucket, otherwise looks good to me.

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