The builder's path
For: Admins using a separate admin hostname can't impersonate a user and land in a working session on the realm's domain.
“Some things are under our control, while others are not under our control.”
Written for this problem
Start with keycloak administrators whose admin console hostname differs from the realm hostname. The sources leave these open:
They can confirm whether the cookie behaviour is intended and which versions are affected.
Start from what is already published.
Have the admin hostname create a short-lived, single-use token that the realm hostname exchanges for its own session cookie, so no cookie has to cross domains. Test it with a small Keycloak setup using two hostnames.
Write a reproducible test case for the cookie failure across same-parent and fully different domains, and publish which configurations are affected. This helps answer the open question about how many deployments are hit.
It is solved when: an admin clicks Impersonate with a separate admin hostname configured, and the user ends up in a working session on the realm hostname.
Routes to a solution
Each route is a different kind of journey, with real people and organisations to contact at each step, starting with those in every country.
Step 1
Build in the open
Publish the code and invite contributors from the community.
Let the people a free tool helps fund its maintainer directly.
Raise and spend money in the open for a community project.
Grants for open source that makes the internet better.
Network of civic tech groups in many countries; find the one near the problem.
Step 2
Fund the maintainers
Sponsors, collectives and open source grants.
Let the people a free tool helps fund its maintainer directly.
Raise and spend money in the open for a community project.
Grants for open source that makes the internet better.
Network of civic tech groups in many countries; find the one near the problem.
Step 3
Get it adopted
Civic tech groups and public bodies take it up.
Y Combinator's free course and co-founder matching.
Raise and spend money in the open for a community project.
Network of civic tech groups in many countries; find the one near the problem.
Volunteer data scientists working with social-sector organisations.
Ideas, sources and tools for this problem, from first interviews to funding.
Official Keycloak docs, including hostname and reverse proxy configuration relevant to separate admin and realm hostnames.
Where the impersonation and cookie thread is likely tracked; check for the subdomain takeover discussion mentioned in the brief.
They can confirm whether the cookie behaviour is intended and which versions are affected.
They decide whether sharing cookies across subdomains is acceptable given the takeover risk.
Starter prompt
Built from this problem's brief. Paste it into Claude or any AI assistant.
Help me design and build a first working prototype for this problem in Anywhere. Problem: Admins using a separate admin hostname can't impersonate a user and land in a working session on the realm's domain. Who it hurts: Keycloak administrators whose admin console hostname differs from the realm hostname The moment it hurts: 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 is still 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. Where: Anywhere First, list what you would need to learn from the people affected before building, as interview questions. Then propose the simplest version that would help, the screens or messages it needs, and the data it would use. Keep it cheap to run, accessible, and respectful of people's privacy. Flag anything you are unsure about instead of guessing.
Talk to the people who live it before you build.
“Truth is one; the wise speak of it in many ways.”
एकं सद्विप्रा बहुधा वदन्ति
ekaṃ sad viprā bahudhā vadanti
Get a working version in front of people fast.
Using AI is not cheating. Every tool carries the work of the people who made it, and using it well is how knowledge has always moved forward. The thinking, the care for the people who live the problem, and the judgement are still yours.
“The Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves.”
Open data that fits this problem.
“In the fields of observation chance favours only the prepared mind.”
Dans les champs de l'observation le hasard ne favorise que les esprits préparés.
Tools matched to what this problem needs.
“Tasks are achieved by effort, not by wishing.”
उद्यमेन हि सिध्यन्ति कार्याणि न मनोरथैः
udyamena hi sidhyanti kāryāṇi na manorathaiḥ
Ship it responsibly, and find help and funding.
“Speak the truth. Do what is right.”
सत्यं वद। धर्मं चर।
satyaṃ vada, dharmaṃ cara
Kit generated with claude-haiku-5-5; every link was checked when it was made. Links go to each provider's own site. Zetema is not paid for any listing.
Take it to someone
Built from this problem's evidence. Fill in the [brackets], make it yours, and send it. Read every line first: it goes out under your name.
Ask someone who knows this problem for 20 minutes.