Closed teemukataja closed 8 months ago
related to neicnordic/sda-download#4 ?
a vault service that re-encrypts the header would work nicely here.
There is a strong use case for having reencryption/header rewriting/decryption as (at least one) separate microservice(s) as we strongly prefer to not have private key that can decrypt the entire archive within a process that is exposed to end users.
Interface needs to be defined.
relates with #667 and #364
If a user sends a public key, re-encrypt the data related params:
Also take a look at https://github.com/neicnordic/sda-download/blob/0aa5af3ce690a610c5c2b369dd9d0ef8d58468d7/internal/database/database.go#L173-L178