LoopbackBesideProduction
Docs version v1 (main)Nauthera is pre-1.0, in a design-partner program
An OIDCClient registers a loopback redirect or post-logout URI beside an https one; the client is registered and the resource is still Ready=True.
Meaning
The server holds the client and advises changing it: spec.redirectUris or
spec. hold a loopback URI (127.0.0.1, [::1], localhost or a
name under it) beside an https URI on another host. That is the shape of a deployed client
someone added a local development callback to. The server accepts it and also returns it
from the admin API as loopback_ in the client's advisories. A client
whose URIs are all loopback, such as a command-line or desktop app, is never flagged.
Impact
Nothing breaks, and users still sign in. The exposure is the end users': any program on a user's machine listening on that loopback port can receive authorization codes issued under the production client's name and consent screen, and for a public client PKCE does not stop it, since that program starts the flow itself. The developers using the callback also hold the production client's credentials.
Diagnosis
kubectl -n <ns> get oidcclient <name> -o jsonpath='{.lists the URIs; the loopback ones are the local callbacks.spec. redirectUris}{"\n"}{. spec. postLogoutRedirectUris}{"\n"}' kubectl get oidcclients -A | grep LoopbackBesideProductionlists every flagged client.GET /returns the client with itsv1/ admin/ orgs/ <slug>/ clients/ <id> advisories.nauthera_counts the reconciles that reported it.operator_ reconciles_ total{kind="OIDCClient",reason="LoopbackBesideProduction"}
Mitigation
- Declare a second OIDCClient for development: its own
clientId, only the loopback URIs (http://127.0.0.1/<path>matches any port the local server picks) andallowedGroupsnaming the developers. Template the two from one Helm chart or Kustomize base, so scopes, flows and identity providers stay the same. - Point local development at the new client's id and Secret, then remove the loopback URIs from this manifest. The condition returns to Registered.
- If the https URI and the loopback URI belong to the same native app, the advisory can stay: nothing is refused.
Escalation
None while the advisory describes the client. If it is reported for a client whose redirect and post-logout URIs are all loopback, or all off loopback, open an issue with the resource's namespace and name, its URIs and the server and operator versions.
Operator failure reasons · Generated from operator/ in nauthera-server.