Skip to content

fix: validate disk paths start-with allowed prefix (fixes #16) - #126

Merged
alorbach merged 2 commits into
masterfrom
copilot/fix-multiple-allowed-directories
May 6, 2026
Merged

alorbach merged 2 commits into
masterfrom
copilot/fix-multiple-allowed-directories

Conversation

Copilot AI commented May 6, 2026 •

Copy link
Copy Markdown
Contributor
  • Read PR review feedback: test duplicates production logic instead of calling LogStreamDisk::Verify() directly
  • Rewrite LogStreamDiskPathTest to instantiate LogStreamDisk and call Verify() with a controlled $content['DiskAllowed'] global, asserting on the real return codes (ERROR_PATH_NOT_ALLOWED vs ERROR_FILE_NOT_FOUND / SUCCESS)
  • Run composer test — 10 tests, 10 assertions, 0 failures
  • Run parallel_validation — clean

@alorbach

alorbach commented May 6, 2026

Copy link
Copy Markdown
Member

@codex review

@alorbach alorbach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good one

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@alorbach
alorbach marked this pull request as ready for review May 6, 2026 10:21
cubic-dev-ai[bot]

This comment was marked as outdated.

Copilot AI requested a review from alorbach May 6, 2026 10:31
@alorbach
alorbach merged commit ef4700a into master May 6, 2026
6 checks passed
@alorbach
alorbach deleted the copilot/fix-multiple-allowed-directories branch May 6, 2026 10:47
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.

2 participants