• Kubernetes Submit Queue's avatar
    Merge pull request #67139 from NetApp/dev-random-fix-67091 · a5550441
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.
    
    Fix an issue about generation of secret key with invalid key size in gce
    
    Replace /dev/random to /dev/urandom to avoid generation of secret key with invalid key size.
    
    
    
    **What this PR does / why we need it**:
    In GCE env, AESGCM encryption of secrets by default generates a secret key with /dev/random which sometime generates a key with invalid size.
    This cause the cluster/kube-up.sh to fail in gce environment.
    
    This PR replaces /dev/random with  /dev/urandom to have a secret key generated consistently with right size.
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #67091
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    cluster/gce: generate consistent key sizes in config-default.sh using /dev/urandom instead of /dev/random  
    ```
    a5550441
Name
Last commit
Last update
..
addons Loading commit data...
gci Loading commit data...
manifests Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
config-common.sh Loading commit data...
config-default.sh Loading commit data...
config-test.sh Loading commit data...
cos Loading commit data...
custom Loading commit data...
delete-stranded-load-balancers.sh Loading commit data...
list-resources.sh Loading commit data...
ubuntu Loading commit data...
upgrade-aliases.sh Loading commit data...
upgrade.sh Loading commit data...
util.sh Loading commit data...