fix(security): load Docker environment configuration as data - #42225
Draft
wyattwalter wants to merge 3 commits into
Draft
fix(security): load Docker environment configuration as data#42225wyattwalter wants to merge 3 commits into
wyattwalter wants to merge 3 commits into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueComment |
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.
Description
Treat persisted
docker.envas data rather than shell code. This is defense-in-depth hardening on top of the existing admin API escaping protections.Startup and service restarts validate the complete file before loading it. Invalid configuration stops startup with a line number and variable name, without printing values. Resolved external environment values retain precedence.
Backup and restore share the parser and literal-value serializer; restore validates configuration before stopping services or changing the database. Embedded PostgreSQL initialization uses a fixed database name and passes database arguments as data.
Fixes APP-15243.
Compatibility example
Previously, a manually edited
docker.envcould reference another variable:The shell expanded
${MONGO_PASS}toasdf. With this change, startup exits with code 1 and logs:Supply the resolved value instead, in
docker.envor through the deployment's environment/secret configuration:Single-quoting the original expression preserves it literally; it does not resolve the reference.
Impact on existing instances
docker.env; backup/restore output remains shell-quote compatible. Older images resume shell evaluation, so inspect configuration before rollback.Draft release note
Customized
docker.envfiles must contain resolved values before upgrading. Shell expressions now stop startup with a redacted diagnostic identifying the affected variable. Generated defaults and Admin Settings values need no changes.Verification
Automation
/ok-to-test tags="@tag.All"
🔍 Cypress test results
Communication
Should the DevRel and Marketing teams inform users about this change?
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/34652334073
Commit: 60298a5
Cypress dashboard.
Tags:
@tag.AllSpec:
Fri, 11 Sep 2026 23:12:03 UTC