Files
inbuxa-server/crates/directory
jcoffey-dev 1188447511
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 14m27s
OIDC directories: a tenant's reaches only public HTTPS addresses
An OpenID Connect directory fetches discovery, JWKS, user info and
introspection from the server. A directory a tenant manages (only when a
server administrator delegates sysDirectory*, which tenants don't have
by default) could point those at internal addresses.

For a directory with a memberTenantId, the issuer, introspection,
jwks_uri and userinfo URLs must be HTTPS and not a private IP literal,
host names are checked when they resolve, and redirects aren't followed.
Server-owned directories are unchanged. Test builds let a tenant's
directory use loopback, as push and reports do, because the harness
runs Keycloak on localhost.

is_global_ip and the public-only resolver move from common to utils,
unchanged, so the directory crate (below common) can use them; common
re-exports both.

Test: oidc::config::tenant_url_tests.

Reported privately in a security review.

(cherry picked from commit d139b1198fd0f65a2496871c08d76cea86d0e989)
2026-11-20 13:49:12 -07:00
..
2026-10-18 13:51:24 -07:00