Skip to content

feat(inputs.whois): Support IDN domains #16700

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

Merged
merged 6 commits into from
Apr 9, 2025

Conversation

skartikey
Copy link
Contributor

@skartikey skartikey commented Mar 28, 2025

Summary

Add IDN Support to Whois Plugin

Enhances domain validation for Internationalized Domain Name (IDN) support by handling punycode conversion.

Implementation:

  • Validate as a standard ASCII domain first.
  • Convert non-ASCII domains to punycode with strict validation.
  • Ensure the converted domain matches ASCII or punycode patterns.

Checklist

  • No AI generated code was used in this PR

Related issues

related to: #16509

@telegraf-tiger
Copy link
Contributor

Thanks so much for the pull request!
🤝 ✒️ Just a reminder that the CLA has not yet been signed, and we'll need it before merging. Please sign the CLA when you get a chance, then post a comment here saying !signed-cla

@telegraf-tiger telegraf-tiger bot added feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Mar 28, 2025
@skartikey
Copy link
Contributor Author

!signed-cla

Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @skartikey! A few small comments. It would also be good to add some test-cases for invalid ascii and punycode domains...

@srebhan srebhan changed the title feat(inputs.whois): add idn support to plugin feat(inputs.whois): Support IDN domains Mar 28, 2025
@skartikey skartikey self-assigned this Mar 28, 2025
@telegraf-tiger
Copy link
Contributor

@skartikey skartikey requested a review from srebhan March 31, 2025 09:56
@skartikey skartikey assigned srebhan and mstrandboge and unassigned skartikey Apr 2, 2025
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @skartikey!

@srebhan srebhan removed their assignment Apr 9, 2025
@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Apr 9, 2025
@mstrandboge mstrandboge merged commit df6d44e into influxdata:master Apr 9, 2025
27 checks passed
@github-actions github-actions bot added this to the v1.35.0 milestone Apr 9, 2025
skartikey added a commit to skartikey/telegraf that referenced this pull request Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants