pai icon indicating copy to clipboard operation
pai copied to clipboard

[Bug report] Non-admin users can directly use links belongs to the administration page to access some administrative functions.

Open siaimes opened this issue 5 years ago • 6 comments

Organization Name: Fuzhou University.

Short summary about the issue/question: Continuing to explore issue 5203, I found that Non-admin users can directly use links belongs to the administration page to access some administrative functions.

Brief what process you are following:

  1. Log in to a non-admin account.
  2. Open any of the links: https://IP/dashboard.html, https://IP/cluster-view/hardware.html, https://IP/cluster-view/k8s.html, https://IP/user-view.html.
  3. The administration pages are opened.

How to reproduce it:

  1. Log in to a non-admin account.
  2. Open any of the links: https://IP/dashboard.html, https://IP/cluster-view/hardware.html, https://IP/cluster-view/k8s.html, https://IP/user-view.html.
  3. The administration pages are opened.

OpenPAI Environment:

  • OpenPAI version: v1.4.1
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Hardware (e.g. core number, memory size, storage size, GPU type etc.):
  • Others:

Anything else we need to know:

siaimes avatar Dec 31 '20 01:12 siaimes

image

siaimes avatar Dec 31 '20 01:12 siaimes

We use cookies to indentify admin.

Could you please clear your cookies and re-try?

hzy46 avatar Feb 04 '21 07:02 hzy46

We use cookies to indentify admin.

Could you please clear your cookies and re-try?

It is easy to reproduce this problem.

  1. clear cookies.
  2. Log in to a non-admin account.
  3. Open any of the links: https://IP/dashboard.html, https://IP/cluster-view/hardware.html, https://IP/cluster-view/k8s.html, https://IP/user-view.html.
  4. The administration pages are opened.

siaimes avatar Feb 04 '21 08:02 siaimes

Thanks for explanation. Will track this issue.

hzy46 avatar Feb 04 '21 09:02 hzy46

seems to be an issue in simple auth mode? I cannot reproduce the bug when AAD is enabled.

fanyangCS avatar Feb 04 '21 12:02 fanyangCS

seems to be an issue in simple auth mode?

Yes, you are right.

siaimes avatar Feb 05 '21 08:02 siaimes