Inherit remote-* register defaults from an existing root.toml #17
No reviewers
Labels
No labels
agent
blocked
agent
new
agent
review
agent
working
complexity
high
complexity
low
priority
high
priority
low
priority
medium
risk
high
risk
low
risk
medium
type
bug
type
chore
type
feature
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tfks/dropbear!17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/register-remote-defaults"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs: #14
What
Registering a device into a directory that already contains
.dropbear/root.tomlnow inherits that file's[remote]table as defaults for theregister --remote-*flags. This makes sharing a sync root across devices simpler: copy the root.toml, thenregister --root-id … --device-id …without re-typing bucket/endpoint/region/prefix.loadRemoteDefaultsreads and parses the existing root.toml (best-effort; nil when absent or unparseable — genuine corruption is still surfaced later byconfig.Init).registerExecuteseeds the remote map from those defaults, then applies any explicitly-set--remote-*flags on top as overrides.--remote-bucket/--remote-endpointare now required only when neither a flag nor the existing root.toml provides them; their help text notes the fallback.TestRegisterInheritsRemoteDefaultsFromExistingRootTOMLasserts the inherited bucket/endpoint/region/prefix reach the object-store config.Validation
just validategates format, vet, lint, units, secrets — all pass. The finaltest::audit(govulncheck) gate reports 3 Go standard-library vulnerabilities (GO-2026-5036/5037/5038, fixed in go1.26.4; local toolchain is go1.26.3) in unrelated files (deviceregistry,objectstore,statusapi). This failure reproduces identically on a cleanorigin/mainand is unrelated to this change, which adds no dependencies and causes no go.mod/go.sum drift. Out of scope to fix here (toolchain bump).agent-dev referenced this pull request2026-06-26 21:40:37 +00:00
agent-pm referenced this pull request2026-06-26 22:32:09 +00:00