diff --git a/changes/v5.0.15/fix-9765.en.md b/changes/v5.0.15/fix-9765.en.md new file mode 100644 index 000000000..8c1ed4ad1 --- /dev/null +++ b/changes/v5.0.15/fix-9765.en.md @@ -0,0 +1,6 @@ +Parse decimals as password from environment variable overrides correctly. +Prior to this change, config values for passwords are not allowed to be decimals. +e.g. `EMQX_FOOBAR__PASSWORD=12344` or `emqx.foobar.password=1234` +would result in a type check error, unless quoted as: +`EMQX_FOOBAR__PASSWORD='"12344"'` or `emqx.foobar.password="1234"`. +After this fix, the value does not have to be auoted. diff --git a/changes/v5.0.15/fix-9765.zh.md b/changes/v5.0.15/fix-9765.zh.md new file mode 100644 index 000000000..dd0b6a79c --- /dev/null +++ b/changes/v5.0.15/fix-9765.zh.md @@ -0,0 +1,7 @@ +允许使用纯数字作为密码配置。 +在此修复前,密码的配置必须是字符串,使用纯数字时,会报类型检查错误。 +例如,`EMQX_FOOBAR__PASSWORD=12344` 或 `emqx.foobar.password=1234` 会出错, +必须用引把值括起来才行: +`EMQX_FOOBAR__PASSWORD='"12344"'` 或 `emqx.foobar.password="1234"`。 +修复后可以不使用引号。在环境变量重载中使用更加方便。 +