Skip to content

Embedded OIDC for quickstart#368

Merged
mjudeikis merged 4 commits into
kbind-dev:mainfrom
mjudeikis:mjudeikis/embed.oidc
Nov 11, 2025
Merged

Embedded OIDC for quickstart#368
mjudeikis merged 4 commits into
kbind-dev:mainfrom
mjudeikis:mjudeikis/embed.oidc

Conversation

@mjudeikis

@mjudeikis mjudeikis commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

Summary

This PR adds an internal mock OIDC so one can use the backend without an external Dex. Tests are still using dex so we cover that testing corner
Adds kubebind dev create command to try to create "a development instance of kube-bind using two kind clusters" (preview). Will need follow-up to update released helm charts and images

kubectl bind dev create/delete will require more iteration. Currently its very quick draft so we can test with as many people as we can do fix all the edge cases (and there is a lot as every workstation is different) so dont nit pick too much :D

What Type of PR Is This?

/kind feature

Related Issue(s)

Fixes #349

Release Notes

Add embedded OIDC  --oidc-type embedded (empty is same as before - external)
Add preview command `kubectl bind dev` to create and delete local dev environment of kube-bind

@mjudeikis mjudeikis force-pushed the mjudeikis/embed.oidc branch 4 times, most recently from b19e4bc to f2b947a Compare November 7, 2025 12:39
Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt>
On-behalf-of: @SAP mangirdas.judeikis@sap.com
@mjudeikis mjudeikis force-pushed the mjudeikis/embed.oidc branch 7 times, most recently from ae5df14 to 869d363 Compare November 11, 2025 06:13
Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt>
On-behalf-of: @SAP mangirdas.judeikis@sap.com
@mjudeikis mjudeikis force-pushed the mjudeikis/embed.oidc branch from 869d363 to 1921309 Compare November 11, 2025 06:15
Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt>
On-behalf-of: @SAP mangirdas.judeikis@sap.com
@mjudeikis mjudeikis marked this pull request as ready for review November 11, 2025 06:27
@mjudeikis mjudeikis requested a review from a team as a code owner November 11, 2025 06:27
Comment thread backend/oidc/oidc.go Outdated
Comment thread backend/oidc/oidc.go Outdated
Comment thread backend/oidc/oidc.go
Comment on lines +48 to +53
cmd := exec.Command("uname")
output, err := cmd.Output()
if err != nil {
return false
}
return strings.TrimSpace(string(output)) == "Darwin"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a reason this is changed back?^^ RN it is equivalent to the windows one

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Funny thing is that short version didn't work :D And I was - compiler will optimize this either way :D

Comment thread cli/pkg/kubectl/base/kubeconfig.go Outdated
coderabbitai[bot]
coderabbitai Bot previously approved these changes Nov 11, 2025
@mjudeikis mjudeikis merged commit 667783a into kbind-dev:main Nov 11, 2025
12 checks passed
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.

Add embedded oidc

2 participants