Skip to content

feat: add ASN checking#21

Merged
svnoak merged 1 commit intosvnoak:mainfrom
Joxtacy:feature/8-asn
Jul 25, 2025
Merged

feat: add ASN checking#21
svnoak merged 1 commit intosvnoak:mainfrom
Joxtacy:feature/8-asn

Conversation

@Joxtacy
Copy link
Contributor

@Joxtacy Joxtacy commented Jul 22, 2025

ASN checking

Adds the possibility to register ASNs when setting up a client.
Uses the MaxMind GeoIP ASN database to do the lookups.
This PR adds a test ASN db so that you can at least run things locally.

What's not in this PR

  • The actual production ASN db.
  • A way of updating the db regularly. If I remember correctly, the db is updated once every weekday.

Discussion

To make this production ready, we need to decide on how we handle the actual production database.
I don't really have any suggestions at this point. One brief thought I had was to include it in the docker image, but it's probably just gonna be annoying to build and deploy that every once in a while.

PS. Sorry for the ugly commits. I can clean it up before merging the PR if needed.

@Joxtacy Joxtacy marked this pull request as ready for review July 22, 2025 19:23
@svnoak svnoak self-requested a review July 23, 2025 05:42
@svnoak
Copy link
Owner

svnoak commented Jul 23, 2025

Awesome! I think this looks good.
If you want you can squash your commits, that would be appreciated.
Otherwise I'll just squash and merge them.

I've created an issue regarding a production ready ASN database, see #23 .

@Joxtacy
Copy link
Contributor Author

Joxtacy commented Jul 25, 2025

@svnoak Anything else needed from me on this? :)

@svnoak svnoak self-requested a review July 25, 2025 19:42
@svnoak svnoak merged commit d6e9da7 into svnoak:main Jul 25, 2025
2 checks passed
@svnoak
Copy link
Owner

svnoak commented Jul 25, 2025

@Joxtacy All good, your PR is merged now ;)

@Joxtacy
Copy link
Contributor Author

Joxtacy commented Jul 25, 2025

@Joxtacy All good, your PR is merged now ;)

Wohoo! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants