Skip to content

feat: browser-based KFP SDK auth#45

Merged
thesuperzapper merged 1 commit into
deployKF:mainfrom
thesuperzapper:browser-based-kfp-sdk-auth
Oct 31, 2023
Merged

feat: browser-based KFP SDK auth#45
thesuperzapper merged 1 commit into
deployKF:mainfrom
thesuperzapper:browser-based-kfp-sdk-auth

Conversation

@thesuperzapper

Copy link
Copy Markdown
Member

This PR adds support for browser-based authentication (also known as "out-of-band" OIDC login) with the Kubeflow Pipelines SDK.

This is achieved by making the following changes:

  • Adding a public OIDC client to Dex named kubeflow-pipelines-sdk
  • Using the Dex urn:ietf:wg:oauth:2.0:oob redirect URI (prompts the user to copy a code)
  • Configuring oauth2-proxy to trust requests with a bearer JWT (not only with its own cookie)

We have also added another layer of security where we can restrict HTTP paths depending on the JWT bearer aud.
For example, JWT tokens generated under the new kubeflow-pipelines-sdk OIDC client, can ONLY access the /pipelines API path, but NOT the deployKF dashboard or any other paths.

@thesuperzapper thesuperzapper added this to the v0.1.3 milestone Oct 31, 2023
@thesuperzapper
thesuperzapper merged commit ac37dcc into deployKF:main Oct 31, 2023
@thesuperzapper
thesuperzapper deleted the browser-based-kfp-sdk-auth branch October 31, 2023 04:48
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.

1 participant