WASdev / azure.websphere-traditional.cluster

Apache License 2.0
2 stars 9 forks source link

Password rule for WAS Admin user (wsadmin) should allow more special chars #29

Open git4rk opened 3 years ago

git4rk commented 3 years ago
majguo commented 3 years ago

@git4rk @edburns As we just agreed in the Slack channel, let's use the same regex used in WebLogic administrator password:

{
                        "name": "wlsPassword",
                        "type": "Microsoft.Common.PasswordBox",
                        "label": {
                            "password": "Password for WebLogic Administrator",
                            "confirmPassword": "Confirm password"
                        },
                        "toolTip": "Password for WebLogic Administrator",
                        "constraints": {
                            "required": true,
                            "regex": "^(?=.*[A-Z])(?=.*[a-z])(?=.*\\d)[A-Za-z\\d]{12,}$",
                            "validationMessage": "The password must contain at least 12 characters, with at least 1 uppercase letter, 1 lowercase letter and 1 number, and special characters are not allowed."
                        },
                        "options": {
                            "hideConfirmation": false
                        },
                        "visible": true
                    }

As you can see, special characters are not allowed. So let's follow the same pattern to quickly fix the issue.

edburns commented 3 years ago

The plan of record is to fix it using the simple regex shown by @majguo in this comment but resolve it after MVP release.