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

[draft] Refactor tce #66

Closed
wants to merge 15 commits into from
Closed

[draft] Refactor tce #66

wants to merge 15 commits into from

Conversation

ioguix
Copy link
Collaborator

@ioguix ioguix commented Jan 5, 2023

This is some code review and refactoring of the tce related code in pgsodium.

Changes:

  • add a full script extension to ease dev, audit and review
  • refactor the encryption triggers
  • refactor how the decryption views are generated
  • rename some functions and triggers

TODO:

  • add lots of TAP tests to check the extension objects created by both the full script extension and the incremental one
  • the incremental extension script need to be resynched
  • should the encryption trigger be security definer and deprecate crypto_aead_det_encrypt(bytea, bytea, uuid, bytea) or should it invoke crypto_aead_det_encrypt(bytea, bytea, uuid, bytea) (which is security definer)?

It fixes #55

@michelp michelp marked this pull request as draft January 5, 2023 16:10
@ioguix ioguix closed this Jun 21, 2023
@ioguix ioguix deleted the refactor_tce branch June 21, 2023 16:03
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.

TCE: triggers recreated twice per column
1 participant