Skip to content

feat(auth): implement session-based auth and stream token security#140

Open
lklynet wants to merge 4 commits intomainfrom
auth-hard
Open

feat(auth): implement session-based auth and stream token security#140
lklynet wants to merge 4 commits intomainfrom
auth-hard

Conversation

@lklynet
Copy link
Owner

@lklynet lklynet commented Mar 9, 2026

  • Replace localStorage with sessionStorage for auth credentials to improve security
  • Add short-lived stream tokens for media endpoints to prevent credential exposure
  • Require admin role for settings and discovery management endpoints
  • Add permission checks for artist refresh and album update operations
  • Implement configurable CORS origins for enhanced security control

lklynet added 4 commits March 6, 2026 13:54
- Replace localStorage with sessionStorage for auth credentials to improve security
- Add short-lived stream tokens for media endpoints to prevent credential exposure
- Require admin role for settings and discovery management endpoints
- Add permission checks for artist refresh and album update operations
- Implement configurable CORS origins for enhanced security control
Add a script to reset admin password from the command line with options to set a new password or generate a random one. Update package.json scripts and README documentation accordingly.
…ning

- Replace plaintext password storage with server-issued bearer tokens
- Add session table, login/logout endpoints, and token validation middleware
- Secure WebSocket connections and stream URLs with session tokens
- Enforce authentication and permissions on previously unprotected routes
- Implement SSRF protection, CORS restrictions, and security headers
- Add password strength validation and sanitize error responses
- Fix proxy auth default behavior and permission system bug
@lklynet lklynet linked an issue Mar 11, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Username and password stored in localstorage

1 participant