mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Fix for issue #67091
Replace /dev/random to /dev/urandom to avoid generation of secret key with invalid key size.
This commit is contained in:
parent
f42f6d822f
commit
0f9c7b4c21
@ -217,7 +217,7 @@ resources:
|
||||
- aesgcm:
|
||||
keys:
|
||||
- name: key1
|
||||
secret: $(dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64 | tr -d '\r\n')
|
||||
secret: $(dd if=/dev/urandom iflag=fullblock bs=32 count=1 2>/dev/null | base64 | tr -d '\r\n')
|
||||
EOM
|
||||
)
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user