1 / 5 · Welcome

Every problem is a question the world is asking.

Zetema (ζήτημα, Greek for “a thing sought”) gathers real problems people want solved, from public pages around the world. Builders find something worth building, and anyone living with a problem can share it, no coding needed.

Edit
Security & privacy · A few weeksAnywhere· Source · Oct 2026

Admins using a separate admin hostname can't impersonate a user and land in a working session on the realm's domain.

Keycloak administrators using a separate admin hostname

Where it stands

  1. Sourced (done)
  2. Kit (done)
  3. Wanted (next)
  4. Building
  5. Solved

How this problem came to be

  1. Found1 sourcegithub.com/keycloak
  2. Quoted4 claimseach checked against its page
  3. BriefWrittenand what solved looks like
  4. Market1 signals93 reactions on the issue
  5. Kit6 steps20 tools · 6 routes
  6. People0 want0 live it · 0 would test

The problem, broken down

Who it hurts
Keycloak administrators whose admin console hostname differs from the realm hostname
The moment
After clicking Impersonate, the session is created on the admin hostname and is unusable on the realm hostname.
What people do today
Some users work around it by removing the realm frontend URL, forcing HTTPS on port 8443 at the load balancer, or exposing the admin console on a private address so impersonation runs over the private IP.
Why it's unsolved
The impersonation request sets session cookies on the admin hostname, and a cookie set by that response cannot cross to a different domain.
What solved looks like
An admin clicks Impersonate with a separate admin hostname configured, and the user ends up in a working session on the realm hostname.

Evidence lens

Every claim points at the quote it rests on

Sources

GitHub · keycloak/keycloak ↗
[1]“Impersonate feature invokes admin endpoint on admin hostname which sets cookies in a response, but they are set for a wrong domain”[2]“where session is not present since cookies are not set for that domain.”[3]“This is still a problem in the most current Keycloak version (tested with 21.1.0).”[4]“No cookie trickery can solve the cross-domain boundary.”

Claims

1The impersonation endpoint is called on the admin hostname and sets cookies that are scoped to the wrong domain.✓ Quote found in source
2The redirect to the realm hostname finds no session because the cookies were not set for that domain.✓ Quote found in source
3A commenter reported the problem still occurs in Keycloak 21.1.0.✓ Quote found in source
4A commenter said a cookie-based approach cannot solve a cross-domain boundary and a redirect flow is needed.✓ Quote found in source

Drafted with claude-haiku-5-5 from the cited source and published automatically. Every quote was checked against the source.

Sources

From a public page with a citation.

  1. [1]GitHub · keycloak/keycloak
What the source says, in short

After clicking Impersonate, the session is created on the admin hostname and is unusable on the realm hostname. Some users work around it by removing the realm frontend URL, forcing HTTPS on port 8443 at the load balancer, or exposing the admin console on a private address so impersonation runs over the private IP. The impersonation request sets session cookies on the admin hostname, and a cookie set by that response cannot cross to a different domain.

Forks 0

Nobody has forked this yet. Be the first.

Market read

How big this is, from the evidence

  • GitHub ↗Builders' pull · Medium confidence93 reactions on the issue

How these were measured: Total reactions on the GitHub issue, read from its API.

For whoever takes this up

The builder's path for this problem

A path written for this problem: its open questions, who to talk to, its data and its ideas, with tools for each stage and a starter prompt ready to paste into any assistant.

Open the path

Discussion 0

No comments yet.