Skip to content

Releases

v0.5.3

Choose a tag to compare

@askb askb released this 14 Nov 12:35
40bcfef

0.5.3

  • Fix: a merged dashboard change now reaches browsers that already have
    the dashboard open. Home Assistant re-reads a YAML dashboard only when a
    client asks for it, and homeassistant.reload_all does not, so open
    tabs kept showing the old cards until reloaded by hand. After a pull
    that changes YAML, the app now fetches each YAML dashboard once over the
    WebSocket API, which makes Home Assistant notify every open session.
    Only with apply_after_pull: reload; failures are logged, never fatal.
  • Status: a run that pulled and applied a merged PR with nothing to back
    up now reads success:no_changes:applied <sha> instead of a bare
    success:no_changes:.
  • Docs: UI-managed dashboards are out of scope, and interval_hours
    bounds how long a merged PR takes to reach Home Assistant.

0.5.2

  • Security: staged files are scanned for secret-like content (private
    key blocks, GitHub/AWS/Slack/Google tokens, JWTs, inline
    password: literal) and held back from the backup commit; held files are
    listed in the PR body, and a run with only such files ends
    warning:secrets_held. Complements the path-based exclusions.
  • Image: base bumped to Home Assistant base 3.24 (Alpine 3.24) and
    apk upgrade runs at build time, so published images carry current
    Alpine security fixes. No functional change.
  • CI: harden-runner on every job, Trivy image scan (CRITICAL/HIGH,
    fixed-only) gates the build, zizmor + CodeQL + Scorecard workflows,
    Dependabot for action pins. See SECURITY.md.

0.5.1

  • Security: exclude esphome/.device-builder* (ESPHome Device Builder
    state incl. the 32-byte .device-builder-peer-link-key.bin) and
    *-key.bin. Found on the first 0.5.0 run on a real box: the key landed
    in a backup PR. Existing installs: the pattern is enforced via
    .git/info/exclude on the next run; a PR already containing the file
    must be closed by hand.
  • Fix: "N changed file(s)" in the PR body counted an untracked directory
    as one entry; it now counts files (git status --porcelain -uall),
    matching the listed files.

0.5.0

  • Rewrite: the backup script is now Python (gitops_backup.py, stdlib
    only) instead of bash. Behaviour, options, status file and log format are
    unchanged; tests/self_check.sh (the parity gate) runs unmodified against
    the new implementation. jq and curl are no longer installed in the
    image.
  • Fix (#17): default commit_email is now
    gitops-backup@users.noreply.github.com — the old @localhost default
    was rejected by the DCO GitHub App. Existing installs keep whatever value
    is saved in their options.
  • Dev: pyproject.toml with ruff/mypy/pytest; new tests/test_gitops_backup.py
    drives PR creation / de-duplication against a fake GitHub API; ruff
    pre-commit hooks; new "Python Lint & Tests" CI job.
  • Docs: "add-on" → "app" in all user-facing text, following Home
    Assistant's rename. Platform identifiers (io.hass.type=addon, linter
    action, badge URLs, CI job/check names) are unchanged.

v0.4.1

Choose a tag to compare

@askb askb released this 04 Nov 07:09
3599e23
  • Fix: secrets.yaml.* in 0.4.0 also matched committed templates such as
    secrets.yaml.example, untracking them and putting their deletion into
    the backup PR. secrets.yaml.{example,sample,template,dist} are now
    explicitly allowed; *.bak.* (e.g. entity_registry.bak.<ts> registry
    dumps) is excluded. The untracker now uses git's own matcher so negations
    behave exactly as in .gitignore.

v0.4.0

Choose a tag to compare

@askb askb released this 04 Nov 06:59
023857d
  • Security: backup/editor copies of secrets.yaml (secrets.yaml.*, *.bak,
    *.bak-*, *.orig, *.secret) and zigbee2mqtt/secret.yaml are now on the
    never-commit list. A secrets.yaml.bak-<date> left by a manual edit was
    enough to put every real secret into a backup PR.
  • Security: the GitHub token is no longer stored in /config/.git/config
    (readable by any add-on with config access and included in HA full
    backups). The remote is token-less; auth is passed per network call via
    http.extraheader. Existing installs are scrubbed on the next run.
  • Fix: one open backup PR at a time. While a PR is unmerged, new drift is
    pushed onto its branch (pr_updated) and unchanged drift is a no-op
    (pr_open_unchanged) instead of opening a near-identical PR every run
    (a consequence of 0.3.1 keeping drift on disk until merged).
  • Change: the backup commit is built from the index (write-tree /
    commit-tree) — the add-on never switches branches in /config any more.
  • Change: commit and PR bodies list the changed files.
  • Change: GITHUB_API_URL is honoured (GitHub Enterprise / tests).
  • Template: required HA gate bumped from 2026.3 to 2026.10.

Also includes 0.3.1 (unreleased until now):

  • Fix: after pushing a backup branch the add-on no longer rolls the live
    config back. Returning to the base branch used git checkout, which
    rewrote /config to the pre-backup base branch: every backed-up change
    (UI edits, HACS updates) vanished from disk until the next run pulled the
    merged PR, edits made in that window hit stale files (the source of
    stash_conflict / pull_rebase_failed), and if the PR was never merged
    the drift was lost for good. HEAD now moves back without touching the
    working tree, so the drift stays uncommitted and is reconciled on the next
    run.
  • Fix: after a stash_conflict the add-on kept the live files but left the
    conflict in the git index, so every later run failed with needs merge /
    could not write index and no backup or upstream sync happened again
    until someone ran git reset by hand. The index is now cleared right after
    the conflict, and a repo already stuck that way heals on the next run.
    The working tree (the live config) is never touched.

Thanks @mmornati for #12 and #13.

v0.2.1

Choose a tag to compare

@askb askb released this 12 Jul 08:54
3ee5e6f

Security: the never-commit guarantee (secrets, credentials, .storage/, addon runtime files) now holds for migrated repos too — not just ones the add-on bootstrapped. Patterns are enforced via .git/info/exclude on every run, and any secret a prior run already committed is untracked (removal flows out through the next backup PR). Previously a repo migrated in with its own .gitignore lacking these entries could leak an OAuth token (.google.token) or key.

v0.2.0

Choose a tag to compare

@askb askb released this 12 Jul 08:45
b1a2821

Guaranteed 100% restore via a two-pillar backup model.

  • Docs: config repo (this add-on) + encrypted HA full backup (e.g. Google Drive Backup) = 100% restorable — neither alone is enough. Sharpened the what is backed up where table: names exactly what .storage/ holds (UI-added integrations, logins/tokens, registries, dashboards) and flags data outside /config (add-on data, /ssl) the add-on can't see.
  • Security: seed .gitignore now excludes *.token / .google.token so OAuth tokens never leak into the repo.
  • First bootstrap logs a disaster-recovery warning pointing users at full backups.

v0.1.1

Choose a tag to compare

@askb askb released this 12 Jul 08:36
0ad3a7e

Fix: keep the addon's own runtime files (.gitops_backup_status, gitops_backup.log) out of backups when migrating a repo that already has a .gitignore. They were previously swept into backup PRs and risked a status-file PR feedback loop. Now excluded via .git/info/exclude on every run, and untracked if a prior run committed them.