Watch
0
0
Fork
You've already forked hyperhive
0

swarm-controller: move the secrets concern into its own module

Refs #6897
This commit is contained in:
atlas 2026-11-27 16:31:21 +01:00
commit 6d0c0dc391
4 changed files with 35 additions and 25 deletions

View file

@ -9,7 +9,7 @@
#
# Each agent backs up under the credentials swarm-controller wrote for it at
# `swarm/hives/<this hive>/archive/<agent>`
# (../../swarm-controller/src/archive_access.rs), read with the hive's own
# (../../swarm-controller/src/secrets/archive_access.rs), read with the hive's own
# store identity: the agent's login to the archive, and its restic password,
# which restic reads through `RESTIC_PASSWORD_COMMAND` and nothing writes to
# disk. An agent the controller has not granted this hive is skipped. The

View file

@ -7,7 +7,7 @@
# the index, so a compromised hive cannot erase history. Dropping history is
# the prune unit's job, on this host, by retention.
# - `--private-repos`: a login reaches `/<its own name>/` only. There is one
# login per agent, created by swarm-controller (../../swarm-controller/src/archive_access.rs)
# login per agent, created by swarm-controller (../../swarm-controller/src/secrets/archive_access.rs)
# when it places the agent, replaced when it moves and removed when it is
# destroyed. An agent's hive can write that agent's repository and no other.
#

View file

@ -57,7 +57,7 @@ let
# What the role pins. `{{identity.entity.name}}` is the name of the entity the
# agent's cert login lands on, which swarm-controller sets to the agent's name
# (`swarm-controller/src/agent_entity.rs`); with `allowed_users_template` the
# (`swarm-controller/src/secrets/agent_entity.rs`); with `allowed_users_template` the
# engine checks every requested principal against it, and with
# `default_user_template` an unrequested one defaults to it, so a certificate
# names its holder's own agent and no other. `allowed_user_key_lengths` limits

View file

@ -1092,7 +1092,7 @@ in
SWARM_CONTROLLER_GRAFANA_URL = "https://${swarmCfg.grafana.domain}";
# The names squid allows every authenticated agent by default. The
# allow-list route refuses them as entries
# (swarm-controller/src/egress_allow.rs). A hive that overrides
# (swarm-controller/src/secrets/egress_allow.rs). A hive that overrides
# `deploy.hive-controller.squid.baseAllowedDomains` is not reflected
# here; its hive-c0re skips the entries its own list covers.
SWARM_CONTROLLER_SQUID_BASE_DOMAINS = lib.concatStringsSep " " (