Skip to content
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: merge KF-5526-issuer-url-dev-branch into main #211

Merged
merged 4 commits into from
Jul 25, 2024

Conversation

DnPlas
Copy link
Contributor

@DnPlas DnPlas commented Jul 23, 2024

This PR introduces the following changes in main:

These changes were already tested in their individual PRs.

rgildein
rgildein previously approved these changes Jul 24, 2024
Copy link
Contributor

@rgildein rgildein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only one question.

config.yaml Show resolved Hide resolved
tests/unit/test_charm.py Outdated Show resolved Hide resolved
DnPlas and others added 4 commits July 24, 2024 20:55
* feat: add dex_oidc_config library

Add a library to handle the dex-oidc-config relation interface. This library
allows dex-auth to share its OIDC configuration with OIDC clients such as the
oidc-gatekeeper charm. The library is designed to be extended to share any
information about Dex, but right now it is only sharing Dex's issuer url.

Closes #203
* refactor: add dex-issuer-url and remove public-url config options

This commit removes the public-url configuration option in favour of the dex-issuer-url one.
The way to configure the issuer value for dex-auth is now by getting it from the aforementioned
configuration option or by constructing it from dex-auths Kubernetes Service DNS name:
"http://<dex-app-name>.<namespace>.svc:5556/dex"

Closes #204
Co-authored-by: Robert Gildein <[email protected]>
Since this is a breaking change, it is preferrable to keep some sort of compatibility that
allow users with existing deployments to keep running Dex even after the upgrade.
This configuration option can be removed after a deprecation notice is rolled out.
Copy link
Contributor

@rgildein rgildein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I tested it out and it's working fine.

@DnPlas DnPlas merged commit 8912ccb into main Jul 25, 2024
7 checks passed
@DnPlas DnPlas deleted the KF-5536-issuer-url-dev-branch branch July 25, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants