swarm-controller: move the secrets concern into its own module
Refs #6897
This commit is contained in:
parent
7c7c94d184
commit
6d0c0dc391
4 changed files with 35 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
#
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 " " (
|
||||
|
|
|
|||
Loading…
Reference in a new issue