fix(cluster): isolate runtime credentials and proxy identity - #143
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fc65fdfbb4
ℹ️ 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".
| await requireDirectoryChain(home, agentDir); | ||
|
|
||
| const databasePath = path.join(agentDir, "agent.db"); | ||
| const tokenPath = path.join(home, ".omp", "auth-broker.token"); |
There was a problem hiding this comment.
Check the broker token in the selected OMP profile
The durable credential preflight checks $HOME/.omp/auth-broker.token, but OMP's profile-local broker token is stored at $HOME/.omp/profiles/<profile>/auth-broker.token (as the repository's maintainer installer does). Thus a session whose selected profile contains that token will pass this check and start OMP with a reusable broker credential accessible to the arbitrary-code session workload. Derive and check the profile root from agentDir (the parent of agent) instead.
Useful? React with 👍 / 👎.
Outcome
Close the two P1 security boundaries found in the post-merge cluster audit:
Credential boundary
Gateway identity boundary
Verification
Review and merge boundary
There are no live users or production credential migrations. This is a pre-production, default-deny cutover. The repository owner authorized an internal security review and merge after fresh exact-head CI succeeds.