Elffuss BraidHub

kikocis/EDC public

main · 2.1 KiBSourceRawPermalink

Allowing custom JWSSigner implementations

Decision

To allow custom JWSSigner implementations, the TokenGenerationService needs to be refactored, in particular the way how PrivateKey objects are handled.

Rationale

In the current EDC implementation, the private key is always resolved from the vault, and a JWSSigner implementation is instantiated based on the algorithm of the key.

Some High-Security Modules (HSMs) have a feature where the signing of content can be done with a remote call while the private key material does not leave the HSM itself.

To support this feature in EDC, the TokenGenerationService and its implementation, the JwtGenerationService must be refactored to accommodate the custom JWSSigner.

Approach