feat: add safe multi-account routing and prepare public release
This commit is contained in:
71 files changed
+2906
-120
No files matched your search
@@ -32,10 +32,14 @@ The provider package defines focused capabilities:
|
||||
- `DNS01Solver`
|
||||
- `EdgeTLSService`
|
||||
|
||||
Cloudflare is the first adapter. Its wire types do not escape the adapter. Unknown DNS record JSON is retained so new provider fields remain visible even before DomainOps adds an editor for them.
|
||||
Credential verification, zone inventory, single-record DNS CRUD, and DNS-01 form the mandatory provider contract. DNS batching, ambiguous DNS-01 reconciliation, and edge TLS are optional capabilities discovered at runtime; unsupported operations return typed capability errors instead of forcing every future adapter to imitate Cloudflare.
|
||||
|
||||
Cloudflare is the first adapter. Its wire types do not escape the adapter. Unknown DNS record JSON is retained so new provider fields remain visible even before DomainOps adds an editor for them. ACME presentation, cleanup, and crash reconciliation route through the provider identity bound to the exact credential, so remote zone-ID collisions cannot redirect a delayed challenge operation to another adapter.
|
||||
|
||||
Credential identities and remote accounts are separate. One user token may expose several Cloudflare accounts, while an account token belongs to one account. A zone stores an explicit preferred credential; ACME and DNS writes never silently switch credentials.
|
||||
|
||||
Operator-facing removal and routing retain immutable local credential/zone IDs across confirmation and reload. Removing a local connection can reassign preferred routes only after recent per-zone write evidence plus a fresh DNS read through the replacement. Explicit routing verifies DNS read immediately; write authority remains visibly unproven until Cloudflare accepts a real mutation.
|
||||
|
||||
After a successful full sync, a zone no longer visible to its preferred credential is retained as cached history but marked unknown and detached from that stale preference. DNS-read authority is also stored per credential and zone. An authoritative 401/403 on a later zone read atomically removes that evidence and detaches only the denied route, while transient transport, rate-limit, and server failures preserve the last successful observation. A later credential that rediscovers the zone can restore routing without trapping credential removal behind an unreachable zone.
|
||||
|
||||
Future providers should implement only their supported capabilities and register statically. A future third-party plugin system should be an out-of-process, versioned protocol rather than Go’s in-process plugin mechanism.
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
# Release process
|
||||
|
||||
Releases are built by GitHub Actions and GoReleaser for macOS and Linux on amd64 and arm64. Release archives contain the binary, README, changelog, project license, and third-party dependency notices, with a SHA-256 checksum manifest.
|
||||
|
||||
## Before tagging
|
||||
|
||||
1. Confirm the working tree contains no credentials, vaults, private keys, certificates, databases, or production inventory.
|
||||
2. Regenerate `THIRD_PARTY_LICENSES` when dependencies change and review every detected license.
|
||||
3. Move relevant entries from `Unreleased` in `CHANGELOG.md` into a versioned section.
|
||||
4. Run:
|
||||
|
||||
```bash
|
||||
make verify
|
||||
make race
|
||||
make vuln
|
||||
goreleaser release --snapshot --clean
|
||||
```
|
||||
|
||||
5. Inspect every snapshot archive and verify `domainops version` on a supported host.
|
||||
6. Commit the release notes and create an annotated, signed semantic-version tag such as `v0.1.0`.
|
||||
|
||||
## Publishing
|
||||
|
||||
Push the commit first and wait for CI to pass. Then push the signed tag. The release workflow re-runs verification and publishes archives plus `checksums.txt`.
|
||||
|
||||
Never rebuild or replace an existing release tag. If a release is faulty, document it, publish a corrected version, and leave the original artifacts available for auditability.
|
||||
|
||||
## GitHub repository settings
|
||||
|
||||
For a public repository, enable:
|
||||
|
||||
- private vulnerability reporting;
|
||||
- secret scanning and push protection;
|
||||
- Dependabot alerts and security updates;
|
||||
- branch protection or a ruleset requiring the CI checks and pull-request review;
|
||||
- read-only default `GITHUB_TOKEN` permissions.
|
||||
|
||||
Protect tags matching `v*` from deletion or force updates.
|
||||
@@ -22,6 +22,8 @@ Global API Keys are rejected. Use least-privilege API tokens scoped to the neces
|
||||
|
||||
Tokens are masked during entry. Headless use accepts a token file or vault-password file only when it is a regular file with no group/other permission bits. Literal secret flags are intentionally unavailable.
|
||||
|
||||
TUI connection removal and zone routing bind confirmation to immutable local IDs rather than filtered row positions or non-unique labels. Removal shows affected routes, uses a bounded long-running verification window, and refuses to remove a credential when any preferred zone lacks a live-readable replacement with recent observed write success. Explicit preference changes live-probe DNS read access and label write authority as unproven until an actual provider mutation succeeds.
|
||||
|
||||
## ACME safety
|
||||
|
||||
- Staging is the default issuance environment.
|
||||
|
||||
Reference in new issue
Block a user