unkeyed / unkey

Open source API management platform
https://go.unkey.com
Other
2.53k stars 242 forks source link

Encrypted metadata #1678

Open chronark opened 1 month ago

chronark commented 1 month ago

Preliminary Checks

Is your feature request related to a problem? Please describe.

Currently meta data is not encrypted and stores as plain text in the db, which is not suitable to store PII or other secrets.

Describe the solution

I have 2 ideas for this:

  1. A flag to toggle encryption of the existing meta field
  2. A new encryptedMeta field that can be used alongside the original meta, similar to how clerk has private and public metadata

Describe alternatives you have considered (if any)

No response

Additional context

No response

linear[bot] commented 1 month ago

ENG-1089 Encrypted metadata

mvares commented 1 month ago

@chronark, this could be divided into two parts: unsafe metadata and metadata

chronark commented 1 month ago

why "unsafe" over "encrypted"?

mvares commented 1 month ago

why "unsafe" over "encrypted"?

Really, "encrypted" is better