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

Support JWT auth #210

Merged
merged 5 commits into from
Apr 28, 2023
Merged

Support JWT auth #210

merged 5 commits into from
Apr 28, 2023

Conversation

tomhjp
Copy link
Contributor

@tomhjp tomhjp commented Apr 26, 2023

Someone pointed out that JWT auth already works because the login endpoints are identical for kubernetes and JWT. This just improves the naming and adds an integration test for the purpose of regression testing so that we can officially document JWT auth as supported.

@tomhjp tomhjp requested a review from a team April 26, 2023 18:56
Copy link

@kschoche kschoche left a comment

Choose a reason for hiding this comment

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

Edit : I have no idea how github did this but it only showed 2 files changed, looking at the rest now..

👏🏽 Looks great, thanks!

parameters.VaultKubernetesMountPath = params["vaultKubernetesMountPath"]
k8sMountPath, k8sSet := params["vaultKubernetesMountPath"]
authMountPath, authSet := params["vaultAuthMountPath"]
switch {

Choose a reason for hiding this comment

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

I've never seen this pattern of using switch statements this way in golang before, really cool!

Copy link

@kschoche kschoche left a comment

Choose a reason for hiding this comment

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

🤝

@tomhjp
Copy link
Contributor Author

tomhjp commented Apr 28, 2023

Thanks!

@tomhjp tomhjp merged commit 799b467 into main Apr 28, 2023
@tomhjp tomhjp deleted the support-jwt-auth branch April 28, 2023 09:17
@tomhjp tomhjp mentioned this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants