Serve direct children's certificates through a proxy group; PR 81 follow-ups; writer busy gauge #84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "children-certificates"
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?
What
A. A proxy group serves its direct children's certificates (S1). A certificate that belongs to a direct child organisation (e.g. a DNS-01 wildcard ordered in
balie-platform) can be attached to the parent's (Shiloh) group and is delivered to its nodes.certificate_changed/1now also raises the generation of the parent's groups, so a renewed child certificate is redelivered.organisation_id; OpenAPI updated.Authorization choice. The existing routing-manage check on the group still applies. For a child's certificate the actor additionally needs either certificates:manage in the group's organisation (owner/admin; a credential with a
certificatesgrant covering the zone) or certificates:read in the child. Aproxygrant alone is not enough: the certificate brings its private key to the group's nodes, and a routing grant must not reach a customer's keys. I did not usecan_read_customers?because credentials need to work through the API (a provider's API credential withproxy+certificatesgrants can attach). Note that for users the first clause is equivalent to the routing-manage check (owner/admin), so a user needs no role in the child; the second clause is kept as a defence. Refusals look like "not found" so other organisations' ids are not confirmed. Detach needs only routing-manage on the group (removing access should never be blocked). A grant is not re-checked after attaching; the attachment lasts until detached.B. PR 81 follow-ups.
min(300, status_max_age / 4)of the node's group (chosen over raising the group minimum: it keeps 60 s usable). Computed inside the same conditionalUPDATE(no extra query per status).apply_replacementtakeslock_zones_shared()first, the same order asput_route; race tests green.assign_address/unassign_addressis free text typed at the shell, audited as actorsystem(docs/certificates.md).C. Writer gauge.
salt_dns_knot_writersis the number of writers alive (never a backlog; unchanged, now documented as such). Newsalt_dns_knot_writers_busycounts writers that are dirty, hold buffered change lists or have an unfinished removal. Writers publish their busy state as their ownRegistryvalue when it changes; the poller does one ETS scan, noGenServer.call. Writer lifetime is unchanged.SaltDnsWriterLag(rules + promtool test) and docs/edge.md use the busy gauge.D.
redact: trueon the provider'saccount_keyandeab_hmac_key; nothing used the unredacted inspect.Tests
New:
proxy_children_certificates_test.exs(every direction, who may, delivery to nodes, renewal redelivery, detach, audit, reparenting),knot/zone_writer_busy_test.exs, API and console tests, refresh-interval test, changeset-inspect test.Not done / not verified
promtoolis not installed here, so the edited alert rule test was not run. Nothing touched credentials, router pipelines or config.🤖 Generated with Claude Code
https://claude.ai/code/session_01DnYzaTxC2GmdSpvCNyHNne
0067c6cf33e5d47d7ea7