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

feat(publicip): resilient public ip fetcher #2518

Merged
merged 1 commit into from
Oct 19, 2024
Merged

Conversation

qdm12
Copy link
Owner

@qdm12 qdm12 commented Oct 12, 2024

  • try next fetcher if banned
  • consider a ban effective for 30 days (no file persistence)
  • consider a service no longer banned if token changed
  • carries ban times when updating the list of fetchers at runtime
  • PUBLICIP_API accepts a CSV
  • PUBLICIP_API_TOKEN accepts a CSV
  • Add unit tests for configuration code
  • Default PUBLICIP_API to ipinfo,ifconfigco,ip2location,cloudflare such that it now has ifconfigco,ip2location,cloudflare as backup ip services in case of ban

- try next fetcher if banned
- consider a ban effective for 30 days (no file persistence)
- consider a service no longer banned if token changed
- carries ban times when updating the list of fetchers at runtime
- PUBLICIP_API accepts a CSV
- PUBLICIP_API_TOKEN accepts a CSV
- Add unit tests for configuration code
- Default PUBLICIP_API to `ipinfo,ifconfigco,ip2location,cloudflare` such that it now has `ifconfigco,ip2location,cloudflare` as backup ip services in case of ban
@qdm12 qdm12 force-pushed the publicip-resilient branch from df74689 to 5c7d4d1 Compare October 14, 2024 16:56
@qdm12 qdm12 merged commit a61302f into master Oct 19, 2024
5 checks passed
@qdm12 qdm12 deleted the publicip-resilient branch October 19, 2024 13:21
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.

1 participant