Closed jorn-ola-birkeland closed 3 weeks ago
Also please note that you need to sign-off your commits for the DCO.
@jorn-ola-birkeland is there a reason you closed this instead of adjusting the PR? Are you planning to still work on this?
Yes, I'll create a new branch and PR. (Re-)adding the option is quite a different fix, so I'd rather just start from scratch.
BR, jobi
tir. 11. jun. 2024, 23:41 skrev Felix Fontein @.***>:
@jorn-ola-birkeland https://github.com/jorn-ola-birkeland is there a reason you closed this instead of adjusting the PR? Are you planning to still work on this?
— Reply to this email directly, view it on GitHub https://github.com/getsops/sops/pull/1509#issuecomment-2161645651, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQTTNKXJCXYPCTGAIPHNBLZG5VINAVCNFSM6AAAAABHY44B76VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRRGY2DKNRVGE . You are receiving this because you were mentioned.Message ID: @.***>
I noticed a bug when running
sops updatekeys <filename>
after changing the.sops.yaml
configuration from a single master key to 3 groups with master keys and ashamir_threshold
below the groups size. The threshold configuration was not respected, and the group size was always used. There was also a problem with increasing theshamir_threshold
. If the threshold was still below the group size, the old threshold were used.This PR aims to solve the following issues:
shamir-secret-sharing-quorum
, and the relatedGroupQuorum
option that was always0
shamir_threshold
defined in the configurationExample to reproduce the problem Use the following
.sops.yaml
to encrypt a fileThen change
.sops.yaml
toAfter running
sops updatekeys <filename>
, the resulting encrypted file has a metadata section starting with:I.e
shamir_threshold
in.sops.yaml
was not respected, and the number of groups was used instead.User experience after change Message when running
sops updatekeys <filename>
after changing.sops.yaml
from no groups to 3 groups, withshamir_threshold
configured as 2After confirmation the the resulting encrypted file has a metadata section starting with:
Message when changing
shamir_threshold
from 2 to 3 (equal to removingshamir_threshold
from configuration)After confirmation the the resulting encrypted file has a metadata section starting with: