Skip to content

Pass the Media widget credentials through to the dashboard host - #524

Draft
ChrisonSimtian wants to merge 1 commit into
mainfrom
feat/dashboard-widget-secrets
Draft

Pass the Media widget credentials through to the dashboard host#524
ChrisonSimtian wants to merge 1 commit into
mainfrom
feat/dashboard-widget-secrets

Conversation

@ChrisonSimtian

Copy link
Copy Markdown
Collaborator

Gives the Bazarr, Seerr, Plex, Audiobookshelf and qBittorrent tiles live widgets (ADR-0012). Draft until the four new secrets exist — see the step below.

What changed

  • secrets.env.template: BAZARR_API_KEY, SEERR_API_KEY, PLEX_TOKEN, ABS_API_KEY (blank = filled from Secrets Manager).
  • scripts/capture-dashboard-widget-keys.sh: reads each key from the app that owns it (Bazarr config, Seerr settings, Plex preferences; mints a long-lived Audiobookshelf API key named homepage-dashboard via the admin login), stores them in Secrets Manager add-only, mirrors them to this repo's Actions secrets, regenerates secrets.env. Values are never printed.
  • Monitoring host: six podman secrets (the four above + QBIT_USER/QBIT_PASSWORD, which already exist) and matching HOMEPAGE_VAR_* exports in homepage.container. Deploy workflow env passes the new four through.

Before merging

Run once, from the repo root on the LAN:

scripts/capture-dashboard-widget-keys.sh

Then merge, converge Monitoring (deploy-monitoring, apply=true, only=podman-host), and merge the Media widgets PR.

Verification

  • ./build.sh: shapes valid. The capture script is syntax-checked; running it was left to a person because it reads credentials out of the apps.
  • Note: PLEX_TOKEN is the server's account token, not a scoped key. Plex offers nothing narrower; it lives only as a podman secret on CT 4001 and Homepage proxies it server-side.

Bazarr, Seerr, Plex, Audiobookshelf and qBittorrent tiles can carry live
widgets once their credentials reach CT 4001. qBittorrent's already exist
in Secrets Manager; the other four are captured from the apps themselves
by scripts/capture-dashboard-widget-keys.sh (add-only, mirrors to Actions
secrets, regenerates secrets.env). Template, workflow env, podman secrets
and the Homepage quadlet's HOMEPAGE_VAR_* exports are wired here.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@ChrisonSimtian ChrisonSimtian added enhancement New feature or request security labels Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant