Skip to content

CCM-18398: Allow access to eventpub's event cache bucket to be restricted#211

Merged
gareth-allan merged 2 commits into
mainfrom
feature/CCM-18398_restrict_event_cache_bucket_access
Jun 5, 2026
Merged

CCM-18398: Allow access to eventpub's event cache bucket to be restricted#211
gareth-allan merged 2 commits into
mainfrom
feature/CCM-18398_restrict_event_cache_bucket_access

Conversation

@gareth-allan
Copy link
Copy Markdown
Contributor

@gareth-allan gareth-allan commented Jun 3, 2026

Description

This PR adds an event_cache_restrict_data_access boolean flag to the eventpub module's variables and uses it to set the enable_abac property and NHSE-RESTRICTED-PID tag on the module's event cache S3 bucket.

The updated module will be used (and has been tested) in this Digital Letters PR.

Context

This change is required because the Digital Letters domain contains PII (an NHS number) in some of its event payloads. This means that Digital Letters needs to be able to restrict access to the event cache S3 bucket in production accounts.

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

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.

@gareth-allan gareth-allan marked this pull request as ready for review June 3, 2026 16:23
@gareth-allan gareth-allan requested a review from a team as a code owner June 3, 2026 16:23
@gareth-allan gareth-allan merged commit a42bda6 into main Jun 5, 2026
51 checks passed
@gareth-allan gareth-allan deleted the feature/CCM-18398_restrict_event_cache_bucket_access branch June 5, 2026 10:32
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.

4 participants