Skip to content

Overlapping-route auth comparison: false positives and MCP opt-in #221

Closed

Description

@jrosskopf

All of these fail closed (safe), found in the #211 exit gate:

  • The same password re-hashed with a new salt counts as different users; an OIDC provider preset (keycloak) vs its
    spelled-out issuer-url counts as different. Compare verified identity (e.g. resolved issuer) where possible.
  • Three-level overlaps: protected /a/:x/:y, open /a/b/:y (allow-shadowing), open /a/b/c without the flag is refused
    against /a/:x/:y although /a/b/:y would answer /a/b/c anyway. Compare against the endpoint that actually wins.
  • MCP flapi_create_endpoint ignores allow-shadowing while REST create accepts it. Decide (probably: the MCP tool never
    opts out) and document.
  • OIDC keys not compared: email-claim, jwks-cache-hours, enable-client-credentials, enable-refresh-tokens;
    document which keys count as identity.

Found while working on #211 (Claude Code plugin); not fixed there.

Activity

  1. jrosskopf commented on Nov 21, 2026

    @jrosskopf
    ContributorAuthor

    Fixed and merged in #230 (real-binary integration tests under test/integration/).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions