The portal reef

Nereus in the browser: a PWA that signs a person in and shows who they are

O reef portal

O Nereus no navegador: um PWA que faz o login de uma pessoa e mostra quem ela é

Setup

What publishes the portal?

Preparação

O que publica o portal?

Setup · reef applybuilt

The portal reef, with no kinds

Preparação · reef applypronto

O reef portal, sem kinds

~/example
# The authentication reef and a Nereid of it come first$ nereus reef apply portal✓ core/reefs/portal created (portal.getnereus.dev/v1alpha1) Next steps:   nereus portal --help  nereus nereid apply <nereid> --reef portal
Setup · nereid applybuilt

The nereus-portal Nereid requires the authentication reef

Preparação · nereid applypronto

A Nereid nereus-portal requer o reef authentication

~/example
# One process, two ports: 8080 the controller's, inside the cluster, 8081 the portal's$ nereus nereid apply nereus-portal \    --reef portal✓ core/nereids/nereus-portal created, Ready, pinned to sha256:b4f9fe726220: see 'nereus portal --help'  core/mandates/nereus-portal created (reef: portal, nereid: nereus-portal, default) Next steps:   nereus mandate apply nereus-portal --reef portal --nereid nereus-portal --param publicUrl=https://portal.example.com
Setup · mandate applybuilt

The publicUrl writes the HTTPRoute

Preparação · mandate applypronto

O publicUrl escreve o HTTPRoute

~/example
# The gateway parameter takes another Gateway, istio-system/ingress by default (#728)$ nereus mandate apply nereus-portal \    --reef portal \    --nereid nereus-portal \    --param publicUrl=https://portal.example.com✓ core/mandates/nereus-portal configured (reef: portal, nereid: nereus-portal, default) Next steps:   nereus mandate list # What the Nereid wrote, in the Mandate's status$ kubectl get mandate nereus-portal \    --output jsonpath='{.status.portal}'{"gateway":"istio-system/ingress","route":"nereus-system/nereus-portal","url":"https://portal.example.com"}
Use

What does the portal answer?

Uso

O que o portal responde?

Use · the portalbuilt

The PWA, its config, and the API behind the person's token

Uso · o portalpronto

O PWA, a sua config, e a API por trás do token da pessoa

~/example
# Open it on a phone and install it; the login is Authorization Code with PKCE$ curl https://portal.example.com/healthzok # The issuer, the client and the publicUrl, from the Mandates$ curl https://portal.example.com/config.json{"issuer": "https://auth.example.com/realms/nereus", "clientId": "nereus-portal", "publicUrl": "https://portal.example.com"} # /v1/* goes to the Nereus API with only the token: no token, 401$ curl https://portal.example.com/v1/me \    --includeHTTP/2 401content-type: application/json {"error":{"code":"Unauthorized","message":"missing bearer token"}}