microsoft / microsoft/pai

Can't redirect to k8s dashboard management page

Open
#5,779 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
2.7k
Forks
554
Avg merge
20h 42m
Merged PRs (30d)
14

Description

Organization Name: SHAIIC

Short summary about the issue/question: After inputting the token, the K8S dashboard still can't redirect to the management page.

Brief what process you are following:

  1. I login the master node by SSH, and use this script to get the token
root@master# sudo su && kubectl -n kube-system get secret $(kubectl -n kube-system get sa/kubernetes-dashboard-openpai -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}" && echo ""
eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJrdWJlLXN5c3RlbSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJrdWJlcm5ldGVzLWRhc2hib2FyZC1vcGVucGFpLXRva2VuLTlxcWMyIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQubmFtZSI6Imt1YmVybmV0ZXMtZGFzaGJvYXJkLW9wZW5wYWkiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiI4Mzg4YmUyNS0xN2NlLTQyYjgtYjhjNi1hYjIzNjg2YTc1ZmEiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6a3ViZS1zeXN0ZW06a3ViZXJuZXRlcy1kYXNoYm9hcmQtb3BlbnBhaSJ9.D07dBeHXx9QvjnLyTQvBJuho9nWalfini-Z_NxnC2uDFaGPJxalrxXiP7CP96BzyljjofK7YJL8YZoLlpGYI6YxCsStE38mxNrpyaGkOh97f7QSfIRxEw7HcYGEnKZfEIWeC2fR1FifWJ-aW5zYCuNsGFKRpT99EU-h-Zcgwd7dwGMDKUSFfGJt7lmziKv6dRdT1-CPGsu25tDsDGSgenJJVHd0v6-SUGBMpoJig3rEIOEob7ZuIuH6r7eKzQpVt9uI6rDMXk4jblos-EUTiFtLDQWFTBD9ctkTCniBVxdEEkyY5_dbpinO3WiFOuJs2hs_VcanNKo-Lf46DiSCB9A
  1. then I input this token to my PAI k8s dashboard login view:

image

  1. I click "login" button, but nothing happen; I tried to use an incorrect token, it showed the massage:

image

  • OpenPAI version: v1.8.0
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release): Ubuntu 18.04.6 LTS
  • Kernel (e.g. uname -a): Linux openpai-v18-master 5.4.0-1078-azure 81~18.04.1-Ubuntu SMP Mon Apr 25 23:16:13 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Hardware (e.g. core number, memory size, storage size, GPU type etc.): Azure VM Standard_D4s_v3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the login flow in the K8S dashboard login view on OpenPAI v1.8.0 using the documented kubectl token command, then inspect the browser behavior when Login is clicked. Compare this with the incorrect-token response; done means valid tokens redirect to the management page while invalid tokens still show an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes
Domain
frontend, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.