canonical / oathkeeper-operator

Charmed Ory Oathkeeper
https://charmhub.io/oathkeeper
Apache License 2.0
1 stars 4 forks source link

feat: add tls certificates relation #45

Closed natalian98 closed 9 months ago

natalian98 commented 10 months ago

This PR adds tls certificates relation.

Testing instructions

  1. Deploy the charms:
    juju deploy traefik-k8s --channel edge --trust
    juju deploy oathkeeper --channel edge --trust
    juju deploy self-signed-certificates --channel edge --trust
  2. Add integrations:
    juju relate oathkeeper:certificates self-signed-certificates
    juju relate traefik-k8s:receive-ca-cert self-signed-certificates
  3. Test that you can establish https connection to oathkeeper from traefik:
    
    juju ssh --container traefik traefik-k8s/0 bash

Install curl

apt-get -y update; apt-get -y install curl

curl https://oathkeeper.test4.svc.cluster.local:4456/decisions Unauthorized