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.

← Back to the problem

The builder's path

Six steps from this problem to its solution.

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.”
Epictetus · Enchiridion 1 (tr. W. A. Oldfather)

Written for this problem

The path

  1. Ask the people who live it

    Start with keycloak administrators whose admin console hostname differs from the realm hostname. The sources leave these open:

    • Do administrators with separate realm domains, not just separate admin hostnames, hit the same failure in current versions?
    • Would sharing cookies across subdomains be acceptable to security teams, given the subdomain takeover risk raised in the thread?
    • How many affected deployments use a shared parent domain, and how many use fully different domains?
  2. Talk to Keycloak project maintainers, via GitHub issues and discussions

    They can confirm whether the cookie behaviour is intended and which versions are affected.

    • Security team of the deploying organization: They decide whether sharing cookies across subdomains is acceptable given the takeover risk.
  3. Get the data

    Start from what is already published.

    • Keycloak documentation ↗ · Official Keycloak docs, including hostname and reverse proxy configuration relevant to separate admin and realm hostnames.
    • Keycloak GitHub issues ↗ · Where the impersonation and cookie thread is likely tracked; check for the subdomain takeover discussion mentioned in the brief.
  4. Prototype: Impersonation handoff via a one-time token on the realm host

    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.

  5. Prototype: Compatibility checklist and reproduction guide for affected deployments

    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.

  6. Test it with the people affected

    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

Six ways to take this forward

Each route is a different kind of journey, with real people and organisations to contact at each step, starting with those in every country.

  1. Step 1

    Build in the open

    Publish the code and invite contributors from the community.

  2. Step 2

    Fund the maintainers

    Sponsors, collectives and open source grants.

  3. Step 3

    Get it adopted

    Civic tech groups and public bodies take it up.

What this problem needs

Ideas, sources and tools for this problem, from first interviews to funding.

  • Web
  • Support and funding
  • Privacy

Ideas to explore

  • Idea 1Impersonation handoff via a one-time token on the realm hostHave 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.
  • Idea 2Compatibility checklist and reproduction guide for affected deploymentsWrite 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.

Specific to this problem

  • Keycloak documentation ↗

    Official Keycloak docs, including hostname and reverse proxy configuration relevant to separate admin and realm hostnames.

  • Keycloak GitHub issues ↗

    Where the impersonation and cookie thread is likely tracked; check for the subdomain takeover discussion mentioned in the brief.

Talk to first

  • Keycloak project maintainers, via GitHub issues and discussions

    They can confirm whether the cookie behaviour is intended and which versions are affected.

  • Security team of the deploying organization

    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.
  1. Understand it

    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

    Ṛgveda · 1.164.46
  2. Prototype with AI

    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.”
    Ada Lovelace · Notes on Menabrea's Sketch of the Analytical Engine, Note A (1843)
  3. Find the data

    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.

    Louis Pasteur · lecture at the University of Lille, 7 December 1854
  4. Build it

    Tools matched to what this problem needs.

    “Tasks are achieved by effort, not by wishing.”

    उद्यमेन हि सिध्यन्ति कार्याणि न मनोरथैः

    udyamena hi sidhyanti kāryāṇi na manorathaiḥ

    Hitopadeśa · Introduction
  5. Launch and get support

    Ship it responsibly, and find help and funding.

    “Speak the truth. Do what is right.”

    सत्यं वद। धर्मं चर।

    satyaṃ vada, dharmaṃ cara

    Taittirīya Upaniṣad · 1.11.1

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

Ready to send, with the sources in place

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.