#235 #236: edit peer URL and replace outbound key on the peering card (v0.6.24) #240

Merged
Cordy merged 4 commits from feat/235-236-card-edits into main 2026-08-15 14:18:19 +00:00
Owner

Adds two inline affordances to each peer relationship card, closing the gap found in the #106 dogfood where correcting a wrong peer URL or rotating a re-issued outbound key forced a full Remove + re-register + re-exchange.

#235 — editable URL: an "Edit URL" button in the card head swaps the URL span for an input + Save/Cancel; Save PATCHes just url.

#236 — replace outbound key: a "Replace key" button in the actions row opens a CAIRN-PEER1… input + Save/Cancel; Save PATCHes just key. Mirrors the existing inbound issue/revoke, for the key the peer issued us.

Backend: updatePeer gains optional url / key fields, each validated exactly as registration (absolute http(s); http only for private hosts; CAIRN-PEER1. prefix) and applied independently, so a URL edit leaves the key untouched and vice versa.

Runner: splice applied, go vet / go build / go test ./internal/peering/... ./internal/api/... all green.

Closes #235, closes #236.

Adds two inline affordances to each peer relationship card, closing the gap found in the #106 dogfood where correcting a wrong peer URL or rotating a re-issued outbound key forced a full Remove + re-register + re-exchange. **#235 — editable URL:** an "Edit URL" button in the card head swaps the URL span for an input + Save/Cancel; Save PATCHes just `url`. **#236 — replace outbound key:** a "Replace key" button in the actions row opens a `CAIRN-PEER1…` input + Save/Cancel; Save PATCHes just `key`. Mirrors the existing inbound issue/revoke, for the key the *peer* issued us. Backend: `updatePeer` gains optional `url` / `key` fields, each validated exactly as registration (absolute http(s); http only for private hosts; `CAIRN-PEER1.` prefix) and applied independently, so a URL edit leaves the key untouched and vice versa. Runner: splice applied, `go vet` / `go build` / `go test ./internal/peering/... ./internal/api/...` all green. Closes #235, closes #236.
ci: ship-2356 one-shot (#235 #236)
Some checks failed
ship-2356.yml / ci: ship-2356 one-shot (#235 #236) (push) Failing after 0s
163e64375f
#235 #236: edit peer URL and replace outbound key on the card (v0.6.24)
All checks were successful
ci / test-and-build (pull_request) Successful in 35s
3ba57d535a
Cordy merged commit 9e77610a4c into main 2026-08-15 14:18:19 +00:00
Cordy deleted branch feat/235-236-card-edits 2026-08-15 14:18:21 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#240
No description provided.