Git Product home page Git Product logo

Comments (4)

rfeelin avatar rfeelin commented on August 30, 2024 1

Hi @connerza

Thanks for your request. At this time we have no plans to implement wildcard JSON paths.
Ideally, we prefer if services encrypt entire payloads. Allowing individual fields is still left for edge cases like auditing, huge payloads etc. This is to keep things as simple as possible.

For your example rather than end up with something like

{
  "items": [
    {
      "encryptedData1": "ngaarekjgnrelkjgna.rbakjrbgkjerbg...
    },
    {
      "encryptedData2": "ngaarekjgnrelkjgna.rbakjrbgkjerbg...
    },
  ] 
}

would it not be better to places the encryption on the items field so it results in something like

{
  "encryptedData": "asdfasdbfvkajbdv.asdfkjbasvkjbkrljbv...
}

So the end-user only has to decrypt one field rather than run it against each field in the list?

from client-encryption-java.

rfeelin avatar rfeelin commented on August 30, 2024 1

Ah getcha! I'll bring this up with the team and schedule it for a future iteration.
I'll let you know once it's in.
If you would like to implement it yourself we also accept PRs.

from client-encryption-java.

connerza avatar connerza commented on August 30, 2024

Hi @rfeelin, thanks for your response! For our use case, we want to only encrypt certain attributes within the list while leaving other attributes in plain text for auditing and debugging purposes. So rather than looking like

{
  "items": [
    {
      "encryptedData1": "ngaarekjgnrelkjgna.rbakjrbgkjerbg...
    },
    {
      "encryptedData2": "ngaarekjgnrelkjgna.rbakjrbgkjerbg...
    },
  ] 
}

it looks something more like

{
  "items": [
    {
        "sensitiveData": "ngaarekjgnrelkjgna.rbakjrbgkjerbg...,
        "nonSensitiveData1": "hello",
        "nonSensitiveData2": "world",
        ...
    },
    {
        "sensitiveData": "ngaarekjgnrelkjgna.rbakjrbgkjerbg...,
        "nonSensitiveData1": "hello",
        "nonSensitiveData2": "world",
        ...
    },
  ] 
}

from client-encryption-java.

rfeelin avatar rfeelin commented on August 30, 2024

@connerza the latest version of the plugin now has support for wildcards. Can you validate that this is working as expected?

from client-encryption-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.