This project contains Oberkorn Authorizator images
1.5K
Here we share some info on how to create an Oberkorn controller of the Oberkorn Authorizator project.
Oberkorn authorizator is a module created for having the flexibility to deploy token validation (JWT or whatever) in front of any application project deployed on a Kubernetes cluster where the access is managed via Ingress.
The Oberkorn authorizator project is made up of several components:
This repo contains everything you need to deploy an Oberkorn authorizator.
This is how an Oberkorn authorizator works:

The flow is as follows:
Follow these simple steps to have your Oberkorn authorizator created and deployed to your kubernetes cluster (please remember you must first install the Oberkorn controller and the CRD as explained here).
apiVersion: jfvilas.at.outlook.com/v1
kind: ObkAuthorizator
metadata:
name: simple-authorizator
namespace: test
spec:
ingress:
name: sample-nginx-ingress
class: nginx
validators:
- cognito:
name: cognito-validator
region: eu-west-1
userpool: eu-west-1_abcdefg
rulesets:
- name: general
uriPrefix: [ '' ]
rules:
# all resources under /public can be accessed (access is unrestricted)
- uri: "/public/"
uritype: "prefix"
type: "unrestricted"
# all resources under /private require a valid JWT token emitted by the cognito validator
- uri: "/private/"
uritype: "prefix"
type: "valid"
kubectl apply -f your-application-authorizator.yaml`
That's it!
Oberkorn is build around two separate resources: the controller (in charge of the control plane) and the authorizator (repsonsible of the data plane). The architecture of the whole project is depicted below.

Content type
Image
Digest
sha256:ea04198ea…
Size
390.4 MB
Last updated
over 2 years ago
docker pull jfvilasoutlook/obk-authorizator