IntrospectionClientNotFound
Docs version v1 (main)Nauthera is pre-1.0, in a design-partner program
The OIDCClient a ProtectedResource's spec.introspectionClient names is missing, not registered on the server yet, or of another organization; the resource is Ready=False, Error, and the API is registered with no introspection client.
Meaning
The operator sends the API's introspection client as the client_id of the OIDCClient
spec.introspectionClient names, in the resource's own namespace, and reads it from that
client's status.clientId. The OIDCClient does not exist, has no status.clientId because
the server has not registered it yet, or its status.organization is not the resource's
organization. The API is registered with no introspection client meanwhile, clearing one
the server held, so a client that comes to hold the old client_id is never the API's; the
operator watches OIDCClients and sends the client once it is registered in the resource's
organization. The server holds the client it was sent by its registration, not its
client_id, so a client deleted and registered again is sent again. It refuses a client
that is not confidential, which the resource reports as Refused.
Impact
The API is registered with its identifier, scopes and lifetime, but no client introspects
its tokens as the API until the condition clears: the API's client is answered
active: false for every token issued to another client, so an API that authorizes by
introspection refuses its callers. Normal for the moment between applying a
ProtectedResource and the OIDCClient it names; a fault when it stays.
Diagnosis
kubectl -n <ns> describe protectedresource <name>names the OIDCClient and which of the three it is. The admin dashboard's Problems page shows the same message.kubectl -n <ns> get oidcclient <client> -o jsonpath='{.: nostatus}' clientIdmeans the OIDCClient itself is not Ready; its own condition says why.- Compare the OIDCClient's
status.organizationwith the organization the resource's namespace configures. - The server's audit log: query
/withv1/ admin/ orgs/ <slug>/ audit-events action=oauth.. Records refused with causetoken. introspected&client_ id=<the API's client_ id> grant_client_mismatchand anowner_client_idare the API's introspections the server does not answer for it; see Querying.
Mitigation
- Create the OIDCClient in the resource's namespace, or fix the name in
spec.introspectionClient; leave the field out if the API does not introspect tokens. - An OIDCClient that is not Ready: fix what its condition reports.
- An OIDCClient of another organization: declare the client in the resource's organization.
- Make the client confidential (a
tokenEndpointAuthMethodother thannone), or the server refuses the resource once the client is registered.
Escalation
Escalate only if the OIDCClient is Ready in the resource's namespace and organization and
the condition stays; attach both resources' kubectl describe output and the operator
version.
Operator failure reasons · Generated from operator/ in nauthera-server.