From 0be9ae426b0533515e2627a9481574d7af462fce Mon Sep 17 00:00:00 2001 From: tommy Date: Sat, 27 Jun 2026 22:01:27 -0500 Subject: [PATCH] homepage: read HA token from env var; stop committing it in plaintext services.yaml now references key: "{{HOMEPAGE_VAR_HASS_TOKEN}}" instead of the inline long-lived HA JWT (which was exposed in this public-fronted repo and has been rotated + revoked). Secret now lives only in observability/.env (untracked, mode 600). Add .gitignore for .env/secrets so this can't recur. Co-Authored-By: Claude Opus 4.8 --- .gitignore | 13 +++++++++++++ homepage/services.yaml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ff4c2c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +# Secrets / credentials — never commit +.env +.env.* +*.env +secrets.yaml +secrets.yml +secrets.*.yaml +*.key +*.pem +*.crt +credentials +*credentials* +*.secret diff --git a/homepage/services.yaml b/homepage/services.yaml index 7e80890..6a3c646 100644 --- a/homepage/services.yaml +++ b/homepage/services.yaml @@ -200,7 +200,7 @@ widget: type: homeassistant url: http://192.168.99.100:8123 - key: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI1MmRhODYzMzFkMDI0NzhiODcxYzhjYjE4MGNhMWEwMCIsImlhdCI6MTc3MDYwODA3MCwiZXhwIjoyMDg1OTY4MDcwfQ.Nwq2auBILpZXsZI1g7mbE8JIBa5XrUwo599oEVCp2QQ + key: "{{HOMEPAGE_VAR_HASS_TOKEN}}" fields: ["sensor.processor_use", "binary_sensor.update_available"] - Cloud & Storage: