You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Boot panics on short GOOGLE_CLIENT_ID (slice out of range at main.go:64) #106
Any non-empty GOOGLE_CLIENT_ID shorter than 20 chars panics the boot with slice out of range. A typo in an env var takes the whole instance down instead of failing config validation.
Fix
Use min(20, len(...)) for the prefix, or better, move the length check into (*config.Config).Validate (main.go:58 already routes bad config there), consistent with the comment at main.go:56-57.
Found by the 0.10.1 pre-release audit (Layer 2, crypto/secrets pass).
Fixed on main. A short GOOGLE_CLIENT_ID panicked the boot on an unguarded [:20] slice; it now logs whatever prefix exists and boots. Verified with a short test value.
Activity
pullfrog commentedon Sep 29, 2026
fix(boot): don't panic on short GOOGLE_CLIENT_ID (#106)
chore(audit): re-verify claims manifest after 0.10.x changes
shockalotti commentedon Sep 29, 2026
Fixed on main. A short GOOGLE_CLIENT_ID panicked the boot on an unguarded [:20] slice; it now logs whatever prefix exists and boots. Verified with a short test value.