You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Why does backup default to steipete/backup-gog.git rather than requiring a user-owned remote? #1287
P2Normal priority bug or improvement with limited blast radius.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
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.
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.
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.
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.
P2Normal priority bug or improvement with limited blast radius.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
Activity
clawsweeper commentedon Oct 31, 2026
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
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:
Codex review notes: model internal, reasoning medium; reviewed against 82e7fd6005d4.
Label changes
Label changes:
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.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.clawsweeper:needs-product-decision: Current issue advisory state selects this label.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:
internal/backup/config.go:4Fresh 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:
internal/backup/config.go:4, 82e7fd6005d4)internal/backup/git.go:160, 82e7fd6005d4)internal/cmd/backup.go:134, 82e7fd6005d4)docs/backup.md:247, 82e7fd6005d4)internal/backup/config.go:4, e49e9f45c37c)internal/backup/config.go:4, cbb7f01f76fa)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed October 31, 2026, 5:53 PM ET / 21:53 UTC.
steipete commentedon Nov 5, 2026
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 cipasses, and all exact-head platform CI checks are green: https://github.com/openclaw/gogcli/actions/runs/42075840524. Thank you for reporting this.fix(backup): keep backups local until a remote is configured
fix(backup): attach configured remote to local repositories
steipete commentedon Nov 5, 2026
The local-to-remote setup path is now complete in #1304, merged as 5a36a35. After local initialization,
gog backup init --remote URLadds 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.fix(backup): keep backups local until a remote is configured
fix(backup): keep backups local until a remote is configured