Repository navigation
feat(console): realtime guests policy - #14996
Conversation
Adds Auth > Policies > Realtime with a card for the deny realtime guests policy, using a console SDK build that includes the endpoint. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review complete. 🟠 1 high 💬 Inline comments (1)
🧹 Nitpicks (1) — 🟢 1 low
This PR wires a new console policies page for denying realtime subscriptions to guests, covering route, tab navigation, settings hooks, and i18n dictionaries. The realtime policy toggle is correctly plumbed through the settings hook and the server-side policy action, and the new route mirrors its sibling policy routes.
The main blocker is the dependency change, which violates the repository's own SDK pin lint gate; a minor copy inaccuracy accompanies the new policy card. Reviewed commit: bf21d5e |
New ConsoleProject ID: Tip Every Git commit and branch gets its own deployment URL automatically |
🟢 Tier S · Ready to merge
Adds an Auth → Policies → Realtime tab for managing the deny-realtime-guests project policy, reading its value from project policy data and updating it through the Console SDK. The change also makes the existing email-policy switch card reusable, wires policy and command-center search, adds Japanese and Hebrew translations, and pins the SDK build containing the endpoint. A mocked Playwright spec covers the initial value, toggling, update failure recovery, and policy search. Latest changes: The latest commits add mocked Playwright coverage for toggle, readback, failure recovery, and search; clarify guest behavior in the description and Japanese/Hebrew translations; update the SDK pin; and refresh generated GitHub-star data.
📂 Walkthrough · 15
Reviewed the commits since |
There was a problem hiding this comment.
Adds a "Realtime" sub-tab under Auth policies with a denyRealtimeGuests toggle and switches the @appwrite.io/console dependency to a pkg.vc preview pin.
Key findings
- 🟠
pkg.vcpreview SDK pin violates repo's own lint gate — package.json:62
The pkg.vc build predates Videos, so the console no longer built, and lint:sdk-pins refuses pkg.vc on main. Pins the pkg.pr.new build of #14945 instead, rewords the guests card for connections that list channels, and adds a mocked e2e spec for the Realtime policies tab. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
On the nitpick about the guests copy in URL mode: fixed in 3d34819. The card now reads "Guest connections that list channels are refused, and other guests must sign in before subscribing", which matches both paths: a URL-mode guest connection is closed when it opens, and a guest subscribing by message is refused until it authenticates. |

What
Adds Auth → Policies → Realtime with one card, Guests, to turn on the deny realtime guests policy (
PATCH /v1/project/policies/deny-realtime-guests) from #14945.EmailPolicyCardtoPolicySwitchCardso it can be shared.ProjectPolicyId.Denyrealtimeguests) into the auth security snapshot.Screenshots
A refused update shows the server's error, and the card goes back to the stored value, as the email policies do:
These were taken by the new mocked spec,
e2e/console.mocked.realtime-policy.spec.ts.Why Auth → Policies
The endpoint is a project policy, and every other policy toggle lives here. Allowing or refusing guests decides who may use realtime, so it sits with the session and membership policies, not under Settings or Realtime.
SDK
@appwrite.io/consoleis pinned to the pkg.pr.new build of #14945 at its full head commit (916bc62877a7aab12f7e356cdc2e874f776f47c8). That build hasupdateDenyRealtimeGuestsPolicyand everything onmain, such asVideos.Before merging
mainor a release.Checks
console.mocked.realtime-policy.spec.ts, 4 tests passing locally): turning the policy on and off sends{ enabled: true }and then{ enabled: false }, a stored "on" is read back, a refused update shows its error, and policy search finds the card.bun run buildandlint:sdk-pinspass.tscstill reports errors elsewhere insrc/, on lines this PR doesn't touch.i18n:audit:jaandi18n:audit:hepass.routeTree.gen.tschanges only by the new route.🤖 Generated with Claude Code