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
feat(web): edit redirect destination in place + GC certs on removal (#11)
Edit in place:
- PUT /api/domains/:id updates the destination (owner-only, validated,
re-exports the GCS config). Hostname stays immutable.
- Dashboard: per-domain "Edit destination" with Save/Cancel — no more
delete-and-recreate (works on mobile).
Cert garbage collection:
- On DELETE, after removing the DB row + re-exporting, also delete the host's
TLS cert material from GCS cert storage (best-effort; never fails the
request). Pure path-matching helper (certObjectsForHost) matches the host as
a whole path segment so cleaning the apex never touches www.<host>.
Tests: vitest unit for certObjectsForHost (incl. no-over-deletion); integration
for PUT (owner update, 400 invalid, 404 cross-account); e2e edit-in-place.
Verified live: PUT updates dest; DELETE reports certsRemoved and the object is
gone from GCS.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments