|
| 1 | +# v1.3.0-beta — 2026-04-21 |
| 2 | + |
| 3 | +UI layer for the DNS providers expansion. Sub-phase B closes the loop |
| 4 | +between the sub-phase A backend (encrypted credentials + inline |
| 5 | +Option 2 pipeline) and the operator — you no longer need curl to |
| 6 | +configure cloudflare or route53. |
| 7 | + |
| 8 | +## What landed |
| 9 | + |
| 10 | +### Settings → DNS providers |
| 11 | + |
| 12 | +New section on the existing Settings page. Cards grid, one per |
| 13 | +supported provider (Cloudflare, Route 53). Each card renders: |
| 14 | + |
| 15 | +- **Enabled** toggle. |
| 16 | +- **Configured / Not configured** badge so you see at a glance which |
| 17 | + providers have credentials stored. |
| 18 | +- One input per credential field from the catalogue (1 field for |
| 19 | + Cloudflare / Hetzner-style providers; 2-3 for Route 53 / Porkbun; |
| 20 | + more for OVH / acmedns in later sub-phases). |
| 21 | +- Secret fields use `type=password` + the `__UNCHANGED__` sentinel |
| 22 | + on already-configured providers: the input shows a masked |
| 23 | + placeholder with an **Edit** button, so you can rotate one field |
| 24 | + without retyping others. |
| 25 | +- **How to get credentials →** link to the provider's docs. |
| 26 | +- Trust-boundary callout above the grid: credentials are decrypted |
| 27 | + in the panel and streamed plaintext through Caddy's admin API |
| 28 | + (which is never published outside the `argos_net` Docker network). |
| 29 | + |
| 30 | +Saving triggers an automatic reconcile. A post-save banner inside |
| 31 | +the card surfaces the exact Caddy error when reconcile rejects the |
| 32 | +new value (e.g. Cloudflare's syntactic "API token appears invalid" |
| 33 | +check) while the DB write itself succeeded — you see both states |
| 34 | +explicitly. |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | +### Host form DNS provider dropdown |
| 39 | + |
| 40 | +The TLS challenge radio group in the host form gains a DNS provider |
| 41 | +selector, visible only when **DNS-01** is picked. Three states: |
| 42 | + |
| 43 | +- **One enabled** → auto-selected with a caption "Using |
| 44 | + <provider> from Settings" and a deep link. |
| 45 | +- **Multiple enabled** → native `<select>` with only the enabled + |
| 46 | + configured providers. Default = the host's currently-saved value |
| 47 | + or `cloudflare`. |
| 48 | +- **None enabled** → amber warning with a deep link to Settings; the |
| 49 | + form blocks Save client-side (the backend would reject too with a |
| 50 | + 400, but catching here keeps the UX clean). |
| 51 | + |
| 52 | +Editing a host whose saved provider was disabled AFTER creation |
| 53 | +shows a "(not enabled)" option in the dropdown with a yellow note, |
| 54 | +so the drift is visible rather than silently rewritten. |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | +### Docs |
| 59 | + |
| 60 | +- [DNS providers](../features/dns-providers.md) rewritten to lead |
| 61 | + with the UI flow; the API surface stays documented for scripting |
| 62 | + and automation. |
| 63 | +- [Add a host](../workflows/add-host.md) step 3 covers the new |
| 64 | + **DNS provider** field, including the three picker states. |
| 65 | +- Screenshot placeholders `settings-dns-providers.png` and |
| 66 | + `host-form-dns-provider-dropdown.png` added to |
| 67 | + `docs/screenshots/README.md` with the capture checklist entry. |
| 68 | + |
| 69 | +## No backend changes |
| 70 | + |
| 71 | +Zero Go code changes since v1.3.0-alpha. The API surface |
| 72 | +(`GET /api/dns-providers`, `GET /api/dns-providers/{name}`, |
| 73 | +`PUT /api/dns-providers/{name}`) and the host validation path |
| 74 | +(`validateDNSProvider`) are unchanged. The UI talks to the |
| 75 | +endpoints that already shipped. |
| 76 | + |
| 77 | +## Migration |
| 78 | + |
| 79 | +```bash |
| 80 | +cd argos-edge |
| 81 | +git pull |
| 82 | +docker compose build |
| 83 | +docker compose up -d |
| 84 | +``` |
| 85 | + |
| 86 | +No migrations run. No env-var changes. If you configured credentials |
| 87 | +via curl during the alpha, the Settings page will show them as |
| 88 | +**Configured** on first visit. |
| 89 | + |
| 90 | +## Related |
| 91 | + |
| 92 | +- [DNS providers](../features/dns-providers.md) — feature reference |
| 93 | + with the UI + API paths side by side. |
| 94 | +- [v1.3.0-alpha release notes](v1.3.0-alpha.md) — backend + Option 2 |
| 95 | + pipeline story. |
| 96 | +- [dns-providers-analysis.md](https://github.com/cmos486/argos-edge/blob/main/docs/internals/dns-providers-analysis.md) |
| 97 | + — scoping doc with the Tier 1 / Tier 2 split; sub-phase C expands |
| 98 | + the catalogue with gandi / desec / ovh / duckdns / porkbun / |
| 99 | + hetzner / digitalocean / acmedns. |
0 commit comments