mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +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
7a90141796
commit
f42f6d822f
@ -217,7 +217,7 @@ resources:
|
|||||||
- aesgcm:
|
- aesgcm:
|
||||||
keys:
|
keys:
|
||||||
- name: key1
|
- name: key1
|
||||||
secret: $(dd if=/dev/random bs=32 count=1 2>/dev/null | base64 | tr -d '\r\n')
|
secret: $(dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64 | tr -d '\r\n')
|
||||||
EOM
|
EOM
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user