Skip to content

Commit

Permalink
EPA-157: [ehealthid] Log private keys while booting in debug mode (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrichner-oviva authored Oct 17, 2024
1 parent 40a7b78 commit de9d44f
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,23 @@ private ConfigReader.Config replaceRelyingPartyKeys(ConfigReader.Config config)

var keys = new JWKSet(List.of(signingKey, encKey));

logger.atDebug().log("openid_relying_party signing key, kid={}", signingKey.getKeyID());
logger.atDebug().log("openid_relying_party encryption key, kid={}", encKey.getKeyID());
logger
.atDebug()
.addKeyValue("kid", signingKey.getKeyID())
.addKeyValue("jwk", signingKey.toJSONString())
.log(
"openid_relying_party signing key, kid={} jwk={}",
signingKey.getKeyID(),
signingKey.toJSONString());

logger
.atDebug()
.addKeyValue("kid", encKey.getKeyID())
.addKeyValue("jwk", encKey.toJSONString())
.log(
"openid_relying_party encryption key, kid={} jwk={}",
encKey.getKeyID(),
encKey.toJSONString());

var fedConfig =
config
Expand Down

0 comments on commit de9d44f

Please sign in to comment.