Skip to content

fix: keep imported auth profiles private - #28

Merged
apresmoi merged 1 commit into
mainfrom
fix/auth-import-private-permissions
Sep 13, 2026
Merged

apresmoi merged 1 commit into
mainfrom
fix/auth-import-private-permissions

Conversation

@apresmoi

Copy link
Copy Markdown
Collaborator

Importing Codex or Claude credentials under the usual 022 umask recreated credential files at 0644 and import directories at 0755, including when replacing a previously private import. Runtimes that require private credential files then refused startup.

Use explicit 0600 credential/profile writes and 0700 auth/profile/import directories, repairing permissions on existing paths before writing new credentials. Preserve environment values, import metadata, other auth imports, and source files.

Validation: six default-umask regression cases failed before the fix and pass afterward; deleting either file or directory permission repair makes the legacy-profile regression fail. All 3,538 tests, 12 runtime tests, 28 script tests, coverage thresholds, typecheck, CLI build, built-CLI import/replacement smoke, website build, and runtime dependency audit pass. Independent review found no in-scope defects.

@apresmoi
apresmoi merged commit 981938b into main Sep 13, 2026
1 check passed
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