-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: integrate with dex-oidc-config interface and remove public-url
#163
feat: integrate with dex-oidc-config interface and remove public-url
#163
Conversation
cd50de3
to
1e8bebf
Compare
5388bff
to
ba6d749
Compare
a891111
to
c30abb1
Compare
public-url
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, left some comments. I 'm also testing right now and will comment back with my findings
During testing, I first refreshed from an existing latest/edge deployment and this was the result
I understand this is expected since public-url since:
and the relation data have
I see the updated relation data
and pebble plan with
|
…e-with-dex-oidc-config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job 🎉
This commit integrates the
oidc-gatekeeper
charm withdex-auth
via thedex-oidc-config
interface.dex-auth
(see canonical/dex-auth-operator#203) recently introduced the aforementioned interface, which will help us remove thepublic-url
configuration option as the main way of configuring oidc-gatekeeper's OIDC_AUTH_PROVIDER env variable. The new relation provides all the information that is required for setting that env variable, so this charm and its users should not change it.The changes in this PR include:
public-url
configuration option entirely (a backwards compatible solution is not required in this case because dex-auth already has it) -> this tackles Remove thepublic-url
configuration option #157dex-auth-info
interface to setOIDC_PROVIDER
value #156dex_oidc_config
library to this charm so the interface is handled by itTesting
dex-auth
from latest/edgejuju relate dex-auth oidc-gatekeeper:dex-oidc-config
oidc-gatekeeper
has the OIDC_AUTH_PROVIDER env variable matching the value from the relation data (issuer-url) -> for us it should behttp://dex-auth.<namespace>.svc:5556/dex
Fixes #156
Fixes #157