Skip to content

CCM-12600: Add sha256 to letters#606

Open
RossFaulds171 wants to merge 31 commits into
mainfrom
feature/CCM-12600-add-sha256-hash-on-letters
Open

CCM-12600: Add sha256 to letters#606
RossFaulds171 wants to merge 31 commits into
mainfrom
feature/CCM-12600-add-sha256-hash-on-letters

Conversation

@RossFaulds171

@RossFaulds171 RossFaulds171 commented Jun 4, 2026

Copy link
Copy Markdown

Description

Add sha256 to get letters and get letter api endpoints, and ensure hash is stored in db as well.

Changed Letter schema to have sha256Hash defined.
Changed Open API spec to have sha256Hash defined.
Changed mapping functions to copy hash value
Changed tests to account for hashes
Added extra component and e2e tests to provide hash works

Context

Currently the Sha256 hash is not exposed anywhere, and therefore cannot be used for any purposes, such as checking for pdf file tampering etc.

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.

@RossFaulds171 RossFaulds171 added the deploy-proxy Set to 'true' to force a PR build to deploy the APIM proxy label Jun 5, 2026
@RossFaulds171 RossFaulds171 marked this pull request as ready for review June 11, 2026 10:15
@RossFaulds171 RossFaulds171 requested a review from a team as a code owner June 11, 2026 10:15
stevebux
stevebux previously approved these changes Jun 11, 2026

@stevebux stevebux 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.

Looks good, just a couple of comments

Comment thread internal/datastore/src/types.ts
Comment thread tests/e2e-tests/api/letters/test_get_letter_status.py Outdated
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy-proxy Set to 'true' to force a PR build to deploy the APIM proxy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants