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
feat(api): change key format to lh_pat_ with 16-char prefix
API key format changed from `lh_<entropy>` to `lh_pat_<entropy>` so that
secret-scanning tools (gitleaks, GitGuardian) can detect leaked tokens via
the unambiguous `pat_` discriminator.
- key_generator: plaintext = f"lh_pat_{body}", prefix = plaintext[:16]
- dependencies: prefix extraction 12 → 16 chars, min-length guard 12 → 16
- alembic 20260517: bootstrap key regenerated with lh_pat_ format
- alembic 20260518: new migration extends key_prefix to VARCHAR(16)
- all tests updated to lh_pat_ plaintext strings and [:16] prefix slices
Refs #22
0 commit comments