canonical / oidc-gatekeeper-operator

Charmed OIDC Gatekeeper
Apache License 2.0
1 stars 7 forks source link

Integrate with the `dex-auth-info` interface to set `OIDC_PROVIDER` value #156

Closed DnPlas closed 2 months ago

DnPlas commented 3 months ago

Context

This charm can be considered as an OIDC client that connects to Dex for handling Charmed Kubeflow authorization. It should be integrated with dex-auth to get the OIDC provider's information.

dex-auth will be introducing a new interface to broadcast Dex's info in https://github.com/canonical/dex-auth-operator/issues/203, to enable OIDC clients like this charm to integrate to it.

oidc-gatekeeper should be able to integrate with this interface and use Dex's issuer info for setting the value of OIDC_PROVIDER.

What needs to get done

  1. Add the relation and interface
# oidc-gatekeeper metadata.yaml
requires:
  oidc-provider-info:
    interface: oidc-provider-info
  1. Use the relation data to set the value of OIDC_PROVIDER

Definition of Done

The OIDC_PROVIDER value is set using the relation data instead of it coming from the public-url configuration option.

syncronize-issues-to-jira[bot] commented 3 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-5968.

This message was autogenerated

DnPlas commented 2 months ago

Fixed by #163 and #168