Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPIKE: CRM457-1920: PII enforcement #1203

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

patrick-laa
Copy link
Contributor

Description of change

2 proof-of-concept specs to enforce keeping PII definitions up-to-date.

One assumes a PII yaml file has been created which explicitly marks certain DB columns as containing PII. To ensure this yaml file is maintained when new columns are added, this spec will fail unless every DB column has been marked as either PII or not.

The other spec assumes the repo contains a JSON Schema file which will be used to validate every payload that is generated or stored. It parses the file and checks to make sure that for every property (including nested object properties), a custom PII boolean annotation has been set.

These will ensure that adding new stuff to the database or payload will break the test suite unless those changes also include updating the PII definitions to match.

@patrick-laa patrick-laa changed the title Crm457 1920: PII enforcement SPIKE: CRM457-1920: PII enforcement Sep 25, 2024
Copy link

sonarcloud bot commented Sep 25, 2024

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

Successfully merging this pull request may close these issues.

1 participant