Skip to main content

25 posts tagged with "security"

View All Tags

Schrems II and the transfer impact assessment for an IdP

· 18 min read
Jeff Patzer
Phase Two

A transfer impact assessment is the written analysis Schrems II requires before you rely on standard contractual clauses to move personal data outside the EEA, and an identity provider needs one even when every byte of its database sits in Frankfurt. The reason is in one footnote of the EDPB's own guidance: remote access from a third country is itself a transfer, so a support engineer in Seattle opening an admin console against an EU cluster is doing the thing Chapter V regulates, whether or not a row is ever copied out of the region. Below is the six-step assessment from EDPB Recommendations 01/2020 applied to an IdP specifically, a measurement of exactly which categories of personal data a remote administrator can read in the clear on Keycloak 26.8.2, and our own answers to each step, including the two that go against us.

Why Phase Two uses oidc-spa, and how we harden our own dashboard

· 13 min read
Jeff Patzer
Phase Two

Our dashboard is a single-page app. It's served as static files, every page requires a login, and it calls our APIs straight from the browser with an access token. That makes the browser the place where a stolen token would come from, so the OIDC library we pick matters more than it would for a server-rendered app. We use oidc-spa for the dashboard and our other single-page apps. This post explains why, and walks through the hardening we did on the dashboard with oidc-spa 10.2.18, including a change of router that we didn't expect to make.

Is EU hosting enough? An honest answer

· 15 min read
GR Patil
Phase Two

No. EU hosting is not enough on its own, and we would rather write that sentence ourselves than have a procurement questionnaire extract it from us. Choosing an EU region settles one question — where the identity data is stored — and leaves three open: which company you contract with, which laws that company is subject to, and who can reach the data in order to operate it. We are a managed Keycloak vendor whose EU clusters run in Frankfurt and whose contracting entity, Phase Two, Inc., is incorporated in the United States, so we are squarely inside the critique rather than above it. What follows is which parts of a residency claim you can verify without the vendor's cooperation, which parts come down to disclosure, and the buyers for whom EU hosting plus a documented transfer position is genuinely sufficient — and the ones for whom it structurally is not. The fast-moving regulatory facts below were re-checked on 16 November 2026.

Java4Shell (CVE-2026-114938): What Keycloak Operators Need to Do

· 7 min read
Jeff Patzer
Phase Two

Bottom line: if you run Keycloak on x86-64 servers with recent Intel or AMD CPUs, add -XX:-UseBASE64Intrinsics to the JVM today, then move to a patched Java runtime. Java4Shell (CVE-2026-114938), disclosed on November 17, 2026, is a memory-corruption bug in OpenJDK's Base64 decoder, and Keycloak is the first application on the researchers' list of products where they demonstrated remote code execution without authentication, in a default configuration. ARM64 is not affected, which is why Phase Two hosted clusters were never exposed.

Update, November 19, 2026: Red Hat has shipped the patched OpenJDK, the official Keycloak 26.8 images have been refreshed, and every image Phase Two publishes is now on the fixed JDK (21.0.13.1). The tags are listed under the permanent fix.

Send Keycloak events straight to Microsoft Sentinel, Datadog and Google SecOps

· 7 min read
GR Patil
Phase Two

Keycloak webhooks from Phase Two can now send login and admin events directly to Microsoft Sentinel, Datadog Cloud SIEM and Google Security Operations, each in the format that platform's ingestion API and detection content expect. You set a payloadFormat on a webhook, give it the platform's credentials, and events start arriving. There is no log shipper, agent or translation function to run in between.

The feature is open source in keycloak-events 0.70, and it is available today on every Phase Two hosted cluster.

Login Tracer: debug SAML and OIDC logins in Chrome DevTools

· 6 min read
Jeff Patzer
Phase Two

Today we're releasing Login Tracer by Phase Two, a free Chrome DevTools extension for debugging SAML and OpenID Connect / OAuth logins. Open DevTools, select the Login Tracer panel, and log in: every SSO request in the tab is decoded, grouped into a login flow, and checked for common misconfigurations, with explanations of the Keycloak setting most likely behind each problem. It requests no permissions and makes no network requests.

Keycloak 26.8.2: 33 CVEs and a Critical SAML Bypass

· 8 min read
GR Patil
Phase Two

Bottom line: upgrade now if Keycloak terminates or brokers SAML; within the week otherwise. Keycloak 26.8.2 fixes 33 CVEs. The one that should move your schedule is critical and needs no credentials — a signature bypass in the SAML HTTP-Redirect binding that upstream describes as leading to full account takeover of federated users. The harder problem is that 26 of the 33 have no published advisory yet, so most of this release carries no severity you can plan against.

The CLOUD Act and your identity provider

· 17 min read
Jeff Patzer
Phase Two

The CLOUD Act does not hand anyone a key to a European data centre. It does something narrower, and for an identity provider more awkward than the usual telling. 18 U.S.C. § 2713 makes the location of data irrelevant to whether a provider under US jurisdiction has to produce it, and the process that reaches most of what an identity provider holds is the cheapest instrument in the Stored Communications Act: a subpoena for subscriber records, no warrant, no judicial finding, and no obligation to tell the customer. Below is what the statute says, which level of process reaches which table in a Keycloak realm (tested on 26.8.1), why the defence the CLOUD Act added does not cover an EU customer's identity data on either of its two conditions, and what a vendor with a US parent can honestly promise. Including us.

Data residency requirements for SaaS authentication

· 16 min read
GR Patil
Phase Two

Data residency requirements for a SaaS authentication service are not one requirement, they are four, and only the first of them is about a region. You have to name where each class of identity data is stored. You have to name a lawful transfer mechanism for every touchpoint outside that region, including remote administrative access, which is a transfer and not an exception to one. You have to hold Article 28 processing terms that say so in writing. And you have to be able to produce an inventory of where the identity data goes after it is stored — the brokers, mail relays, event listeners and relying parties your own realm sends it to. Below is the checklist a data protection officer sends, the document that answers each item, what a thin answer looks like, our own answers including the unflattering ones, and the commands that generate that fourth item from a running Keycloak realm, tested on 26.8.1.

Which Keycloak clients should be enabled when you go live?

· 11 min read
Razvan Tufisi
Phase Two

The day a Keycloak realm is reachable from the internet, automated scanners find it. They read /realms/<name>/.well-known/openid-configuration, try every client ID that ships with every realm against the token endpoint and the login pages, and start replaying username and password pairs leaked from other sites. The traffic arrives from a different residential IP on almost every request, so it looks nothing like one noisy attacker. What you are trying to stop is not a single brute-force run. It is account takeover through credential stuffing, plus the enumeration that tells an attacker which of your users exist.

So the go-live question is not "should I disable admin-cli?" It is "which clients, and which grant types, should be on at all?" The short answer: the password grant off on every client, enforced by policy; only the clients you actually use exposed; a CAPTCHA on every flow that renders a login page; and account left enabled. Disabling a client is one tool among several, and for account it is usually the wrong one.

Everything below was reproduced against Keycloak 26.8.1, and every error string is copied out of a real response.