Merge pull request #10099 from dataease/pr@dev-v2_uuidgen_to_urandom

refactor: uuidgen改为urandom #9945
This commit is contained in:
fit2cloudrd 2024-06-05 11:20:12 +08:00 committed by GitHub
commit b8268961a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,7 +67,7 @@ function _check_apisix_init() {
function _prepare_apisix() {
if [[ -z $DE_APISIX_KEY ]];then
need_init_apisix=true
DE_APISIX_KEY=$(uuidgen | sed 's/-//g')
DE_APISIX_KEY=$(head -c 32 /dev/urandom | base64)
export DE_APISIX_KEY=$DE_APISIX_KEY
cd $DE_RUNNING_BASE
env | grep DE_ >.env