goauthentik / goauthentik/authentik

GeoIP policies fail on missing City data and RFC1918 client IPs

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

Description

## What

policy looks up a missing/wrong context object (“client IP address not found in City database”). #20998 says it possibly fixes #12214.

## Want

- Policy looks up a missing/wrong context object (“client IP address not found in City database”)
- #20998 says it possibly fixes #12214

## Ideas this came from

- [#12214 Locked because of GeoIP Policy](https://github.com/goauthentik/authentik/issues/12214) — I added a GeoIP policy to the default authentication flow. I choose France as country. Now I cannot login anymore as I get the error "GeoIP: client IP address n
- [#20998 GeoIP policy module references wrong object in context](https://github.com/goauthentik/authentik/issues/20998) — Super simple GeoIP module with selected single country ALWAYS fails. GeoIP module references 2 different objects in context here it relies on "geoip" field in c

Contributor guide

Open the contributing guide

Research direction

Start with the GeoIP policy and its context lookup, then read linked issues #20998 and #12214 to understand the reported failure. Reproduce the policy with missing City data and an RFC1918 client IP; done means both cases have the intended policy behavior instead of the reported lookup error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.