Scratch: take the rejoin fix out again, to see its test fail

This commit is contained in:
2026-10-20 11:34:15 +00:00
parent f87590b0f9
commit 46238fa186
+1 -3
View File
@@ -204,9 +204,7 @@ func prepareSend(ctx context.Context, open *stores, node string) ([]string, erro
if n.SealingKey != "" {
held := map[string]bool{}
for _, r := range in.OwnSecrets {
// Held only when sealed to the key the machine has now, or given by a person (which is not the mesh's
// to make again): a made row under an old key is re-made, as SecretForModule did.
if r.Node == node && (r.SealedTo == n.SealingKey || r.Origin == inventory.OriginAccepted) {
if r.Node == node {
held[r.Module+"/"+r.Name] = true
}
}