keep authelia's oidc client secrets in the store, not on disk
The mint creates each client's secret in the swarm secret store and writes only the digest to disk. It mints only when the store answers and holds none. A new unit moves the plaintext files an earlier release left into the store and removes each once the store holds the same value. The bridge reads its secret from the store into /run before each start. The secret publisher unit and its path unit are gone.
This commit is contained in:
parent
e334e677e0
commit
d30cb7d122
1 changed files with 1086 additions and 486 deletions
|
|
@ -142,13 +142,13 @@ The swarm collector scrapes authelia's own metrics at
|
|||
container. The gateway admits only the collector's OAuth2 client there;
|
||||
any other session gets `deny`.
|
||||
|
||||
The container also runs `swarm-secret-publish`, which copies the client
|
||||
secrets authelia mints into the swarm secret store under the secret
|
||||
publisher's own store leaf, handed in as a system credential; see
|
||||
[`credentials.md`](credentials.md). Authelia doesn't wait for it, so the IdP comes up
|
||||
while the store is down, and the publisher retries every 30 seconds. The
|
||||
container's journal forwarder reads its client secret back from the store
|
||||
under the same leaf, and is off where the container has none.
|
||||
The container's `authelia-swarm-secrets` unit creates each client secret directly in
|
||||
the swarm secret store, under the secret publisher's own store leaf handed in as
|
||||
a system credential, and writes only the digest to disk; see
|
||||
[`credentials.md`](credentials.md). Authelia starts from its digests, so the IdP
|
||||
comes up while the store is down, and a unit that needs the store retries every
|
||||
30 seconds. The container's journal forwarder reads its client secret back from
|
||||
the store under the same leaf, and is off where the container has none.
|
||||
|
||||
See [`sso.md`](sso.md) for bootstrapping the first user and the OIDC
|
||||
relying-party flow, and [`credentials.md`](credentials.md) for where authelia
|
||||
|
|
|
|||
Loading…
Reference in a new issue