Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating new DBRP mappings requires read-access to underlying bucket #19944

Closed
danxmoran opened this issue Nov 9, 2020 · 0 comments · Fixed by #19945
Closed

Creating new DBRP mappings requires read-access to underlying bucket #19944

danxmoran opened this issue Nov 9, 2020 · 0 comments · Fixed by #19945
Assignees
Labels

Comments

@danxmoran
Copy link
Contributor

danxmoran commented Nov 9, 2020

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

  1. Create a new bucket using influx setup
  2. Create a v1 auth token using influx v1 auth create, granting the user write (not read) permission on the bucket
  3. Attempt to write data into your new bucket using the v1 auth token and v1 API

Expected behavior:
The write should succeed.

Actual behavior:
The write fails with a "read:orgs/xxx/buckets/yyy is unauthorized" error.

I stepped through the code in a debugger. The problem is that the logic in the DBRP service calls FindBucketByID before creating a new mapping, and the find-related methods check read-access.

Idea: tweak the find-related methods to check read OR write access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant