quilkin
quilkin copied to clipboard
Authentication
We should talk about authentication and figure out if we want to deal with auth at all, and if so, what we want to do.
This is auth as in, doing stuff like receiving a JWT token on initial connection
think: similar to how a streaming grpc call might have auth metadata as its initiated, which can then be validated
An example of how istio does this, for reference:
apiVersion: security.istio.io/v1beta1
kind: RequestAuthentication
metadata:
name: foobar
spec:
jwtRules:
- issuer: https://embark-studios.eu.auth0.com/
jwksUri: https://embark-studios.eu.auth0.com/.well-known/jwks.json
audiences:
- https://launcher.embark.net
- issuer: https://auth.embark.net/
jwksUri: https://auth.embark.net/.well-known/jwks.json
audiences:
- https://launcher.embark.net
---
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: foobar
spec:
rules:
- from:
- source:
requestPrincipals: ["*"]
- to:
- operation:
paths: ["/healthz"]