Skip to content

Protect .aws directories under sandbox writable roots - #48176

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/31ea287bd0dd9b13aff893783fba9ca3aed0c89d
Sep 25, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/31ea287bd0dd9b13aff893783fba9ca3aed0c89d

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Protect .aws directories under sandbox writable roots

Why

AWS profiles can select credential helpers that the application executes. Granting write access to a containing directory should therefore keep .aws protected by default.

What changed

Add .aws to the protected metadata paths alongside .git, .agents, and .codex, including workspace roots and additional writable roots. Preserve explicit user rules that override the default protection.

Testing

Extend policy and sandbox tests to cover .aws protection. Add macOS coverage for existing and absent .aws directories, deletion and replacement attempts, and symlink targets. Verify that Linux sandbox writes to protected configuration files fail while sibling files remain writable.

## Why

AWS profiles can select credential helpers that the application executes. Granting write access to a containing directory should therefore keep `.aws` protected by default.

## What changed

Add `.aws` to the protected metadata paths alongside `.git`, `.agents`, and `.codex`, including workspace roots and additional writable roots. Preserve explicit user rules that override the default protection.

## Testing

Extend policy and sandbox tests to cover `.aws` protection. Add macOS coverage for existing and absent `.aws` directories, deletion and replacement attempts, and symlink targets. Verify that Linux sandbox writes to protected configuration files fail while sibling files remain writable.

GitOrigin-RevId: 31ea287bd0dd9b13aff893783fba9ca3aed0c89d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/31ea287bd0dd9b13aff893783fba9ca3aed0c89d branch from a2fe896 to 1d804e9 Compare September 25, 2026 19:14
@copyberry
copyberry Bot merged commit 1d804e9 into main Sep 25, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/31ea287bd0dd9b13aff893783fba9ca3aed0c89d branch September 25, 2026 19:14
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 25, 2026
@mbakalor
mbakalor deployed to issue-triage September 25, 2026 19:18 — with GitHub Actions Active
@mbakalor
mbakalor deployed to issue-triage September 25, 2026 19:18 — with GitHub Actions Active
@mbakalor
mbakalor deployed to issue-triage September 25, 2026 19:18 — with GitHub Actions Active
@Rela1ne
Rela1ne deployed to issue-triage September 25, 2026 19:19 — with GitHub Actions Active
@Rela1ne
Rela1ne deployed to issue-triage September 25, 2026 19:19 — with GitHub Actions Active
@Rela1ne
Rela1ne deployed to issue-triage September 25, 2026 19:19 — with GitHub Actions Active
@matto1079
matto1079 deployed to issue-triage September 25, 2026 19:23 — with GitHub Actions Active
@matto1079
matto1079 deployed to issue-triage September 25, 2026 19:23 — with GitHub Actions Active
@matto1079
matto1079 deployed to issue-triage September 25, 2026 19:23 — with GitHub Actions Active
@crsepulv
crsepulv deployed to issue-triage September 25, 2026 19:34 — with GitHub Actions Active
@crsepulv
crsepulv deployed to issue-triage September 25, 2026 19:34 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 1d804e91 Deployed Sep 25, 2026 by ilya93yu via Identify potential duplicates (all issues) #48363
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.