fix: store the OIDC signing key as a JWK file instead of a keytool keystore #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/oidc-jwk-file"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
data/jwk.json, propertydachshund_authorization.security.jwk.key-filename) instead of a PKCS12 keystore.kid= thumbprint) is generated in the program on first start. Nokeytoolprocess, no keystore password, no alias.600) via a temporary file and an atomic move,data/is set to700, and the rights of an existing key file are tightened on every start.Why
keytoolwas started as an external process: exit code ignored, password visible in the process list, and it may be missing in a native image or slim container.Tests
OidcJWTSigningKeyTest(13 tests): creation, reuse, never touching an existing file, rights of file and directory, no temporary file left behind, thumbprint askid, and every kind of unusable key file fails and keeps the file.Notes
keystore-filename,store-passwordandaliasare no longer read. An olddata/*.p12can be deleted.