Skip to content

Keycloak on Kubeflow: User identity is empty in the request header #3435

@gioargyr

Description

@gioargyr

Validation Checklist

  • I confirm that this is a Kubeflow-related issue.
  • I am reporting this in the appropriate repository.
  • I have followed the Kubeflow installation guidelines.
  • The issue report is detailed and includes version numbers where applicable.
  • I have considered adding my company to the adopters page to support Kubeflow and help the community, since I expect help from the community for my issue (see 1. and 2.).
  • This issue pertains to Kubeflow development.
  • I am available to work on this issue.
  • You can join the CNCF Slack and access our meetings at the Kubeflow Community website. Our channel on the CNCF Slack is here #kubeflow-platform.

Version

1.10.2

Detailed Description

When I had Kubeflow v1.8, I used to access Kubeflow pipelines programmatically. Here is an issue where I participated by answering my question: awslabs/kubeflow-manifests#493

Since I installed Kubeflow v1.10.2 and I put Keycloak on top of it according to this guide https://github.com/kubeflow/manifests/tree/master/common/dex#kubeflow-dex--keycloak-integration-guide I managed to have Keycloak on top of Kubeflow when I log in through GUI, but I have troubles whenI try to access the pipelines programmatically.

I do -more or less- whatever I describe in this issue awslabs/kubeflow-manifests#493 , which is:

  • getting a token from Keycloak
  • Using the token in my request
    but, I always get this error: User identity is empty in the request header

I understand that instead of going directly to Kubeflow -> Keycloak -> Kubeflow, the flow is now: Kubeflow -> Dex -> Keycloak -> Kubeflow, so Dex is still in the flow.
As a result, the token I get from Keycloak has an issuer that is not included in Istio.
Please, correct me if I am wrong.

Do you have any ideas on how can I get a token from Keycloak that is approved by Istio?
And generally, can you point me to any documentation that might help me?

Kind regards,
Giorgos

Steps to Reproduce

1 Install Kubeflow v1.10.2 according to the main documentation
2. Follow this documentation https://github.com/kubeflow/manifests/tree/master/common/dex#kubeflow-dex--keycloak-integration-guide to put Keycloak in front of Kubeflow.

Screenshots or Videos (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions