fix: persist encryption key in Docker Compose for container restarts - #5576
Closed
anshulgoel22 wants to merge 1 commit into
Closed
fix: persist encryption key in Docker Compose for container restarts#5576anshulgoel22 wants to merge 1 commit into
anshulgoel22 wants to merge 1 commit into
Conversation
Set BYTECHEF_ENCRYPTION_PROVIDER=property with a stable dev encryption key in docker-compose files so OAuth connection credentials remain decryptable after the ByteChef container is recreated while PostgreSQL data persists in a volume. Also fix BYTECHEF_SECURITY_REMEMBER_ME_KEY env var name and document the encryption settings in README and local Docker install guide. Fixes bytechefhq#3700 Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Author
|
Opened PR #5576 for this: #5576 Sets BYTECHEF_ENCRYPTION_PROVIDER=property with a stable dev encryption key in docker-compose (and aligns README / local Docker docs) so OAuth connection credentials remain decryptable after the ByteChef container is recreated while PostgreSQL data persists in a volume. Also fixes the remember-me env var name. Ready for review — thanks! |
Collaborator
|
Resent #5654 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3700
Summary
When ByteChef runs in Docker with the default
filesystemencryption provider, the key is stored inside the container filesystem (~/.bytechef/key). Recreating the container (docker rm+docker run) generates a new key while PostgreSQL data persists in a volume, so stored OAuth connection credentials cannot be decrypted.Solution
BYTECHEF_ENCRYPTION_PROVIDER=propertywith a stable devBYTECHEF_ENCRYPTION_PROPERTY_KEYindocker-compose.ymlanddocker-compose.src.ymlBYTECHEF_SECURITY_REMEMBER_ME_KEYenv var name (wasREMEMBER-ME_KEYwith a hyphen)docker runType of change
How Has This Been Tested?
ApplicationPropertiesand existing Helmvalues.yamlpatternChecklist: