higress-group / higress-standalone

Other
39 stars 6 forks source link

fix: Not to reset the encryption key to avoid accidental key losts #103

Closed CH3CHO closed 1 month ago

CH3CHO commented 1 month ago

During testing, user may re-install Higress Standalone to the same Nacos instance. And all secrets stored in Nacos are encrypted using a key generated during installation.

Before the fix, we always re-generate the key during installation, which makes a secondly installed Higress fails to start due to unable decrypted existed configurations.

The fix removes the default key and skips the generation if the key is not empty.