Skip to content

Why does backup default to steipete/backup-gog.git rather than requiring a user-owned remote? #1287

Closed

Description

@NasAndNora

In v0.47.1, the default backup configuration points to:

https://github.com/steipete/backup-gog.git

This default is also present on main when checked. The repository returns 404 for me, so I cannot determine whether it is private, deleted, or nonexistent.

The code enables pushing unless --no-push is supplied and contains a git push -u origin HEAD path.

Sources: default remote, push option, push implementation.

Could you clarify:

  • Why is a maintainer-account repository the default destination for users’ backups?
  • Is this an intentional shared destination or a development default left in the configuration?
  • Why not require an explicitly configured remote, with local-only backup otherwise?

I understand that the main backup payloads are encrypted. My question concerns the default destination and user control over outbound transfers.

This report is based on source inspection; I have not run a backup or established that any user data reached that repository.

Activity

  1. added
    clawsweeper:intake:support
    P2
    clawsweeper:needs-product-decision
    clawsweeper:needs-security-review
    clawsweeper:no-new-fix-pr
    clawsweeper:source-repro
    impact:security
    issue-rating: 🦞 diamond lobster
    and removed
    clawsweeper:intake:support
    on Oct 31, 2026
  2. clawsweeper commented on Oct 31, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work.

    Summary
    Keep this issue open: v0.47.1 and current main retain the reported destination and default push behavior, leaving a concrete security-boundary decision unresolved.

    Reproducibility: Source establishes implicit destination selection and enabled push paths on main and v0.47.1; no backup was executed and no successful transfer is claimed.

    Maintainer decision needed

    • Question: Should backup stop selecting an account-owned remote implicitly, and how should existing saved destinations and Git origins be handled?
    • Recommendation: Use local-only defaults: Remove the implicit account destination, allow local initialization, and require explicit destination selection before remote transfers, with regressions covering fresh and existing state.
    • Why: Source proves the current behavior, but the documented private-repository model and available history do not establish consent or a compatibility policy for changing it.

    Next step
    Decide the backup destination-consent boundary and legacy-state handling before implementing and regression-testing a change to the defaults.

    Security
    Needs attention: Implicit remote selection warrants review because shard encryption does not establish user consent to transfer backups and cleartext metadata.

    Review details

    Best possible solution:

    Require an explicitly selected remote for outbound backup operations and provide local-only initialization when none is selected.

    Do we have a high-confidence way to reproduce the issue?

    Source establishes implicit destination selection and enabled push paths on main and v0.47.1; no backup was executed and no successful transfer is claimed.

    Is this the best way to solve the issue?

    Explicit destination selection addresses the reported boundary more directly than explaining encryption, while existing --remote and --no-push controls provide a foundation without another configuration option.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • Successful transfer, remote visibility, and any actual user exposure are unestablished; Git permissions and credentials determine whether a push succeeds.
    • Changing the default needs an explicit compatibility policy for saved backup configurations and existing Git origins.

    Codex review notes: model internal, reasoning medium; reviewed against 82e7fd6005d4.

    Label changes

    Label changes:

    • add P2: A shipped advanced CLI workflow has a source-confirmed destination-consent concern, but successful unintended transfers or an urgent exploit are not established.
    • add impact:security: The issue concerns control over outbound encrypted backups and cleartext operational metadata.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.
    • add clawsweeper:needs-product-decision: Current issue advisory state selects this label.
    • add clawsweeper:needs-security-review: Current issue advisory state selects this label.

    Label justifications:

    • P2: A shipped advanced CLI workflow has a source-confirmed destination-consent concern, but successful unintended transfers or an urgent exploit are not established.
    • impact:security: The issue concerns control over outbound encrypted backups and cleartext operational metadata.
    Evidence reviewed

    Security concerns:

    • [medium] Backup destination is selected without explicit user configuration — internal/backup/config.go:4
      Fresh configuration selects an account-owned repository and enables pushing; if Git credentials permit it, encrypted shards and cleartext manifest metadata can be sent there without explicit destination selection.
      Confidence: 0.99

    What I checked:

    • Default destination remains on main: DefaultConfig assigns the steipete backup repository; missing configuration falls back to these defaults. (internal/backup/config.go:4, 82e7fd6005d4)
    • Default push reaches Git: backupFlags.options sets Push to !NoPush; Init and PushSnapshot pass that option to commitAndPush, which executes git push -u origin HEAD after a changed commit. (internal/backup/git.go:160, 82e7fd6005d4)
    • Existing local-only alternative: Initialization suppresses the implicit remote when --no-push is supplied without --remote; TestBackupInitNoPushUsesLocalRepoWithoutDefaultRemote covers this path, but ordinary initialization retains the default. (internal/cmd/backup.go:134, 82e7fd6005d4)
    • Documented privacy boundary: Documentation describes an intended private repository and explicitly documents cleartext operational metadata, guessable account hashes, and trust in repository writers; encryption does not settle destination consent. (docs/backup.md:247, 82e7fd6005d4)
    • Feature introduction verified through GitHub: The initial encrypted-backup commit added the same defaultRemote and default push option; subsequent history includes local-only initialization and configuration-store refactors, without an explanation for choosing this account as every user's default. (internal/backup/config.go:4, e49e9f45c37c)
    • Affected release source: The v0.47.1 source revision also contains this default destination, so the report identifies shipped behavior rather than a hypothetical future change. (internal/backup/config.go:4, cbb7f01f76fa)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed October 31, 2026, 5:53 PM ET / 21:53 UTC.

  3. steipete commented on Nov 5, 2026

    @steipete
    Collaborator

    Fixed by #1303. Backups now commit locally until a remote is configured; explicit saved destinations and existing Git origins are preserved. Snapshot and checkpoint tests use only synthetic data and a temporary local bare Git remote; no real backup was run. The regression fails on the previous default, make ci passes, and all exact-head platform CI checks are green: https://github.com/openclaw/gogcli/actions/runs/42075840524. Thank you for reporting this.

  4. added 2 commits that reference this issue on Nov 5, 2026
    330b987
    5a36a35
  5. steipete commented on Nov 5, 2026

    @steipete
    Collaborator

    The local-to-remote setup path is now complete in #1304, merged as 5a36a35. After local initialization, gog backup init --remote URL adds origin only when missing. Existing origins remain unchanged.

    The regression first reproduced the missing-origin failure, then passed for initial remote configuration, pushing to a temporary bare repository, and preserving an existing origin. Full make ci, independent P0–P2 review, and exact-head Linux/minimum-Go/macOS/Windows/worker/Docker/CodeQL checks passed: https://github.com/openclaw/gogcli/actions/runs/42086419098. No real backup or personal configuration change was performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:needs-product-decisionclawsweeper:needs-security-reviewclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:securityissue-rating: 🦞 diamond lobster

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions