Skip to content

test(auth): enumerate credential status projection - #1430

Closed
lilyshen0722 wants to merge 1 commit into
mainfrom
fix/agent-runtime-auth-projection-guard
Closed

lilyshen0722 wants to merge 1 commit into
mainfrom
fix/agent-runtime-auth-projection-guard

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

The full-User guard began failing after agent credential parent revocation added its intentionally narrow select('status') lookup.

This keeps the fail-closed count and enumerates both permitted projections: the Pod ID lookup and credential status lookup. User.findOne remains separately pinned as unprojected.

Tests:

  • cd backend && npx jest --runInBand __tests__/unit/middleware/agentUserShapeContract.test.js
  • Mutation: changing the credential projection to select('state') fails the new assertion.

@lilyshen0722

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #1431, which landed the same scoped guard repair on main with the stronger recertification rationale. #1381 can now rebase against it.

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