kubeflow / pipelines

Machine Learning Pipelines for Kubeflow
https://www.kubeflow.org/docs/components/pipelines/
Apache License 2.0
3.53k stars 1.59k forks source link

How to fetch Kubeflow login username and password inside KFP components? #4948

Closed ShilpaGopal closed 4 months ago

ShilpaGopal commented 3 years ago

Question:

Is there a way to fetch login username and password inside KFP components? E.g: Pod name can be fetched as {{pod.name}} (Available variable reference https://github.com/argoproj/argo/blob/master/docs/variables.md )

TLDR;

Kubeflow is deployed on an on-prem cluster with Keycloak integration. We have a datastore which is integrated with Keycloak as well. KF pipeline components need to fetch data from datastore with Kubeflow login username and password. Is there a variable which is exposed to container using which Kubeflow login username/email and password can be read?

KFP SDK version:1.1.0

munagekar commented 3 years ago

Kubeflow Pipelines does not have any support for passing credentials.

Credentials can be passed using Kubernetes Secrets. The following snippets show how to add a secret to a Kubeflow Container Op.

https://github.com/kubeflow/pipelines/blob/7540ba5c3bf003758a5c2f46ccc586a0367c4dee/sdk/python/kfp/gcp.py#L37-L69

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

prasadkyp7 commented 2 years ago

Is there any update on how to pass kubeflow login credentials using kfp client or a rest api to trigger the pipelines

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

rimolive commented 4 months ago

Closing this issue. The provided solution is the only and safest way to pass sensitive data.

/close

google-oss-prow[bot] commented 4 months ago

@rimolive: Closing this issue.

In response to [this](https://github.com/kubeflow/pipelines/issues/4948#issuecomment-1996166508): >Closing this issue. The provided solution is the only and safest way to pass sensitive data. > >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.