-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
feature: isCommonlyUsed
password check not hardcoded
#4018
Comments
I think it makes sense to make |
Okay, I'll fix it. Can I insert a row of data store configuration in the |
@WillardHu I think it's ok to have the default configurations hardcoded in the program, what needs to be done is to add a logic to read from |
@nobodyiam Okey, I’m going to define the static constant as the default. And determine if ServerConfig has data to replace the default static constant. As for spring configuration files, I think it does not have the ability to dynamically modify at runtime. |
I can design the custom extension as an interface, first implementing the ServerConfig mode and reserving the Spring configuration file mode. |
PortalConfig extends RefreshableConfig, which means it could be hot-reloaded. So I think it's the user to decide where to maintain the custom |
I think it would be a really nice feature to make that configurable. Like the admin can decide if it should be hot-reloaded (since this takes more resources), in 1min interval or if it should be only reboot. |
Ok, I understand. Please assign this issue to me and I will completed it. |
@WillardHu I cant assign the issue to you. @nobodyiam has to do it |
@WillardHu are you still working on this? |
Sorry, I have been busy with my work recently and it will take some time to finish it |
Signed-off-by: WillardHu <wei.hu@daocloud.io>
Signed-off-by: WillardHu <wei.hu@daocloud.io>
Signed-off-by: WillardHu <wei.hu@daocloud.io>
Signed-off-by: WillardHu <wei.hu@daocloud.io>
Signed-off-by: WillardHu <wei.hu@daocloud.io>
Signed-off-by: WillardHu <wei.hu@daocloud.io>
Signed-off-by: WillardHu <wei.hu@daocloud.io>
Is your feature request related to a problem? Please describe.
Fragments of passwords that seem insecure may change from time to time and may be wanted to change. For example a company password policy might change and won't allow a certain pattern in their password (lets say the company name).
Describe the solution you'd like
I suggest that the
LIST_OF_CODE_FRAGMENT
List that is currently hardcoded incom.ctrip.framework.apollo.portal.util.checker.AuthUserPasswordChecker
should be extracted into a file that can be change 24/7 (aka while running).The administrator can define the location of the file inside a property file or smth similar like that.
If no location is defined there is a default file inside the project that could be used. The default file may contain the already existing hardcoded list.
Describe alternatives you've considered
Alternatively to storing the
LIST_OF_CODE_FRAGMENT
s inside a file, the list could be stored inside a database. This will make it easier to maintain inside the administration panel.Additional context
I think this feature implemented in #4008 is really great but not hardcoding this fragment list may make it more future proof and better maintainable.
The text was updated successfully, but these errors were encountered: