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

fix: enable write-only users to pass auth checks in the V1 API #19945

Merged
merged 3 commits into from
Nov 9, 2020

Conversation

danxmoran
Copy link
Contributor

@danxmoran danxmoran commented Nov 9, 2020

Closes #19944

Our V1 auth layer allows for write-only users, but our V1 write-path requires looking up buckets via DBRP mappings. That lookup currently performs multiple checks for bucket-read permission, causing failures.

  • CHANGELOG.md updated with a link to the PR (not the Issue)
  • Well-formatted commit messages
  • Rebased/mergeable
  • Tests pass
  • http/swagger.yml updated (if modified Go structs or API)
  • Feature flagged (if modified API)
  • Documentation updated or issue created (provide link to issue/pr)
  • Signed CLA (if not already signed)

@danxmoran
Copy link
Contributor Author

I manually tested this along with a hacky fix for #19949. Am open to suggestions for automated tests, the change to launcher makes me worry.

Copy link
Contributor

@stuartcarnie stuartcarnie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. One nit is a change to the doc comment of the function.

authorizer/authorize_find.go Show resolved Hide resolved
@danxmoran danxmoran requested review from stuartcarnie and removed request for benbjohnson November 9, 2020 22:04
Copy link
Contributor

@stuartcarnie stuartcarnie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

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

Successfully merging this pull request may close these issues.

Creating new DBRP mappings requires read-access to underlying bucket
2 participants