Skip to content

Reject paths in project documentation fallback filenames - #45865

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4369e9b97ae6a3560d09e79efd8c85adac3d1d90
Sep 16, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4369e9b97ae6a3560d09e79efd8c85adac3d1d90

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Reject paths in project documentation fallback filenames

Why

Probing Windows network paths can send ambient credentials, even during metadata checks. Entries in project_doc_fallback_filenames must be validated before filesystem probes.

What changed

Ignore entries containing path syntax according to the executor's OS, rather than the host's. Reject . and .., slashes, and NUL characters on all executors; also reject backslashes and colons on Windows. Log a warning for rejected entries and continue considering valid filenames.

Testing

Add tests that verify invalid entries never reach metadata probes under POSIX and Windows path conventions, preserve backslashes and colons in POSIX filenames, and confirm valid fallback instructions still load alongside invalid entries.

## Why

Probing Windows network paths can send ambient credentials, even during metadata checks. Entries in `project_doc_fallback_filenames` must be validated before filesystem probes.

## What changed

Ignore entries containing path syntax according to the executor's OS, rather than the host's. Reject `.` and `..`, slashes, and NUL characters on all executors; also reject backslashes and colons on Windows. Log a warning for rejected entries and continue considering valid filenames.

## Testing

Add tests that verify invalid entries never reach metadata probes under POSIX and Windows path conventions, preserve backslashes and colons in POSIX filenames, and confirm valid fallback instructions still load alongside invalid entries.

GitOrigin-RevId: 4369e9b97ae6a3560d09e79efd8c85adac3d1d90
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/4369e9b97ae6a3560d09e79efd8c85adac3d1d90 branch from 70e0b7d to 50d7795 Compare September 16, 2026 04:59
@copyberry
copyberry Bot merged commit 50d7795 into main Sep 16, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/4369e9b97ae6a3560d09e79efd8c85adac3d1d90 branch September 16, 2026 04:59
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 16, 2026
@solo-race
solo-race deployed to issue-triage September 16, 2026 05:02 — with GitHub Actions Active
@solo-race
solo-race deployed to issue-triage September 16, 2026 05:02 — with GitHub Actions Active
@solo-race
solo-race deployed to issue-triage September 16, 2026 05:02 — with GitHub Actions Active
@Itachi-F
Itachi-F deployed to issue-triage September 16, 2026 05:04 — with GitHub Actions Active
@Itachi-F
Itachi-F deployed to issue-triage September 16, 2026 05:04 — with GitHub Actions Active
@Itachi-F
Itachi-F deployed to issue-triage September 16, 2026 05:04 — with GitHub Actions Active
@Itachi-F
Itachi-F deployed to issue-triage September 16, 2026 05:05 — with GitHub Actions Active
@jcdrive
jcdrive deployed to issue-triage September 16, 2026 05:11 — with GitHub Actions Active
@jcdrive
jcdrive deployed to issue-triage September 16, 2026 05:11 — with GitHub Actions Active
@jcdrive
jcdrive deployed to issue-triage September 16, 2026 05:11 — with GitHub Actions Active
@jcdrive
jcdrive deployed to issue-triage September 16, 2026 05:12 — with GitHub Actions Active
@hmhkamilo
hmhkamilo deployed to issue-triage September 16, 2026 05:23 — with GitHub Actions Active
@hmhkamilo
hmhkamilo deployed to issue-triage September 16, 2026 05:23 — with GitHub Actions Active
@hmhkamilo
hmhkamilo deployed to issue-triage September 16, 2026 05:23 — with GitHub Actions Active
@genki1234
genki1234 deployed to issue-triage September 16, 2026 05:53 — with GitHub Actions Active
@genki1234
genki1234 deployed to issue-triage September 16, 2026 05:53 — with GitHub Actions Active
@genki1234
genki1234 deployed to issue-triage September 16, 2026 05:53 — with GitHub Actions Active
@genki1234
genki1234 deployed to issue-triage September 16, 2026 05:54 — with GitHub Actions Active
@ZYC99
ZYC99 deployed to issue-triage September 16, 2026 06:18 — with GitHub Actions Active
@ZYC99
ZYC99 deployed to issue-triage September 16, 2026 06:18 — with GitHub Actions Active
@ZYC99
ZYC99 deployed to issue-triage September 16, 2026 06:18 — with GitHub Actions Active
@ZYC99
ZYC99 deployed to issue-triage September 16, 2026 06:19 — with GitHub Actions Active
@Ga68
Ga68 deployed to issue-triage September 16, 2026 06:24 — with GitHub Actions Active
@Ga68
Ga68 deployed to issue-triage September 16, 2026 06:24 — with GitHub Actions Active
@Ga68
Ga68 deployed to issue-triage September 16, 2026 06:24 — with GitHub Actions Active
@Ga68
Ga68 deployed to issue-triage September 16, 2026 06:25 — with GitHub Actions Active
@KutosMoro
KutosMoro deployed to issue-triage September 16, 2026 06:33 — with GitHub Actions Active
@KutosMoro
KutosMoro deployed to issue-triage September 16, 2026 06:33 — with GitHub Actions Active
@KutosMoro
KutosMoro deployed to issue-triage September 16, 2026 06:33 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 50d77959 Deployed Sep 16, 2026 by Yadoon via Generate label suggestions #45945
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.