revoking a linked Matrix account also deletes its key-backup passphrase; a plain unlink keeps it for a relink
This commit is contained in:
parent
87dc4c5533
commit
6b3e1f0fb2
1 changed files with 287 additions and 16 deletions
|
|
@ -2547,12 +2547,14 @@ let
|
|||
lib.hasInfix "path \"secret/metadata/swarm/agents/+/matrix/\" {\n capabilities = [\"list\"]\n}" s
|
||||
&& lib.hasInfix "path \"secret/metadata/swarm/agents/+/forge/\" {\n capabilities = [\"list\"]\n}" s
|
||||
&& lib.hasInfix "path \"secret/metadata/swarm/agents/+/gitlab/\" {\n capabilities = [\"list\"]\n}" s
|
||||
&& stanzas == 9;
|
||||
&& stanzas == 10;
|
||||
}
|
||||
{
|
||||
# `linked_accounts` deletes one matrix account, forge account, GitLab
|
||||
# account, GitHub token or backend environment through `delete_all_versions`, which
|
||||
# addresses its metadata path.
|
||||
# addresses its metadata path. A revoking matrix delete also deletes that
|
||||
# account's key-backup passphrase, at `matrix-recovery/<account>`, the one
|
||||
# place the controller may delete a passphrase.
|
||||
# A trailing `+` is one segment, so each stanza reaches the accounts
|
||||
# directly in that directory and nothing deeper. Pinned as whole stanzas,
|
||||
# so `list` or `read` here, which would expose version history, fails.
|
||||
|
|
@ -2562,6 +2564,7 @@ let
|
|||
s = baoGrantHere.systemd.services.swarm-bao-controller-policy.script;
|
||||
in
|
||||
lib.hasInfix "path \"secret/metadata/swarm/agents/+/matrix/+\" {\n capabilities = [\"delete\"]\n}" s
|
||||
&& lib.hasInfix "path \"secret/metadata/swarm/agents/+/matrix-recovery/+\" {\n capabilities = [\"delete\"]\n}" s
|
||||
&& lib.hasInfix "path \"secret/metadata/swarm/agents/+/forge/+\" {\n capabilities = [\"delete\"]\n}" s
|
||||
&& lib.hasInfix "path \"secret/metadata/swarm/agents/+/gitlab/+\" {\n capabilities = [\"delete\"]\n}" s
|
||||
&& lib.hasInfix "path \"secret/metadata/swarm/agents/+/github-token\" {\n capabilities = [\"delete\"]\n}" s
|
||||
|
|
|
|||
Loading…
Reference in a new issue