Skip to content

Store file secrets under EXECUTOR_DATA_DIR when set#1431

Merged
RhysSullivan merged 4 commits into
mainfrom
repro/secrets-outside-data-dir
Jul 18, 2026
Merged

Store file secrets under EXECUTOR_DATA_DIR when set#1431
RhysSullivan merged 4 commits into
mainfrom
repro/secrets-outside-data-dir

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

fileSecretsPlugin() always wrote auth.json to the XDG data home, while the rest of the daemon's state lives under EXECUTOR_DATA_DIR. Deployments that persist only the data dir (containers, sandboxes) restored connection rows without their secret values, so token refresh failed with "Stored refresh token could not be resolved" while connections still listed as connected.

auth.json now defaults under EXECUTOR_DATA_DIR when it is set (an explicit directory option still wins, and the XDG location remains the fallback otherwise). Secrets in the legacy XDG file are migrated once on first use; malformed legacy files are skipped, while real I/O failures surface and leave the migration retryable. Concurrent first operations share a single migration attempt. Includes a regression test that recreates the environment with only the data dir preserved.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 5eca314 Jul 18 2026, 06:03 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 5eca314 Commit Preview URL

Branch Preview URL
Jul 18 2026, 06:01 AM

@github-actions

github-actions Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@pkg-pr-new

pkg-pr-new Bot commented Jul 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@1431

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@1431

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@1431

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@1431

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@1431

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@1431

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@1431

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@1431

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@1431

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@1431

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@1431

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@1431

executor

npm i https://pkg.pr.new/executor@1431

commit: 5eca314

@RhysSullivan
RhysSullivan marked this pull request as ready for review July 18, 2026 06:04
@RhysSullivan
RhysSullivan merged commit 39c2bfd into main Jul 18, 2026
21 checks passed
@RhysSullivan RhysSullivan mentioned this pull request Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant