File tree 1 file changed +1
-1
lines changed
internal/controller/assets
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ rm -f $NOT_FOUND_LOG_FILE;
57
57
curl --cacert ${CACERT} --header " Content-Type: application/json" --header " Authorization: Bearer ${TOKEN} " -X GET ${APISERVER} /api/v1/namespaces/${NAMESPACE} /secrets/${PASSWORD_KEY_SECRET_NAME} & > $NOT_FOUND_LOG_FILE ;
58
58
NOT_FOUND_COUNT=$( cat $NOT_FOUND_LOG_FILE | grep -c " NotFound" ) ;
59
59
TIME_SINCE_EPOCH_SECONDS=$( date ' +%s' ) ;
60
- PASSWORD=$( openssl rand -base64 32 ) ;
60
+ PASSWORD=$( openssl rand -base64 15 ) ;
61
61
if [ " $ENCRYPTION_KEY_SHARING_ENABLED " == " true" ] && [ $NOT_FOUND_COUNT -eq 0 ]; then
62
62
LAST_ROTATION=$( curl --cacert ${CACERT} --header " Content-Type: application/json" --header " Authorization: Bearer ${TOKEN} " -X GET ${APISERVER} /api/v1/namespaces/${NAMESPACE} /secrets/${PASSWORD_KEY_SECRET_NAME} | grep -o ' "lastRotation": "[^"]*' | grep -o ' [^"]*$' | base64 -d) ;
63
63
PASSWORD_KEY=$( curl --cacert ${CACERT} --header " Content-Type: application/json" --header " Authorization: Bearer ${TOKEN} " -X GET ${APISERVER} /api/v1/namespaces/${NAMESPACE} /secrets/${PASSWORD_KEY_SECRET_NAME} | grep -o ' "passwordEncryptionKey": "[^"]*' | grep -o ' [^"]*$' | base64 -d) ;
You can’t perform that action at this time.
0 commit comments