-
Notifications
You must be signed in to change notification settings - Fork 792
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
Add email address identity type #3354
Conversation
const emptyRegex = /^$/ | ||
|
||
const emailAddressRegex = new RegExp(/^[\S\-.]+@([\w-]+\.)+[\w-]{2,4}$/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not totally sure about this. What all do we want to accept?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, here's the regex from the RFC http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seriously though, is there a library that does this validation? Maybe @ordabach can help?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Going with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to check for any code that assumes Username is the only identity.
fdbd013
to
5573380
Compare
monkey/monkey_island/cc/ui/src/components/configuration-components/CredentialsConfig.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, pending an ETE test with email addresses to make sure we didn't introduce any issues.
924134b
to
14727c5
Compare
ETE tests fail because flask dependencies were upgraded in Pipfile.lock. Flask v2.3.0 removes JSONEncoder. We'll need to pin the flask version and try to run ETE tests again. |
ba63e75
to
6814a04
Compare
All tests except SNMP pass. |
6814a04
to
b6143f1
Compare
What does this PR do?
Fixes #3270
PR Checklist
Was the documentation framework updated to reflect the changes?Testing Checklist
Do all end-to-end tests pass?