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

[ 新功能 ] 数据库服务器密码在已经加密的情况下,不做二次加密 #114

Closed
LeoQuote opened this issue Apr 9, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@LeoQuote
Copy link
Collaborator

LeoQuote commented Apr 9, 2019

目前遇到的问题/使用障碍

在修改现有数据库实例时,会遇到密码二次加密,导致密码失效的问题

特别有些手贱的情况保存了两次,就会导致服务器密码被二次加密,导致配置失效。

希望如何解决/实现它

在加密完成后给密文最后加上一串字符串(最好是密文中不会出现的字符),用来标记这个字段已经被加密过,不需要重复加密。

其他信息

如果有其他类似的产品功能或者图片信息,可在此提交

@LeoQuote LeoQuote added the enhancement New feature or request label Apr 9, 2019
@LeoQuote LeoQuote self-assigned this Apr 12, 2019
@LeoQuote
Copy link
Collaborator Author

LeoQuote commented Apr 15, 2019

今天思考了一下,如果在里面加上一些字符串标示密码已加密,到时候还要在文档里写禁止使用$1$ 开头的密码,不然不知道什么时候有用户就踩坑了。
我们还是自己实现一套修改实例配置的页面,进入修改页面的时候,默认不显示密码(毕竟是密文,显示没用),只有点击“修改实例密码”时才能修改密码。这样就可以区分开来部分save了。

@hhyo
Copy link
Owner

hhyo commented Apr 16, 2019

django admin可以增加自定义字段,也可以编辑时就展示明文字段

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

No branches or pull requests

2 participants