Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dump config优化 #5253

Open
dingiyan opened this issue Aug 22, 2023 · 1 comment
Open

dump config优化 #5253

dingiyan opened this issue Aug 22, 2023 · 1 comment

Comments

@dingiyan
Copy link
Contributor

请详细告知你的新点子(Nice Ideas):

  1. dump config 可否支持配置控制启用或禁用。(上线稳定后,可以不用dump,避免密码之类信息泄露)
  2. 敏感信息值转换时,递归遍历时,建议添加数组遍历。比如sequelize多数据源配置,是一个对象数组,可以遍历每个对象隐藏其密码配置
@killagu
Copy link
Contributor

killagu commented Aug 24, 2023

https://github.com/eggjs/egg/blob/master/config/config.default.js#L150 这里可以增加需要忽略的 key。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants