Skip to content

Commit

Permalink
Merge pull request #18924 from ashanthamara/bug-fixing
Browse files Browse the repository at this point in the history
Update default userstore username regex to restrict *, ? and %
  • Loading branch information
madurangasiriwardena authored Jan 16, 2024
2 parents 5b415e4 + 30ec87d commit 4d57247
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"authorization_manager.properties.GroupAndRoleSeparationEnabled": "true",
"authorization_manager.properties.GroupAndRoleSeparationImprovementsEnabled": "true",

"user_store.properties.UsernameJavaScriptRegEx": "^[\\S]{3,50}$",
"user_store.properties.UsernameJavaScriptRegEx": "^[^\\s*?%]{3,50}$",

"default_management_ui.path": "console",
"legacy_authz_runtime.enable": false
Expand Down
4 changes: 2 additions & 2 deletions modules/distribution/src/repository/resources/conf/infer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"user_store.type": {
"database": {
"user_store.properties.UsernameJavaRegEx": "^[\\S]{3,50}$"
"user_store.properties.UsernameJavaRegEx": "^[^\\s*?%]{3,50}$"
},
"database_unique_id": {
"user_store.properties.UsernameJavaRegEx": "^[\\S]{3,50}$"
"user_store.properties.UsernameJavaRegEx": "^[^\\s*?%]{3,50}$"
},
"read_only_ldap": {
"user_store.properties.UsernameJavaRegEx": "[a-zA-Z0-9._\\-|//]{3,50}$"
Expand Down

0 comments on commit 4d57247

Please sign in to comment.