Skip to content

fix(secrets): 1Password secret provider fails when OpenClaw files are group-writable - #181127

Merged
jalehman merged 1 commit into
mainfrom
fix/secret-provider-group-writable
Oct 23, 2026
Merged

jalehman merged 1 commit into
mainfrom
fix/secret-provider-group-writable

Conversation

@jalehman

Copy link
Copy Markdown
Contributor

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 002 on Ubuntu and Debian).

User Impact

User impact: 1Password SecretRefs resolve on default Ubuntu and Debian installs with no manual chmod after 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

  • Real CLI, before and after, on an Ubuntu 24.04 host with umask 0002: both builds have dist/extensions/onepassword at 775 and onepassword-secret-ref-resolver.js at 664. I ran openclaw secrets audit --allow-exec --json against the same config, whose clawrouter provider key is a 1Password SecretRef:
    • Unfixed main build: models.providers.clawrouter.apiKey is REF_UNRESOLVED ("plugin integration is unavailable: plugin "onepassword" integration "onepassword" could not be materialized").
    • This branch: 3 refs checked, 0 unresolved.
  • Live Gateway on the same host: removing group write from just those two paths (the manual workaround) made openclaw secrets reload log SECRETS_RELOADER_RECOVERED, and a turn on the clawrouter model then succeeded.
  • Regression test: src/secrets/provider-integrations.test.ts now covers both modes. A group-writable (775/664) entrypoint is listed, and it fails on main. A world-writable one is still skipped.
  • Checks: vitest run src/secrets/provider-integrations.test.ts passes (16/16), tsgo:core passes, and oxfmt and oxlint are clean on the changed files.
    • In the wider src/secrets run, egress-proxy/proxy-worker.test.ts fails the same way on main on macOS (LibreSSL openssl verify prints usage text), so it isn't related to this change.
  • Review: autoreview (Codex gpt-5.6-sol, branch mode) returned clean.

…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
@clawsweeper

clawsweeper Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 75ad48b0929812708ec35ccaa4cca36591eb1137
  • Maintainer: @jalehman
  • Repository role: admin

These security sensitive changes were made:

  • src/secrets/provider-integrations.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS labels Oct 23, 2026
@jalehman
jalehman merged commit 25dde25 into main Oct 23, 2026
115 checks passed
@jalehman
jalehman deleted the fix/secret-provider-group-writable branch October 23, 2026 00:48
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation security-sensitive-changed size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: bundled 1Password secret provider silently fails on group-writable installs (default Ubuntu umask 002)

1 participant