influxdata / influxdata/influxdb

General user with read privilege gets different measurements with admin user

Open
#18,926 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Step to reproduce:

Step1: Load the attached data
Step2: Create user with read privilege on database

            create user abc with password 'abc'
            grant read on "business_monitor" to abc

Step3: Login with created user
Step4: Show measurements
image

If login with admin user or use domain sock will get different result
image

Contributor guide

Open the contributing guide

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

No source file or test is named. Start by loading the reported data and reproducing the measurement listing with a read-only user and an admin or domain-socket connection; trace the authorization and measurement-listing entry points that differ. Done means equivalent users see the same measurements when they have the same effective read privilege.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
authorization, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.