-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auth: use a centrally stored jwt signing private key (#1402)
* auth: add JWT signing private key arg * auth: added jwt signing private key flag to docker-compose * tests(auth): fix by starting auth server with jwt secret key * auth/circleci: add jwt signing key env variables for deploy * auth: added instructions about JWT signing private key generation * auth: consume AUTH_JWTSIGNING_PRIVATE_KEY from environment * fix(common): type conversion from str for a custom resource * auth: replaced deprecated base64::decode call * ci: comment main filter for staging release * Revert "auth: consume AUTH_JWTSIGNING_PRIVATE_KEY from environment" This reverts commit 3f766d3. * Revert "ci: comment main filter for staging release" This reverts commit 220df0d. * nit: simplify comment Co-authored-by: Pieter <[email protected]> --------- Co-authored-by: Pieter <[email protected]>
- Loading branch information
1 parent
f37a0e8
commit b7471ac
Showing
12 changed files
with
81 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Auth service considerations | ||
|
||
## JWT signing private key | ||
|
||
Starting the service locally requires provisioning of a base64 encoded PEM encoded PKCS#8 v1 unencrypted private key. | ||
The service was tested with keys generated as follows: | ||
|
||
```bash | ||
openssl genpkey -algorithm ED25519 -out auth_jwtsigning_private_key.pem | ||
base64 < auth_jwtsigning_private_key.pem | ||
``` | ||
|
||
Used `OpenSSL 3.1.2 1 Aug 2023 (Library: OpenSSL 3.1.2 1 Aug 2023)` and `FreeBSD base64`, on a `macOS Sonoma 14.1.1`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters