agentbbs/scripts
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
..
__pycache__ security: reject unsafe usernames at account creation (#171) 2026-11-19 18:39:19 -08:00
fetch-assets.sh Fix/pod public html bind mount (#30) 2026-06-15 08:06:32 -07:00
rebuild-pods.sh Fix/pod public html bind mount (#30) 2026-06-15 08:06:32 -07:00
self-update.sh ci(deploy): pin the deploy key to one forced command; self-update runs the new setup.sh (#163) 2026-11-02 09:21:21 +00:00
set-irc-password.sh security: reject unsafe usernames at account creation (#171) 2026-11-19 18:39:19 -08:00