You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
readNonEmpty"Please input a 32-char long string for data encryption: "
256
+
readWithDefault"Please input a 32-char long string for data encryption (Enter to generate a random one): """
260
257
NACOS_DATA_ENC_KEY=$input
261
258
KEY_LENGTH=${#NACOS_DATA_ENC_KEY}
262
-
if [ $KEY_LENGTH!= 32 ];then
259
+
if [ $KEY_LENGTH== 0 ];then
260
+
NACOS_DATA_ENC_KEY=$(cat /dev/urandom | tr -dc '[:alnum:]'| head -c 32)
261
+
elif [ $KEY_LENGTH!= 32 ];then
263
262
echo"Expecting 32 characters, but got ${KEY_LENGTH}."
264
263
continue;
265
264
fi
@@ -315,6 +314,13 @@ outputWelcomeMessage() {
315
314
'
316
315
echo"Higress is configured successfully."
317
316
echo""
317
+
if [ "$USE_BUILTIN_NACOS"!="Y" ];then
318
+
echo"Important Notes:"
319
+
echo" Sensitive configurations are encrypted when saving to Nacos."
320
+
echo" When configuring another server with the same Nacos configuration service, please make sure to add the following argument so all servers use the same encryption key:"
0 commit comments