Skip to content
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

Fix dns domain validation #410

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

michaeljguarino
Copy link
Member

@michaeljguarino michaeljguarino commented Aug 9, 2022

Summary

The regex we were using was not anchored previously, which actually allowed multi-nested domains beneath onplural.sh. This should fix that.

Test Plan

added unit test to validate

Checklist

  • If required, I have updated the Plural documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a meaningful title and summary to convey the impact of this PR to a user.
  • I have added relevant labels to this PR to help with categorization for release notes.

The regex we were using was not anchored previously, which actually allowed multi-nested domains beneath onplural.sh.  This should fix that.
@michaeljguarino michaeljguarino added bug-fix This pull request fixes a bug backend Changes related to the backend labels Aug 9, 2022
@zreigz
Copy link
Member

zreigz commented Aug 9, 2022

/lgtm
/approve

@zreigz zreigz merged commit e883dea into master Aug 9, 2022
@michaeljguarino michaeljguarino deleted the mjg/eng-477-validate-domain-depth-in-plural-dns-api branch August 9, 2022 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Changes related to the backend bug-fix This pull request fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants