Fixed
- Live TV Chromecast, Browser Playback & Now Playing Artwork (#79):
- Fixed HTTP 403
Token item mismatcherrors caused by hyphenated vs. compact UUID formatting in HLS proxy paths and playlist rewriting. - Fixed
ValueError: already has OPTIONS handlerduring multi-instance setup by removing the redundantoptions()handler onJellyHAHlsViewand addedHEADsupport for Cast receivers. - Fixed Live TV playback in Home Assistant Media Browser's "Web browser" mode (
live.m3u8direct playlist) and prevented premature termination of sharedLiveStreamIdsessions on inactivity reap. - Added friendly channel-name URL aliasing so Home Assistant Media Browser and Chromecast Default Media Receiver display the channel name instead of
master.m3u8?DeviceId=.... - Fixed missing channel poster and blurred backdrop on the Now Playing card when casting Live TV (or proxied VOD HLS) to Chromecast by resolving active
hls_tokensessions injellyha/get_item.
- Fixed HTTP 403
Security
- Zero API Key Exposure on Cast & Browser Playback:
- Routed
jellyha.play_on_chromecastVOD/Audio DirectPlay, HLS transcodes, and WebVTT subtitles through Home Assistant's signed/tokenized proxy views instead of embedding raw Jellyfin API keys in Cast URLs. - Stripped
api_key,ApiKey, andtokenquery parameters from JellyfinTranscodingUrlinjellyha/resolve_playbackWebSocket responses. - Removed raw
api_keyregex extraction from the Now Playing card frontend.
- Routed
- Input Validation, Log Redaction & Proxy Hardening:
- Added central path-traversal and origin-boundary checks in
JellyfinApiClient._requestplus strict item/session ID validation acrossplay_music,play_live_tv_channel,media_source,browse_media,media_player, andjellyha/get_next_up. - Scrubbed
api_key,token, and raw/encoded key values fromJellyfinWebSocketClientconnection URLs and exception logs. - Enforced
MAX_ACTIVE_SESSIONS = 64with LRU eviction inHlsSessionManagerand boundedlimit/item_typeson WebSocket query commands. - Changed
Cache-Controlfrompublictoprivateon authenticated image/subtitle proxy views, sanitizedContent-Dispositionfilenames, and hid raw exception details inJellyHAStreamView.head500 responses. - Gated
_getJellyfinUrl()withisSafeExternalUrl()and replacedinnerHTMLwithtextContentinjellyha-seek-polyfill.ts. - Added automated local security check (
scripts/security_check.py,npm run security-check) and GitHub Actions security workflow (.github/workflows/security.yaml).
- Added central path-traversal and origin-boundary checks in