feat(account): make passwordEncryptionAlgorithm config writable#1140
Conversation
This commit changes the passwordEncryptionAlgorithm configuration permission from readonly to readwrite, allowing applications to modify the password encryption algorithm setting directly. Key changes include: 1. Updated permissions field from 'readonly' to 'readwrite' in account DSG config 2. Enabled write access for password encryption algorithm settings (sha512, sha256, yescrypt, sm3) The change allows authorized applications to configure the password encryption algorithm, providing more flexible account management capabilities. Log: 将密码加密算法配置项权限改为可读写 Influence: 1. 验证授权应用程序能否正常修改密码加密算法设置 2. 确认各加密算法(sha512/sha256/yescrypt/sm3)切换正常 3. 检查配置修改后用户创建/修改密码功能正常 4. 确认未授权应用无法修改该配置项 PMS: TASK-390539
There was a problem hiding this comment.
Sorry @qxp930712, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fly602, qxp930712 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
1 similar comment
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fly602, qxp930712 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
deepin pr auto review我对这个git diff的修改进行审查: 修改内容:
审查意见:
改进建议:
总结:这个修改虽然从语法上是正确的,但从安全角度来看存在较大风险,不建议将密码加密算法的配置设为可读写。 |
This commit changes the passwordEncryptionAlgorithm configuration permission from readonly to readwrite, allowing applications to modify the password encryption algorithm setting directly. Key changes include:
The change allows authorized applications to configure the password encryption algorithm, providing more flexible account management capabilities.
Log: 将密码加密算法配置项权限改为可读写
Influence:
PMS: TASK-390539