6. `juju show-unit oathkeeper/0` to check if the relation data was passed correctly.
Get the oathkeeper config file to confirm it was rendered correctly:
juju ssh oathkeeper/0 "PYTHONPATH=agents/unit-oathkeeper-0/charm/venv/ python3 -c '
from ops import pebble
p = pebble.Client(\"/charm/containers/oathkeeper/pebble.socket\")
f = p.pull(\"/etc/config/oathkeeper.yaml\")
print(f.read())
'"
## Release Notes
<!-- A digestable summary of the changes in this PR -->
added integration with kratos
Issue
Oathkeeper is currently using default dummy values for kratos urls.
Solution
This PR adds integration with kratos through the
kratos_endpoints
library.Additional context
n/a
Testing Instructions
juju integrate kratos oathkeeper
juju integrate traefik-public kratos:public-ingress juju integrate traefik-admin kratos:admin-ingress
juju ssh oathkeeper/0 "PYTHONPATH=agents/unit-oathkeeper-0/charm/venv/ python3 -c ' from ops import pebble p = pebble.Client(\"/charm/containers/oathkeeper/pebble.socket\") f = p.pull(\"/etc/config/oathkeeper.yaml\") print(f.read()) '"