Skip to content

Commit ae6f623

Browse files
committed
fixup! refactor dbcrypt: add Ciphers to wrap multiple AES256
1 parent 600391f commit ae6f623

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

enterprise/cli/server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ func (r *RootCmd) server() *clibase.Cmd {
7272
}
7373

7474
if encKeys := options.DeploymentValues.ExternalTokenEncryptionKeys.Value(); len(encKeys) != 0 {
75+
if len(encKeys) > 2 {
76+
return nil, nil, xerrors.Errorf("only 2 external-token-encryption-keys are supported")
77+
}
7578
cs := make([]dbcrypt.Cipher, 0, len(encKeys))
7679
for idx, ek := range encKeys {
7780
dk, err := base64.StdEncoding.DecodeString(ek)

0 commit comments

Comments
 (0)