Repository navigation
fix(secrets): explicitly pass BWS_SERVER_URL to resolver for self-hosted instances - #93929
Merged
vincentkoc merged 2 commits intoJun 17, 2026
Merged
Conversation
vincentkoc
force-pushed
the
fix/issue-93851-bws-server-url-env
branch
from
June 17, 2026 10:16
ed4d877 to
0f53c86
Compare
vincentkoc
force-pushed
the
fix/issue-93851-bws-server-url-env
branch
from
June 17, 2026 10:58
0f53c86 to
90db28f
Compare
Pandah97
force-pushed
the
fix/issue-93851-bws-server-url-env
branch
from
June 17, 2026 11:03
90db28f to
53a3dd1
Compare
…ted instances Instead of inheriting the full parent environment (which defeats the least-privilege passEnv contract), explicitly add BWS_SERVER_URL to the resolver script's env config and document the requirement.
vincentkoc
force-pushed
the
fix/issue-93851-bws-server-url-env
branch
from
June 17, 2026 13:59
53a3dd1 to
dc0bba9
Compare
Member
|
Maintainer verification is complete for the rebuilt head
Known infrastructure state:
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jun 18, 2026
…ted instances (openclaw#93929) Merged via squash after the required `scripts/pr merge-run` workflow falsely flagged a non-overlapping mainline refactor as an overlap. Prepared head SHA: dc0bba9 Co-authored-by: Pandah97 <[email protected]> Co-authored-by: Vincent Koc <[email protected]> Reviewed-by: @vincentkoc
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.
Summary
When using
secrets.providers.*withsource: "exec", the resolver script does not receiveBWS_SERVER_URLfrom the parent environment, even when the user has it set in their shell for self-hosted Bitwarden instances.Root cause: The resolver script only explicitly passes
BWS_ACCESS_TOKENandPATHto the childenvobject.BWS_SERVER_URLis silently dropped.Fix: Add
BWS_SERVER_URL: process.env.BWS_SERVER_URLto the resolver script's env config, and update the docs to includeBWS_SERVER_URLinpassEnv.Fixes #93851
Real behavior proof
Behavior addressed: A user with a self-hosted Bitwarden instance can use the exec secret provider without manually patching the resolver script.
Real setup tested:
Exact steps or command run after fix:
After-fix evidence:
All tests pass without modification. The fix only adds
BWS_SERVER_URLto the env object and updates the docs.Observed result after the fix: For a self-hosted Bitwarden setup with
BWS_SERVER_URLexported in the shell, the resolver script now forwards it to thebwsCLI child process. Without this change,bwswould return401 Unauthorizedbecause it doesn't know the server URL.What was not tested: End-to-end interaction with a real self-hosted Bitwarden instance (requires live Bitwarden setup and access token). The resolver script change is a one-line explicit env pass-through following the established pattern.
Tests and validation
All 93 test suites pass. The change adds
BWS_SERVER_URLto the explicit env list, consistent with howBWS_ACCESS_TOKENandPATHare already forwarded.Risk checklist
Did user-visible behavior change? (
Yes)Did config, environment, or migration behavior change? (
No)Did security, auth, secrets, network, or tool execution behavior change? (
No)process.envBWS_SERVER_URLis only forwarded if set in the parent — unset vars passundefinedwhichchild_process.execFileSyncignoresWhat is the highest-risk area?
BWS_ACCESS_TOKENandPATH.How is that risk mitigated?
passEnvarray in the docs is updated in sync with the scriptCurrent review state
What is the next action?
What is still waiting on author, maintainer, CI, or external proof?
Which bot or reviewer comments were addressed?
{ ...process.env }, each variable is explicitly listed.