Uh oh!
There was an error while loading. Please reload this page.
feat(isFQDN): add allow_wildcard option - #1647
Conversation
Codecov Report
@@ Coverage Diff @@## master #1647 +/- ##
=========================================
Coverage 100.00% 100.00% =========================================
Files 100 100 Lines 1843 1845 +2 =========================================
+ Hits 1843 1845 +2
Continue to review full report at Codecov.
|
profnandaa
left a comment
There was a problem hiding this comment.
Not quite sure about the validity of this one; will we violating FQDN in principle? Can we leave this to the user to clean out the *. before sending in the rest to isFQDN?
@profnandaa I’m using validator.js on backend (NestJs with class-validator that hunder the hood use validator.js) to validate DTO on Rest API. So in my case it’s perfectly valid to let client send domain with wildcard. Alternatively I should use some ugly regex. Even more wildcard FQDN is commonly used e.g. on SSL certificate and Firewall, and i think it can be helpful for such frontend application. I hope this PR will be merged soon. |
profnandaa
commented
Apr 18, 2021
@tux-tn -- please have a look and advise. |
fasenderos
commented
May 16, 2021
@tux-tn@profnandaa any updates here? Would love to see this! |
fasenderos
commented
May 16, 2021
@profnandaa and @ezkemboi please ignore the reviews requests, were made by mistake. Sorry |
profnandaa
commented
May 24, 2021
@tux-tn -- could you please have a look at this? |
cowboy-bebug
commented
Sep 8, 2021
Why is it difficult to remove this specific pattern? "*.example.com".replace(/^\*\./,"")I hope this doesn't introduce any potential exploits 🤞 |
fasenderos
commented
Sep 9, 2021
My intent here is not to sanitize the input, but to validate the input client side. Sanitization eventually comes as a backend stuff |
tux-tn
left a comment
There was a problem hiding this comment.
LGTM 🎉
Sorry for the late review 😅
profnandaa
left a comment
There was a problem hiding this comment.
Sorry for the delay, will be getting this in. I'm staging the release this weekend for final check off by the maintainers on Monday/Tuesday and we make the release.
Co-authored-by: Andrea Fassina <andrea.fassina@nativery.com>
Co-authored-by: Andrea Fassina <andrea.fassina@nativery.com>
Co-authored-by: Andrea Fassina <andrea.fassina@nativery.com>
Added the
allow_wildcardoption forisFQDN. Now the validator can allow domain starting with*.(e.g.*.example.comor*.shop.example.com).Fixes#1646
Checklist