Repository navigation
fix(secrets): 1Password secret provider fails when OpenClaw files are group-writable - #181127
Merged
Merged
Conversation
…n discovery Plugin secret-provider integrations rejected any resolver path with group or world write. Under user-private-group umasks (002, the Ubuntu/Debian default) every built or installed file is group-writable, so the bundled 1Password provider never materialized and its SecretRefs failed cold with only "secret provider failed" in the log. Plugin discovery already loads the same plugin's code at those modes and rejects only world write; apply the same rule to the resolver path. Fixes #181115
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 23, 2026
…n discovery (openclaw#181127) Plugin secret-provider integrations rejected any resolver path with group or world write. Under user-private-group umasks (002, the Ubuntu/Debian default) every built or installed file is group-writable, so the bundled 1Password provider never materialized and its SecretRefs failed cold with only "secret provider failed" in the log. Plugin discovery already loads the same plugin's code at those modes and rejects only world write; apply the same rule to the resolver path. Fixes openclaw#181115
RomneyDa
pushed a commit
that referenced
this pull request
Oct 26, 2026
…n discovery (#181127) Plugin secret-provider integrations rejected any resolver path with group or world write. Under user-private-group umasks (002, the Ubuntu/Debian default) every built or installed file is group-writable, so the bundled 1Password provider never materialized and its SecretRefs failed cold with only "secret provider failed" in the log. Plugin discovery already loads the same plugin's code at those modes and rejects only world write; apply the same rule to the resolver path. Fixes #181115 (cherry picked from commit 25dde25)
RomneyDa
pushed a commit
that referenced
this pull request
Oct 26, 2026
…n discovery (#181127) Plugin secret-provider integrations rejected any resolver path with group or world write. Under user-private-group umasks (002, the Ubuntu/Debian default) every built or installed file is group-writable, so the bundled 1Password provider never materialized and its SecretRefs failed cold with only "secret provider failed" in the log. Plugin discovery already loads the same plugin's code at those modes and rejects only world write; apply the same rule to the resolver path. Fixes #181115 (cherry picked from commit 25dde25)
tideclaw-bot
added a commit
that referenced
this pull request
Nov 4, 2026
Adapt 21 audited fixes to release-native ownership and recovery. Retain strict temporary environment isolation and provider-only cooldowns. Original-source provenance and contributor credit: #179144 5a97c90 — Peter Steinberger <[email protected]> #180280 442c2f7 — Jason (Json) <[email protected]> #178596 63f386b — Braden Guliano <[email protected]> #181804 d75915e — Peter Steinberger <[email protected]> #181140 b4031b2 — Peter Steinberger <[email protected]> #182207 b8fae65 — Peter Steinberger <[email protected]> #180792 d2c70dd — Peter Steinberger <[email protected]> #179205 c08aa6d — Peter Steinberger <[email protected]> #179997 f178dd9 — mali <[email protected]> #181270 e204484 — Peter Steinberger <[email protected]> #179031 855b0aa — Peter Steinberger <[email protected]> #179726 3d51d00 — Peter Steinberger <[email protected]> #179249 b617d97 — Josh Avant <[email protected]> #182385 bb13bcd — Peter Steinberger <[email protected]> #182615 411bac2 — Peter Steinberger <[email protected]> #181300 765c2f1 — Peter Steinberger <[email protected]> #179549 09ba994 — Peter Steinberger <[email protected]> #179445 ac5587b — Peter Steinberger <[email protected]> #181127 25dde25 — Josh Lehman <[email protected]> #173209 ebccf57 — Peter Steinberger <[email protected]> #175289 e579f09 — Peter Steinberger <[email protected]> Proof: targeted owner/regression tests; Qwen15 and catalog pool13 pass. Final integrated lint/type/format pass remains pending under user direction. Co-authored-by: RomneyDa <[email protected]>
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.
Closes #181115
What Problem This Solves
Fixes: the bundled 1Password secret provider silently fails, so every 1Password-backed model provider's turns fail, when OpenClaw's files are group-writable (the default
umask 002on Ubuntu and Debian).User Impact
User impact: 1Password SecretRefs resolve on default Ubuntu and Debian installs with no manual
chmodafter each build. World-writable resolver paths are still refused.Why This Change Was Made
Plugin secret-provider integrations refused any resolver script, or directory up to the plugin root, with group or world write. Plugin discovery already loads the same plugin's code from the same directory into the Gateway at those modes, and it refuses only world write. So the stricter check protected nothing the Gateway doesn't already trust, and it broke the integration under user-private-group umasks. The resolver check now uses discovery's rule: no world write, same owner check as before. The manifest docs now state the rule.
Evidence
umask 0002: both builds havedist/extensions/onepasswordat775andonepassword-secret-ref-resolver.jsat664. I ranopenclaw secrets audit --allow-exec --jsonagainst the same config, whose clawrouter provider key is a 1Password SecretRef:models.providers.clawrouter.apiKeyisREF_UNRESOLVED("plugin integration is unavailable: plugin "onepassword" integration "onepassword" could not be materialized").openclaw secrets reloadlogSECRETS_RELOADER_RECOVERED, and a turn on the clawrouter model then succeeded.src/secrets/provider-integrations.test.tsnow covers both modes. A group-writable (775/664) entrypoint is listed, and it fails on main. A world-writable one is still skipped.vitest run src/secrets/provider-integrations.test.tspasses (16/16),tsgo:corepasses, and oxfmt and oxlint are clean on the changed files.src/secretsrun,egress-proxy/proxy-worker.test.tsfails the same way on main on macOS (LibreSSLopenssl verifyprints usage text), so it isn't related to this change.gpt-5.6-sol, branch mode) returned clean.