Two implementations. One decision

How do you swap Keycloak for Auth0 with data instead of opinion?

Duas implementações. Uma decisão

Como trocar o Keycloak pelo Auth0 com dados, e não com opinião?

Experiment · Two pillars

Hypotheses are proven with experiment metrics

Experimento · Dois pilares

Hipóteses são provadas com métricas de experimentos

hypothesis.md
1We believe that [change]2for [audience]3will result in [effect].4We'll know when [metric] ≥ [value]
hipotese.md
1Acreditamos que [mudança]2para [público]3vai resultar em [efeito].4Saberemos quando [métrica] ≥ [valor]
Experiment · Two pillars

We measure flow. Never individuals

A metric on someone becomes a target and stops measuring.

Experimento · Dois pilares

Medimos fluxo. Nunca indivíduos

Métrica sobre alguém vira meta e deixa de medir.

The reef · The interface

An interface is a reef

O reef · A interface

Uma interface é um reef

~/example
$ nereus reef get authenticationauthentication.getnereus.dev/v1alpha1 sessions  create get list delete  # nereus login
The reef · The implementations

Two Nereids, one contract

O reef · As implementações

Duas Nereidas, o mesmo contrato

authentication.getnereus.devinterface · reefKeycloakNereidopen sourceAuth0NereidSaaS
authentication.getnereus.devinterface · reefKeycloakNereidaopen sourceAuth0NereidaSaaS
The reef · Side by side

Both live. A Mandate splits the users

O reef · Lado a lado

Os dois no ar. Um Mandate divide os usuários

80% Keycloak20%controlcandidate · Auth0
80% Keycloak20%controlecandidato · Auth0
The reef · Measured by design

Everything goes through Nereus. Same yardstick

  • Portal · web
  • platform CLI
  • Agents · MCP
  • Usage, latency and errors: from request to Ready, per implementation and channel, in one trace
O reef · Medido por construção

Tudo passa pelo Nereus. A régua é a mesma

  • Portal · web
  • platform CLI
  • Agentes · MCP
  • Uso, latência e erros: do pedido ao Ready, por implementação e canal, num trace só
The reef · What isn't free

Three things the platform can't see alone

  • Satisfaction: a one-key score, per implementation
  • Human time: login with and without typing time
  • ✓ MCP: Model Context Protocol: each tool call measured, scored by whoever asked
O reef · O que não vem de graça

Três coisas que a plataforma não vê sozinha

  • Satisfação: uma nota com uma tecla, por implementação
  • Tempo humano: login com e sem a pessoa digitando
  • ✓ MCP: Model Context Protocol: cada tool medida, nota de quem pediu
Cost · The problem

Faster login doesn't decide on its own

Same function, costs of a different nature.

Custo · O problema

Login mais rápido não decide sozinho

Mesma função, custos de natureza diferente.

Cost · Keycloak

No license. But someone keeps it running

  • Database, replicated
  • Workload with high availability
  • Monitoring and on-call
  • A team for upgrades and patches: the cost a benchmark doesn't show
Custo · Keycloak

Sem licença. Mas alguém mantém de pé

  • Banco replicado
  • Workload com alta disponibilidade
  • Monitoramento e plantão
  • Um time para upgrades e patches: o custo que o benchmark não mostra
Cost · Auth0

Little to operate. A bill that grows with users

  • Monthly license: depends on how many users and features the context needs
Custo · Auth0

Pouco para operar. Uma fatura que cresce com os usuários

  • Licença mensal: depende de quantos usuários e recursos o contexto precisa
Cost · The hypothesis

The platform is the best place to cross it all

  • Metrics · automatic: usage, performance and satisfaction
  • Infrastructure · automatic: Keycloak's database and workload, with the cost
  • Licenses · external: vendor invoice
  • Teams · external: from the People team, never individual
Custo · A hipótese

A plataforma é o melhor lugar para cruzar tudo

  • Métricas · automático: uso, desempenho e satisfação
  • Infraestrutura · automático: banco e workload do Keycloak, com o custo
  • Licenças · externo: fatura do fornecedor
  • Times · externo: pela área de Pessoas, nunca individual
Cost · The comparison

The nuances side by side

Estimate: 5,000 monthly active users, 120 environments

Custo · A comparação

As nuances lado a lado

Estimativa: 5 mil usuários ativos por mês, 120 ambientes

~/example
$ nereus comparison get auth-10                     keycloak     auth0login · system       1.0 s        0.9 slogin · with person  13 s         9 ssatisfaction         4.1          4.3infra/month          R$ 3k        —people/month         R$ 23k ~     R$ 3klicense/month        —            R$ 8ktotal/month          R$ 26k       R$ 11k ✓
~/example
$ nereus comparison get auth-10                     keycloak     auth0login · sistema      1,0 s        0,9 slogin · com a pessoa 13 s         9 ssatisfação           4,1          4,3infra/mês            R$ 3 mil     —pessoas/mês          R$ 23 mil ~  R$ 3 millicença/mês          —            R$ 8 miltotal/mês            R$ 26 mil    R$ 11 mil ✓
Cost · The tipping point

Below ~16k users, Auth0 is cheaper

In this example, 5k users today. Past 16k, the choice flips.

Custo · O ponto de virada

Abaixo de ~16 mil usuários, o Auth0 sai mais barato

No cenário do exemplo, são 5 mil usuários hoje. Passando de 16 mil, a escolha vira.

02040010k20k30kR$ k/monthmonthly active userstodayKeycloakAuth0 · license per user~16k
02040010 mil20 mil30 milR$ mil/mêsusuários ativos/mêshojeKeycloakAuth0 · licença por usuário~16 mil
Decision · The comparator

A Nereid compares the implementations

Decisão · O comparador

Uma Nereida compara as implementações

~/example
$ nereus comparison create auth-10 \    --reef authentication \    --verb login \    --window 30dscope: sessions create (login)weights: perf 30 · sat 30 · cost 40 sli          slo     keycloak  auth0login <1s    ≥99%    99.2% ✓  99.6% ✓satisfaction ≥4.5    4.1   ~  4.3   ~total cost   ≤R$10k  R$26k ✗  R$11k ~error budget         20%      60%sla                  own team  vendorverdict      auth0
Decision · The comparator

A marginal result?

When the gap is small, a person decides.

Decisão · O comparador

Resultado marginal?

Quando a diferença é pequena, quem decide é uma pessoa.

Decision · The decision

The decision becomes a resource. And triggers the swap

Decisão · A decisão

A decisão vira recurso. E dispara a troca

~/example
$ nereus comparison decision create keycloak-to-auth0 \    --comparison auth-10 \    --choose auth0decision/keycloak-to-auth0 createdby:       mariaat:       2026-10-21 14:32based on: comparison/auth-10verdict:  auth0 (marginal)event:    authentication.defaultmandate.changed
Decision · The criterion

Each comparison records whether cost changed the winner

Decisão · O critério

Cada comparação registra se o custo mudou o vencedor

~/example
$ nereus comparison listNAME      WINNER  FASTEST   FLIPPEDauth-07   auth0   auth0     noauth-10   auth0   keycloak  yescache-09  valkey  valkey    no flipped: 1 of 3
Decision · The criterion

If it never does, the idea falls

And that is a result too.

Decisão · O critério

Se nunca mudar, a ideia cai

E isso também é resultado.

Choice · Who picks the implementation

Every implementation is swappable. What changes is who picks

  • The platform picks · authentication: Keycloak or Auth0, and people don't even notice
  • The team picks the destination · cloud account: Azure or AWS, and the choice costs money. How to get there stays with the platform
Escolha · Quem escolhe a implementação

Toda implementação é trocável. Muda quem escolhe

  • A plataforma escolhe · authentication: Keycloak ou Auth0, e a pessoa nem percebe
  • O time escolhe o destino · cloud account: Azure ou AWS, e a escolha gera custo. O jeito de chegar lá continua com a plataforma
Choice · Example · cloud account

The team picks the mandate, or gets the default

Escolha · Exemplo · cloud account

O time escolhe o mandate, ou recebe o default

~/example
$ nereus cloudaccount create payments-devcloudaccount/payments-dev createdmandate: azure (default)hint: nereus cloudaccount mandate list $ nereus cloudaccount database create orders \    --type sql \    --account payments-devdatabase/orders created (azure · sql)
~/example
$ nereus cloudaccount create pagamentos-devcloudaccount/pagamentos-dev createdmandate: azure (default)hint: nereus cloudaccount mandate list $ nereus cloudaccount database create pedidos \    --type sql \    --account pagamentos-devdatabase/pedidos created (azure · sql)
Choice · Example · mandates

The hint leads to the mandates

Escolha · Exemplo · mandates

A dica leva aos mandates

~/example
$ nereus cloudaccount mandate listNAME          DEFAULTalibaba       falseaws           falseazure         truecloudamqp     falsedigitalocean  falsegcp           falsehostinger     falseibm           falsemagalu        falseoracle        false
Choice · Example · mandate

Each mandate says who implements it

Escolha · Exemplo · mandate

Cada mandate diz quem implementa

~/example
$ nereus cloudaccount mandate get azure \    --output yamlapiVersion:  cloudaccount.getnereus.dev/v1alpha1kind: Mandatemetadata:  name: azurespec:  nereid:    azure
Permissions · accounts

Creating an account is a permission too. The mandate is the condition

Permissões · contas

Criar conta também é permissão. O mandate entra como condição

~/example
$ nereus cloudaccount can-i \    --team paymentsRESOURCE       VERB    MANDATEcloudaccounts  create  azure  ✓                       aws    ✗                       gcp    ✗
~/example
$ nereus cloudaccount can-i \    --team pagamentosRESOURCE       VERB    MANDATEcloudaccounts  create  azure  ✓                       aws    ✗                       gcp    ✗
Permissions · inside the account

The account is the scope. A permission is resource + verb

Permissões · dentro da conta

A conta é o escopo. A permissão é recurso + verbo

~/example
$ nereus cloudaccount can-i \    --team payments \    --account payments-devRESOURCE      VERBpayments-dev  get     ✓              delete  ✗  databases   create  ✓              get     ✓              list    ✓  clusters    get     ✓              list    ✓              create  ✗
~/example
$ nereus cloudaccount can-i \    --team pagamentos \    --account pagamentos-devRESOURCE        VERBpagamentos-dev  get     ✓                delete  ✗  databases     create  ✓                get     ✓                list    ✓  clusters      get     ✓                list    ✓                create  ✗
Permissions · inside the account

One door

OpenFGA: organization, project, reef, account, resource and verb.

Permissões · dentro da conta

Uma só porta

OpenFGA: organization, project, reef, conta, recurso e verbo.

Platform · Kubernetes fades

“The future of Kubernetes is that it has to go away.”

Kelsey Hightower · GitHub's ReadME podcast, 2023

  • The New Stack: Kelsey Hightower predicts how the Kubernetes community will evolve
Plataforma · Kubernetes some

“O futuro do Kubernetes é que ele tem que sumir.”

Kelsey Hightower · podcast ReadME, do GitHub, 2023

  • The New Stack: Kelsey Hightower prevê como a comunidade Kubernetes vai evoluir
Platform · Two levels of swapping

Nereus guarantees the contract, not the APIs

  • Swap the implementation · recommended: Same API, new Nereid. CLI and can-i keep working
  • Swap the API · possible: The customer's own reefs and Nereids
  • ✓ The contract · annotations: Follow the contract, get CLI and can-i
Plataforma · Dois níveis de troca

O Nereus garante o contrato, não as APIs

  • Trocar a implementação · recomendado: Mesma API, Nereida nova. CLI e can-i continuam
  • Trocar a API · possível: Reefs e Nereidas do próprio cliente
  • ✓ O contrato · annotations: Seguiu o contrato, ganha CLI e can-i
Platform · Marketplace

Everything comes in signed. Each Nereid asks for the topics it wants

Plataforma · Marketplace

Tudo entra assinado. Cada Nereida pede os tópicos que quer usar

~/example
$ nereus nereid create azure \    --reef cloudaccountsignature   ✓ getnereusconsumes    cloudaccount.create            cloudaccount.deletepublishes   cloudaccount.ready            cloudaccount.failednereid/azure created
~/example
$ nereus nereid create azure \    --reef cloudaccountassinatura  ✓ getnereusconsome     cloudaccount.create            cloudaccount.deletepublica     cloudaccount.ready            cloudaccount.failednereid/azure created
Platform · Marketplace

Installing is approving

The administrator picks which topics the Nereid talks on.

Plataforma · Marketplace

Instalar é aprovar

O administrador escolhe em quais tópicos a Nereida fala.

Platform · End to end

From an empty instance to the lifecycle, step by step

From the foundation to the platform developing itself.

Plataforma · Ponta a ponta

Da instância vazia ao ciclo de vida, passo a passo

Da foundation à plataforma desenvolvendo a si mesma.

Beyond login · Another reef

This presentation could be a platform resource

  • Per-slide metrics: who reached the end, without identifying anyone
  • Survey before and after: how much the audience thinks it knows
  • Word cloud: an agent suggests, the speaker decides
  • Fixes become issues: in another reef, without leaving the platform
Além do login · Outro reef

Esta apresentação poderia ser um recurso da plataforma

  • Métricas por slide: quem chegou ao fim, sem identificar ninguém
  • Pesquisa antes e depois: quanto a plateia acha que sabe
  • Nuvem de palavras: o agente sugere, quem apresenta decide
  • Correção vira issue: em outro reef, sem sair da plataforma
Beyond login · Approvals

The talk is ready. The prize draw waits for legal

  • ✓ Ready: the talk can run
  • RaffleApproved: pending with legal: prioritized by a director, assigned, with a recorded opinion
  • Flow efficiency: how much of the time was work and how much was waiting
Além do login · Aprovações

A palestra está pronta. O sorteio espera o jurídico

  • ✓ Ready: a palestra pode rodar
  • RaffleApproved: pendente no jurídico: priorizado por um diretor, assumido, com parecer registrado
  • Eficiência de fluxo: quanto do tempo foi trabalho e quanto foi espera
Beyond login · Everything converges

From the first course to hiring, in one place

  • University · courses: Log in, and your courses are there
  • Skills · map: Completed courses and what each person declares
  • Teams · composition: The skills a team needs, and who already has them
  • Openings and hiring · when missing: Opening, interview and hiring
Além do login · Tudo converge

Do primeiro curso à contratação, no mesmo lugar

  • Universidade · cursos: Ao logar, os cursos já estão lá
  • Skills · mapa: Cursos concluídos e o que cada um declara
  • Times · composição: As skills que o time precisa, e quem já as tem
  • Vagas e contratação · quando falta: Vaga, entrevista e contratação
Beyond login · Everything converges · teams

Assembling a team already shows what is missing

Além do login · Tudo converge · times

Montar um time já mostra o que falta

~/example
$ nereus team create check-in \    --skills kotlin,terraform,a11yteam/check-in createdkotlin    6 people ✓terraform 3 people ✓a11y      none ✗ hint: nereus university course get a11y-101hint: nereus hiring position create --skill a11y
Proof · Who did it before

The pieces exist. Putting them together is new

  • Gateway API · Kubernetes: one API Group, many implementations, conformance tests
  • Scientist · GitHub: runs new code beside the old and logs the differences
  • Kayenta · Netflix and Google: weighted score: promote, roll back or marginal
  • Cost Insights · Spotify: cloud cost visible to each team
Prova · Quem já fez

As peças existem. A junção é nova

  • Gateway API · Kubernetes: um API Group, várias implementações, testes de conformidade
  • Scientist · GitHub: roda o código novo ao lado do antigo e registra as diferenças
  • Kayenta · Netflix e Google: nota ponderada: promove, reverte ou marginal
  • Cost Insights · Spotify: custo de nuvem visível para cada time
Proof · Where others failed

Three traps

  • Connecting everything: as with CMDBs, data goes stale and nobody maintains it
  • Measuring people: the metric becomes a target and stops measuring
  • Starting with the hardest: authentication has sessions, passwords and security
Prova · Onde outros falharam

Três armadilhas

  • Conectar tudo: como nos CMDBs, os dados envelhecem e ninguém mantém
  • Medir pessoas: a métrica vira meta e deixa de medir
  • Começar pelo mais difícil: authentication tem sessões, senhas e segurança
Proof · How to prove it

Two hypotheses, in four steps

  • By-design capture: a Nereid with no instrumentation; metrics in minutes
  • Two implementations: same reef; license and people entered by hand
  • Comparator: nereus comparison with configurable weights
  • Projection · optional: with the mandate pricing model, where the math flips
Prova · Como provar

Duas hipóteses, em quatro passos

  • Captura by design: Nereida sem instrumentação; métricas em minutos
  • Duas implementações: mesmo reef; licença e pessoas à mão
  • Comparador: nereus comparison com pesos configuráveis
  • Projeção · opcional: com o modelo de preço do mandate, onde a conta vira
Closing · Implementation comparator

Thank you!

Questions?

Encerramento · Comparador de implementações

Obrigado!

Perguntas?