fix: correct ENCRYPTION_KEY example and improve .env.example developer guidance #4955
+4
−2
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.
This PR improves the developer onboarding experience by fixing and clarifying the
.env.examplefile used for local development.What was wrong
The previous
ENCRYPTION_KEYexample caused the backend to fail during migrations with:This happens because the example key provided did not match the expected size required by Infisical’s cryptography module.
What this PR changes
ENCRYPTION_KEYwith a valid-length base64 key to avoid runtime crypto errors.Why this helps
New contributors following the development docs were hitting boot-up migration failures due to the invalid sample key.
Fixing this removes a common point of confusion and creates a smoother, more reliable local setup experience — especially for first-time contributors.
Type
Tests
Steps taken:
Rebuilt and recreated all dev containers using:
Verified backend starts without crypto initialization errors.
Confirmed migrations run successfully using the corrected key.
No additional dependencies required.