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

Add ability to encrypt and decrypt arrays with JWE #61

Closed

Conversation

aleh-douhi
Copy link
Contributor

@aleh-douhi aleh-douhi commented Oct 24, 2023

PR checklist

  • An issue/feature request has been created for this PR
  • Pull Request title clearly describes the work in the pull request and the Pull Request description provides details about how to validate the work. Missing information here may result in a delayed response.
  • File the PR against the main branch
  • The code in this PR is covered by unit tests

Link to issue/feature request: N/A

Description

Added an ability to encrypt and decrypt fields in arrays using JWE. Array index is specified using * wildcard in path config, e.g.: *.path.to.*.foo. This path will be converted to array of paths based on the body e.g. [ 0.path.to.0.foo, 0.path.to.1.foo, 1.path.to.0.foo ]. These paths now will be used for encryption/decryption.

@danny-gallagher danny-gallagher added the safe The PR has been reviewed by Mastercard and has been validated to be safe label Nov 9, 2023
@danny-gallagher
Copy link
Contributor

Closing PR after some internal discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe The PR has been reviewed by Mastercard and has been validated to be safe
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants