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

drop pseudonym scope, legacy format/hash support #835

Merged
merged 15 commits into from
Dec 2, 2024

Conversation

eschultink
Copy link
Member

A couple things to note:

  • legacy pseudonyms hashed with scope; but had scope == null in the email case; so legacy hashes of emails and v0.4 hashes of emails are byte-wise equivalent, although there is a minor encoding difference. legacy pseudonyms invented a url-safe encoding (replacing + and / with _ and .), instead of using the standard RFC one (_ and-).

Features

  • remove deprecated notions of pseudonym scope, legacy format support, transitional fiels (h_4)

Change implications

  • dependencies added/changed? no
  • something important to note in future release notes? yes; no one using legacy pseudonyms should upgrade; must be migrated to the new ones first

@eschultink eschultink changed the title S188 : drop scope drop pseudonym scope, legacy format/hash support Nov 19, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as the one in GCP; probably worth to move it to a template folder at the module level and invoke it from there?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we dropped? as scope is no longer used as part of pseudonymization

Copy link
Member Author

Choose a reason for hiding this comment

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

i left the class to be able to give better error feedback. if someone does try to use it. imho, better to explain that unsupported thing being used, than having some sort of deserialization error which would be harder to identify

@eschultink eschultink enabled auto-merge (squash) December 2, 2024 23:12
@eschultink eschultink merged commit 4ffcd23 into rc-v0.5.0 Dec 2, 2024
29 checks passed
@eschultink eschultink deleted the s188-drop-scope branch December 2, 2024 23:22
eschultink added a commit that referenced this pull request Dec 4, 2024
* drop scope concept from most places; support for legacy pseudonyms

* remove LEGACY pseudonym implementation

* fix pseudonym json format everywhere

* fix legacy hash test cases

* fix format; - in place of .

* fix cmd-line case

* update changelog

* fix test commands for aws-psoxy-rest case

* remove identifier_scope_id from terraform modules

* use templates for gcp case; remove moves

* fix msft bug

* add explanatory comment on FieldTransform re leaving PseduonynmizeWithScope in codebase

* cleanup changelog
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.

2 participants