goauthentik / goauthentik/authentik

GeoIP bindings mishandle private and local-network client IPs

Open
#25,281 0 comments 0 reactions 0 assignees View on GitHub
bug bug/confirmed
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 1h
Merged PRs (30d)
644

Description

## What

GeoIP bindings/policies mis-handle RFC1918/local-network client IPs (logout, travel-distance, missing geo).

## Want

- GeoIP bindings/policies mis-handle RFC1918/local-network client IPs (logout, travel-distance, missing geo)

## Ideas this came from

- [#13247 GeoIP for filter internal IPs](https://github.com/goauthentik/authentik/issues/13247) — Describe your question/ I created a policy for GeoIP with some countries and the new travel distance feature. I use traefik as my reverse proxy. My problem now
- [#18887 Unable to use GeoIP binding for login stage with local network IP](https://github.com/goauthentik/authentik/issues/18887) — When using GeoIP bindings in the User Login Stage as described here and accessing authentik through the local network (both the client and authentik have a 192.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the RFC1918/local-network client IP cases described in the issue, including logout, travel-distance, and missing-geo behavior, then trace the GeoIP bindings and policies involved. Done means these scenarios handle private and local-network addresses correctly; no files or tests are named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.