agentbbs/internal/store
Anthony Ettinger 388360012c
security: reject unsafe usernames at account creation (#171)
The hub auto-created an account from the raw SSH login name for any new
key, skipping SanitizeUsername. Names containing '/', '..', spaces or
shell metacharacters were accepted, and the per-user directory
users/<name> could resolve outside users/.

store.EnsureUser now refuses to insert a name that fails
ValidUsername (^[a-z0-9][a-z0-9-]{1,31}$), covering every creation path;
the hub prints a clear error. The root IRC password helper applies the
same rule to its argv.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:39:19 -08:00
..
games_store.go M3: AgentGames — agent-vs-agent games, ELO ladder, replays (#7) 2026-06-14 03:30:12 -07:00
games_store_test.go M3: AgentGames — agent-vs-agent games, ELO ladder, replays (#7) 2026-06-14 03:30:12 -07:00
news_store.go feat: members-only Usenet (NNTP) + Forgejo git provisioning + founding-lifetime $99 2026-06-14 14:26:23 +00:00
news_store_test.go feat: members-only Usenet (NNTP) + Forgejo git provisioning + founding-lifetime $99 2026-06-14 14:26:23 +00:00
store.go security: reject unsafe usernames at account creation (#171) 2026-11-19 18:39:19 -08:00
store_admin_test.go security: reject unsafe usernames at account creation (#171) 2026-11-19 18:39:19 -08:00
store_email_test.go bbs.profullstack.com launch kit: provisioner, custom domains, email verify, ascii-live 2026-06-11 15:53:19 +00:00
store_messages_test.go feat(messaging): group & broadcast messages + email-all 2026-06-27 12:18:41 +00:00
store_premium_test.go payments: call CoinPay REST API directly (drop coinpay CLI dependency) 2026-06-14 08:27:33 +00:00
store_qrypt_test.go feat(qrypt): qrypt.chat anonymous-invite issuer 2026-06-14 11:35:05 +00:00