Repository navigation
fix(auth): require admin session for passkey enrollment - #942
ImMohammad20000 merged 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 3 remain after this review. WalkthroughAuthentication now supports disabling API-key fallback. Passkey registration options and verification routes use this session-specific authentication dependency. ChangesPasskey session authentication
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The four passkey enrollment endpoints require an enabled admin session, while ordinary API-key authentication remains available on other endpoints. No concrete merge-blocking risk remains in the reviewed changes. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The reviewed enrollment paths now require an admin bearer token instead of accepting an API key. Other API-key authentication remains available. No introduced security issue was established, although deployment behavior and some security coverage remain unverified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the session door, Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
…e port queue Owner decision of 2026-10-07: an unported security-relevant upstream commit must turn the parity gate red at once unless it carries a Ported by design or Waived decision; the port queue's dated grace is for other commits only. A queued commit is security-relevant when its ledger reason carries "(security)" or "[security]", or when its subject names security, a CVE or GHSA id, a vulnerability, auth, authentication or authorization, permissions, privileges, API keys, JWT, tokens, sessions, passkeys, WebAuthn, credentials, passwords, injection, XSS, CSRF, SSRF, escaping or sanitizing. Such a commit, and any patch-identical copy of it, is reported as unported with a ledger error that says why, and turns green when its port lands with a trailer or it is decided. On this branch line the gate is therefore red until the ports land: PasarGuard#938, PasarGuard#940 and PasarGuard#942 (picked on parity/c2-port), eb50bfd (passkey login, picked on parity/c2-port and release/v5.34.25-p13-sync) and the cryptography 50.0.2 bump e2707d9, which has no port yet. Tests show each case failing in the queue and passing once ported or waived; non-security ports keep their deadline.
… to ff6e596 Every Port queue line in the panel and side-repository ledgers now says `security: yes` or `security: no`. Security: c9b445a (passkey client rename), eb50bfd, PasarGuard#938, PasarGuard#940, PasarGuard#942, the cryptography 50.0.2 security release, and the ten commits of upstream's PasarGuard#979 permission-leak batch (user list scopes, API-key permissions, HWID visibility, users.read, the Telegram inline search), which no branch ports yet. Checked with git ls-remote on 2026-10-09: upstream dev moved to ff6e596. The PasarGuard#979 batch, the node RPC fixes (PasarGuard#977, PasarGuard#978), the core-deletion restart (PasarGuard#934), dashboard fixes (PasarGuard#852, PasarGuard#907, PasarGuard#949, PasarGuard#952), performance changes (PasarGuard#945, PasarGuard#853, PasarGuard#855) and the merged dependabot bumps (ruff, uvloop, fastapi) join the queue; the ruff and uvloop conditional waivers ended when upstream merged them. Waived: PasarGuard#980 and its branch commit (the Telegram notifier workflow the fork deleted) and the superseded fastapi dependabot head b021d6f. The refs snapshot records the five new heads. Fork core-kit main 90701408 now contains upstream d2ecb5bd, so that ledger is empty. No side repository gained an upstream commit since 2026-10-07.
RED for upstream 15a61fc (PasarGuard#942): an inheriting API key can request passkey registration options for its admin; enrollment must need a session.
Co-authored-by: etm <etm@LAPTOP-62O1BVSJ> (cherry picked from commit 15a61fc)
Summary
Verification
ruff check --no-fixon both changed files, Pythoncompileall, andgit diff --checkpassed.Only runtime code is included; no test or documentation files were added.
Summary by CodeRabbit