Skip to content

Sample how to use certmanager in combination with OAuth2-Proxy and Azure Active Directory

Notifications You must be signed in to change notification settings

CSA-OCP-GER/certman-oauth2-proxy-aad

Repository files navigation

Prerequisites

Install Helm

$ kubectl apply -f helm-rbac.yaml
$ helm init --service-account tiller

Install Cert-Manager / Let's Encrypt certificate issuer

$ helm install stable/cert-manager --name cert-manager \
  --set ingressShim.defaultIssuerName=letsencrypt-prod \
  --set ingressShim.defaultIssuerKind=ClusterIssuer

Adjust variables in YAML files

EMAIL - your email adress for Let's Encrypt
DOMAIN - your domain to be secured by SSL
TENANT_ID - Azure tenant ID
APPLICATION_ID - Azure app ID
APPLICATION_KEY - Azure app secret
BASE64_ENCODED_CUSTOM_SECRET - a custom secret for the "secure cookie", Base64-encoded

Install sample

$ kubectl apply -f cert-issuer.yaml
$ kubectl apply -f certificate.yaml
$ kubectl apply -f oauth-proxy.yaml
$ kubectl apply -f service-deployment.yaml
$ kubectl apply -f oauth-proxy.yaml

Documentation of OAuth2-Proxy

https://github.com/bitly/oauth2_proxy