mirror of
https://github.com/unraid/api.git
synced 2025-12-30 13:09:52 -06:00
Remove the confusing API keys that were auto-generated for the CLI & Connect. Instead, support authentication via a custom `local-session` header. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Local-session authentication for internal/CLI requests (x-local-session) with generation, validation, on-disk persistence, and lifecycle init. * Internal client gains multi-strategy auth (local session, cookie, or API key), supports subscriptions/origin, and can be cleared/recreated. * **Security** * Embedded development API keys removed from the repository. * **Refactor** * Canonical internal client introduced; consumers migrated from legacy CLI key services. * **Tests / Chores** * Tests, env, and gitignore updated for local-session and canonical-client changes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Pujit Mehrotra <pujit@lime-technology.com>