-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Description
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 in com.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_FRAGMENTs 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.