Conversation
State which API keys can read an environment's PDP statistics, and describe the environment PDP listing's ordering and its page and per_page parameters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Deploy Preview for permitio-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…ng "all PDPs" A key of another environment in the same organization gets a 403. The endpoints table now says the environment's PDP listing lists the PDPs, which it returns one page at a time, rather than all of them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review: findings and fixesA trimmed comprehensive review (quality, architecture, security, performance, tests, docs, ops) of cbff45d found the new wording accurate, with 2 Nits. It also found one statement elsewhere on the page that this PR does not change.
Checked and found correct
Tests after the fixesThe change is two lines of text. The deploy preview builds on each push. |
zeevmoney
left a comment
There was a problem hiding this comment.
Approved — no CRITICAL or HIGH issues found.
Non-blocking:
- MEDIUM
docs/api/pdp-statistics.mdx:23— a key of another environment can get a404, not only a403 - LOW
docs/api/pdp-statistics.mdx:38— say what aper_pageabove 100 does, and howpagemoves withoutper_page
Details are in the inline comments on each line.
…age above 100 is a 422 A key of another environment in the same organization gets a 403 or a 404, so the page says to check the API key on a 404 too. The PDP listing's paging moves to its own paragraph after the example response: without per_page, page moves 1000 PDPs at a time, and a per_page above 100 gets a 422. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ns on Permit's cloud On Permit's cloud the messages endpoint returns an empty `data` list for every environment, so "an empty list means every online PDP received the updates" was a false all-clear there. The section now says what the endpoint returns on Permit's cloud and in a full on-premise deployment, keeps the "lost" reading to on-premise, drops the webhooks pointer, and states the 24-hour window and the few-minute loss decision instead of "after several retries". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of
|
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TEQWbhtPyG778XaEvEuKrh * commit 'cdfc77a6889fea30960000355ce07a0d4eda2b1e': docs(nexus-pdp): the 0.8.0 memory minimum, stalled-database reporting, and event-store retention (#699) docs: Elements reads the user key from the environment's user key claim docs(nexus-pdp): the NATS credentials directory, PDP_RUNTIME_DIR, and its memory emptyDir (#689) docs: add SFS UTM tags on app.agent.security links in architecture and rollout (#694) PER-18198: PDP statistics API: which keys can read an environment, and paging (#693) docs(nexus-pdp): offline mode: stale serving, offline start, in-place reconnect, and the online heal (#697)
Summary
403or a404response, and on a404the page says to check the API key as well as the path.pageandper_pagepage through it: withoutper_page, a page holds up to 1000 PDPs andpagemoves 1000 PDPs at a time, and aper_pageabove 100 gets a422response. The endpoints table now says "List the PDPs in an environment" instead of "List all PDPs".datalist for every environment, so "an emptydatalist means every online PDP received the recent updates" was a false all-clear there. The section now says what the endpoint returns on Permit's cloud and in a full on-premise deployment (data updates only, kept 24 hours), scopes the "lost messages" check to on-premise, saysassumed_lostis decided within a few minutes (not "after several retries"), and drops the pointer to the webhooks page from that section. Fixes PER-19314.Changes
docs/api/pdp-statistics.mdx: the endpoints table row for the PDP listing, the sentences in "Authenticate to the PDP statistics API", the sentence after the curl example in "List the PDPs in an environment", and a paging paragraph after that section's example response. From #696: the front matter and intro, the messages row of the endpoints table, the opening of "Check the delivery status of update messages", theassumed_lostrow, and the end of "List only lost messages to find sync issues".Test plan
last_seen_atdescending and takespageandper_page.Description updated during review to match cf27ede (a key of another environment can get a
404as well as a403, and the paging paragraph with the422).🤖 Generated with Claude Code