Registry Mirror
Skip to content

Conversation

@Zivxx

@Zivxx Zivxx commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Merge after the Nexus PDP release that forwards /cloud and /facts, and after the previous PR in this stack (start Nexus PDP with a project or organization API key). This page describes behaviour that doesn't ship until then.

What this does

On the Nexus PDP configuration page:

  • The PDP_BACKEND_URL row now also says that Nexus PDP forwards /cloud and /facts requests to it.
  • A new subsection, "Requests forwarded to the Permit API", under Credentials:
    • The three route mappings: /cloud, /facts, and /v2/facts/{project}/{environment}. The last always uses the PDP's own project and environment.
    • The bearer is PDP_API_KEY. Only Authorization and Content-Type are forwarded.
    • The Permit API's answer comes back unchanged, apart from Set-Cookie and Strict-Transport-Security, which are removed. The Permit API's own Access-Control-* headers pass through, and Nexus PDP adds none of its own; the sentence links to the CORS note on the feature parity page.
    • The limits: 75 s (504 if no answer has started, otherwise the connection closes), a 10 MiB body (413), 64 requests at once (503), and 502 when the Permit API is unreachable.
    • A note: as of November 2026, /facts writes don't wait for the change to reach the PDP. X-Wait-timeout and X-Timeout-Policy are ignored, and the legacy /sdk routes are not forwarded.

Not built locally.

🤖 Generated with Claude Code

…rmit API, without the write wait yet

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Nov 9, 2026

Copy link
Copy Markdown

PER-17944

@Zivxx
Zivxx requested a review from omer9564 November 9, 2026 05:11

@omer9564 omer9564 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.

This matches cloud-pdp #433. I'll approve when it leaves draft for the release.

  • The three route mappings. The compat route uses the edge's own project and environment "whatever the request names". That's exactly what Route::rest does.
  • The bearer. It must be PDP_API_KEY, and only Authorization and Content-Type are forwarded.
  • The limits and their statuses: 75 s (504 before the answer starts, the connection closed after), 10 MiB (413), 64 at once (503), and unreachable (502).
  • The /facts note (no wait yet, PER-17943, with X-Wait-timeout and X-Timeout-Policy ignored) and no /sdk both match.

One thing to follow: on #433 I've suggested dropping Set-Cookie from relayed answers. If that lands, "returns the Permit API's answer unchanged" would want "apart from Set-Cookie".

Zivxx and others added 3 commits November 9, 2026 08:49
…ict-Transport-Security

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Control-* headers and adds none of its own

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Zivxx Zivxx changed the title PER-17944: docs(nexus-pdp): /cloud and /facts are forwarded to the Permit API docs(nexus-pdp): /cloud and /facts are forwarded to the Permit API Nov 11, 2026
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.

2 participants