Skip to content

Auto-rotate Soulseek credentials when generated creds age out#324

Merged
lklynet merged 3 commits into
mainfrom
feature/soulseek-credential-rotation
May 13, 2026
Merged

Auto-rotate Soulseek credentials when generated creds age out#324
lklynet merged 3 commits into
mainfrom
feature/soulseek-credential-rotation

Conversation

@lklynet
Copy link
Copy Markdown
Owner

@lklynet lklynet commented May 13, 2026

Summary

  • Added automatic rotation metadata for generated Soulseek credentials, including generatedAt and lastRotatedAt timestamps.
  • Introduced configurable rotation timing via SOULSEEK_AUTO_ROTATE_DAYS, with a 14-day default and support for disabling rotation with non-positive values.
  • Updated connection setup to detect expired auto-generated credentials and regenerate them before connecting.
  • Preserved backward compatibility for legacy auto-generated usernames using the aurral_ prefix.

Testing

  • Not run (not requested).
  • Verify a new auto-generated Soulseek config persists generatedAt and lastRotatedAt in settings.
  • Verify connect() regenerates credentials when stored auto-generated creds are older than the configured rotation interval.
  • Verify manual regeneration updates both the in-memory config and persisted settings.
  • Verify env-provided credentials do not trigger auto-rotation behavior.

lklynet added 3 commits May 13, 2026 10:46
- Persist generated-at and last-rotated timestamps for Soulseek creds
- Regenerate auto-generated credentials when legacy or expired
- Keep reconnect logic in sync with the updated stored config
- Expose a worker endpoint to rotate stored Soulseek credentials
- Surface credential status and rotation controls in the Flow settings modal
- Add frontend API support and prevent rotation when env-managed
- Drop rotation timing and status text from Flow worker settings
- Remove now-based refresh logic and unused date helpers
@lklynet lklynet merged commit 09b65f5 into main May 13, 2026
1 check passed
@lklynet lklynet deleted the feature/soulseek-credential-rotation branch May 13, 2026 15:08
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.76.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant