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

Switch helper package for the Public Suffix List #237

Merged
merged 5 commits into from
Jan 30, 2023

Conversation

mcdonnnj
Copy link
Member

@mcdonnnj mcdonnnj commented Jan 23, 2023

🗣 Description

This pull request switches Public Suffix List helper packages from publicsuffix to publicsuffixlist. Any necessary supporting changes are also made.

💭 Motivation and context

The publicsuffix package is deprecated and has not been maintained for years. It finally reached a breaking point during this past weekend's BOD 18-01 scanning run where the server hosting the maintained public suffix list no longer returned the charset header that publicsuffix expects. The publicsuffixlist package is the currently maintained one of the two alternatives mentioned by publicsuffix and it has a compatibility layer for existing code that uses publicsuffix.

🔔 See also

🧪 Testing

Automated tests pass. I confirmed that I was able to perform a local scan using this branch.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

✅ Pre-merge checklist

  • Finalize version.

✅ Post-merge checklist

  • Create a release.

Switch from using the deprecated (and very out-of-date) publicsuffix
package to using the currently maintained publicsuffixlist package. The
publicsuffixlist package has a compatibility layer specifically for
code that is already using the publicsuffix package so changes are
minimal.
@mcdonnnj mcdonnnj added the bug This issue or pull request addresses broken functionality label Jan 23, 2023
@mcdonnnj mcdonnnj self-assigned this Jan 23, 2023
@mcdonnnj mcdonnnj marked this pull request as ready for review January 23, 2023 20:19
@mcdonnnj mcdonnnj requested review from dav3r and felddy as code owners January 23, 2023 20:19
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

I just have one question.

src/pshtt/pshtt.py Outdated Show resolved Hide resolved
@jsf9k jsf9k self-assigned this Jan 30, 2023
jsf9k and others added 2 commits January 30, 2023 10:52
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change the library used to access the public suffix list since the publicsuffix package is deprecated
3 participants