influxdata / influxdata/ui

Initial user token has DB-wide access, but only appears under 1st org in the UI

Open
#405 0 comments 0 reactions 0 assignees View on GitHub
team/ui
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

**Steps to reproduce:**
List the minimal actions needed to reproduce the behavior.

1. Set up a fresh OSS 2.x instance in the UI, creating a baseline `org_a` and `superuser`
![Screen Shot 2020-12-07 at 2 11 05 PM](https://user-images.githubusercontent.com/2755881/101394230-33c91c80-3896-11eb-9edb-4feecd96591b.png)
2. Create a 2nd org `org_b` in the UI
![Screen Shot 2020-12-07 at 2 11 28 PM](https://user-images.githubusercontent.com/2755881/101394252-3b88c100-3896-11eb-8135-d0918e1a411c.png)
3. Navigate to `Data` -> `Tokens` under `org_a`
![Screen Shot 2020-12-07 at 2 11 44 PM](https://user-images.githubusercontent.com/2755881/101394267-40e60b80-3896-11eb-821b-9d431e955787.png)
4. Navigate to `Data` -> `Tokens` under `org_b` (and refresh the page, see #406)
![Screen Shot 2020-12-07 at 2 11 58 PM](https://user-images.githubusercontent.com/2755881/101394287-45122900-3896-11eb-9045-82fbaecc64df.png)

**Expected behavior:**
Either:
* `superuser`'s token appears under both `org_a` and `org_b`, because it has all-access power to both
* `superuser`'s token appears under neither `org_a` nor `org_b`, because it's a special type of token created via the onboarding process

**Actual behavior:**
`superuser`'s token appears under `org_a`, but not `org_b`. This mismatch led a user to believe cross-org auth was broken when they were able to use a token from `org_a` to write data into a bucket under `org_b` (see influxdata/idpe#9372)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.