Commit 244c776d authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Roadmap: mark /auth/login rate limiting done, move it out of Backend TODO

Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent f9c51957
Pipeline #1096 failed with stage
......@@ -113,9 +113,9 @@ const FEATURES: Feature[] = [
sub: 'Username/password login',
status: 'warn',
statusLabel: 'Backend + UI shipped',
built: 'Plain username/password is the primary login (PBKDF2-hashed, stdlib only, no bcrypt dependency), with refresh-token rotation and a real server-side logout that revokes the token — not just a client-side drop. Telegram phone/code (/auth/telegram/*) is now a separate account-linking flow, feeding the chat-scanning music-tagging feature rather than being the identity mechanism.',
gaps: 'Per-IP limiter on /auth/telegram/request_code has no proxy-header handling, so every user could share one bucket in production. No brute-force rate limit on /auth/login yet. The real Telegram sign-in code path is fully mocked in every test. No frontend UI yet to actually link a Telegram account post-login.',
backendTests: '20',
built: 'Plain username/password is the primary login (PBKDF2-hashed, stdlib only, no bcrypt dependency), with refresh-token rotation and a real server-side logout that revokes the token — not just a client-side drop. Telegram phone/code (/auth/telegram/*) is now a separate account-linking flow, feeding the chat-scanning music-tagging feature rather than being the identity mechanism. Brute-force protection shipped 2026-08-16: 10 attempts per account per 15 minutes, 100 per source per hour, independent of the Telegram rate limiter despite sharing a table.',
gaps: 'Per-IP limiter on /auth/telegram/request_code (and the new /auth/login limiter) has no proxy-header handling, so every user could share one bucket in production. The real Telegram sign-in code path is fully mocked in every test. No frontend UI yet to actually link a Telegram account post-login.',
backendTests: '24',
frontendTests: '7',
},
]
......@@ -156,11 +156,6 @@ const BACKEND_TODO: WorkItem[] = [
status: 'ready',
note: 'No DELETE exists for any of the three yet — straightforward owner-scoped CRUD, same pattern as everything else in library.py.',
},
{
item: 'Rate limit /auth/login against brute force',
status: 'ready',
note: 'Zero rate limiting on username/password login right now — reuse the same DB-backed AuthAttempt pattern already protecting /auth/telegram/request_code.',
},
{
item: "Rate limit Discovery's /discovery/listen identify endpoint",
status: 'ready',
......@@ -257,7 +252,7 @@ export function Roadmap() {
{[
['9', 'Feature areas'],
['0', 'Critical security gaps'],
['210', 'Backend tests'],
['214', 'Backend tests'],
['168', 'Frontend tests'],
['4', 'Pages w/ zero tests'],
].map(([n, l]) => (
......@@ -271,7 +266,7 @@ export function Roadmap() {
<section className="mb-10">
<div className="mb-3 flex items-center justify-between">
<h2 className="text-xs font-bold uppercase tracking-wide text-neutral-500">Recently fixed — no known active security gaps</h2>
<span className="text-xs text-neutral-500">Fixed 2026-08-15</span>
<span className="text-xs text-neutral-500">Fixed 2026-08-15 – 16</span>
</div>
<div className="space-y-3">
<div className="rounded-xl border border-emerald-900/50 bg-emerald-950/20 p-4">
......@@ -325,6 +320,22 @@ export function Roadmap() {
</div>
</div>
</div>
<div className="rounded-xl border border-emerald-900/50 bg-emerald-950/20 p-4">
<div className="flex items-start gap-3">
<ShieldCheck size={16} strokeWidth={2} className="mt-0.5 shrink-0 text-emerald-400" />
<div>
<p className="mb-1 text-sm font-semibold text-white">/auth/login now rate-limits brute-force attempts</p>
<p className="text-sm leading-relaxed text-neutral-400">
Username/password login had zero rate limiting — unlimited guesses against any account, from anywhere.
Now capped at 10 attempts per account per 15 minutes and 100 per source per hour, reusing the same
DB-backed <code className="rounded bg-neutral-800 px-1.5 py-0.5 text-xs text-neutral-200">AuthAttempt</code>{' '}
table that already protects{' '}
<code className="rounded bg-neutral-800 px-1.5 py-0.5 text-xs text-neutral-200">/auth/telegram/request_code</code>{' '}
— kept independent of it (separate columns, separate queries) so hammering one doesn't burn the other's budget.
</p>
</div>
</div>
</div>
</div>
</section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment