canonical / oathkeeper-operator

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

fix: remove relation data on provider side #51

Closed natalian98 closed 7 months ago

natalian98 commented 7 months ago

Currently if the auth-proxy relation data is still accessible on relation-departed event, the forward-auth relation will not updated and the requests to a related charm will still be passed through proxy, receiving 401 response.

This PR fixes it by removing the auth proxy's provider data before calling forward_auth.update_forward_auth_config.