Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import JWT signing keys via Docker volumes #75

Open
4 tasks
VKTB opened this issue May 17, 2022 · 0 comments
Open
4 tasks

Import JWT signing keys via Docker volumes #75

VKTB opened this issue May 17, 2022 · 0 comments
Assignees

Comments

@VKTB
Copy link
Contributor

VKTB commented May 17, 2022

Description:
The Dockerfile is currently set to generate these keys, meaning that they get regenerated each time an image is built. The keys should be kept the same between deployments as otherwise all signed in user's sessions would be invalidated. Also, from a security perspective, such keys should not be generated during build because they can easily be found in the image.

Because of the above, it is best to generate these keys outside of Docker (on the Docker host for example) and then import them in the container via Docker volumes.

Acceptance criteria:

  • Dockerfile does not generate JWT signing keys
  • JWT signing keys are imported via Docker volumes
  • Image builds successfully
  • Container works as expected
@VKTB VKTB self-assigned this May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant