Skip to content

Harden Zyra Shield trusted authorization and evidence - #42

Closed
sonoxo wants to merge 5 commits into
mainfrom
fix/zyra-shield-trusted-authority
Closed

Harden Zyra Shield trusted authorization and evidence#42
sonoxo wants to merge 5 commits into
mainfrom
fix/zyra-shield-trusted-authority

Conversation

@sonoxo

@sonoxo sonoxo commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Superseded by #41, which implements the same three security repairs on the primary agent branch. Closed to avoid conflicting duplicate changes.

@sonoxo sonoxo closed this Aug 26, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83de63ed02

ℹ️ 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".

Comment thread server/zyra-shield.ts
Comment on lines +85 to +86
if (!grant || !grant.capabilities.includes(untrustedRequest.capability)) {
return res.status(403).json({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Audit grant-registry denials before returning

When an authenticated caller requests an unregistered agent or capability, this early return bypasses the createAuditLog call below. These denied authorization attempts therefore leave neither the organization-scoped audit record nor the evidence hash produced for every other Shield decision, creating a monitoring gap specifically for attempts against the trusted grant boundary; construct and persist the denial before sending the 403 response.

Useful? React with 👍 / 👎.

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.

1 participant