Repository navigation
Conversation
5bb246b to
fd57476
Compare
fd57476 to
912c70f
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 912c70ff70
ℹ️ 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".
| let expected_path = AbsolutePathBuf::try_from(expected_path) | ||
| .ok() | ||
| .and_then(|path| path.canonicalize().ok()); | ||
| let requested_path = marketplace_path.canonicalize().ok(); |
There was a problem hiding this comment.
Reject symlinked curated marketplace paths
When marketplace_path is a symlink to the synced curated marketplace, this canonical-path comparison passes, but find_installable_marketplace_plugin has already resolved local plugin sources relative to the caller-provided symlink path. A caller can therefore point /tmp/spoof/.agents/plugins/marketplace.json at the real curated marketplace while placing a different plugin under /tmp/spoof/plugins/...; the install then copies that spoofed plugin into the openai-curated cache version and later treats it as first-party. Validate the original path/layout or canonicalize before resolving marketplace-local sources so symlinks cannot change the source root.
Useful? React with 👍 / 👎.
|
Superseded by openai/codex-internal#1385 after the Codex source-of-truth migration. The internal replacement preserves this stack position and carries the validated review fixes. |
What
Why
Phase 1 lifecycle metrics must attribute scripts only to installed, trusted first-party plugins. Accepting arbitrary same-named or symlink-aliased marketplace paths could produce false attribution or copy attacker-controlled plugin sources.
This slice is identity/context plumbing only; it does not emit lifecycle events yet.
Enhancement design: Codex Plugin Metrics
Related backend stack: openai/openai#1111389 → openai/openai#1111392.
How
I tested this
just fmt— passedjust fix -p codex-core-plugins -p codex-plugin -p codex-analytics -p codex-core -p codex-features -p codex-app-server -p codex-windows-sandbox— passed (stack-wide scoped lint gate)just argument-comment-lint— passedjust test -p codex-core-plugins— passed (321/321)just test -p codex-plugin— passed (4/4)just test— attempted; the local workspace build stopped before tests because the runner lacks systemlibcapfor unrelatedcodex-bwrap. Exact-head CI provides the full Linux/macOS/Windows matrix.