Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add initial AuthzQuerier implementation#5919

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
johnstcn merged 384 commits intomainfromauthzquerier_layer
Feb 14, 2023
Merged

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedJan 30, 2023
edited
Loading

What this does

This adds the initial AuthzQuerier implementation as an experiment. It has negative latency impacts to the api at this point, but it is correct* (bugs not withstanding).

The goal of this PR is to push a working implementation.

Testing

Prior to this PR we usedAuthorizeAllEndpoints as our rbac assertions. This was weak (see#5204). There is a similar unit test inauthzquery that asserts all interface methods have been tested with the proper rbac checks:

func (s*MethodTestSuite)TearDownSuite() {
It solves the problems brought up in that issue.

So we can remove these testsin a future PR:

Fixes#5204

Future Work

In no particular order

  • Implement authz call caching (optimization)
    • Then load testing
  • Optimize certain routes (job cancel)
  • Use joins to make more tables first class rbac objects (dependant on certain tooling changes)
  • Refactor AuthzStore to not be 1:1 withdb.Store. Make a new interface for it.
  • Fully implement scoped system roles
  • // TODO: This feels incorrect as we are really returning a list of orgmembers.
    // This return type should be refactored to return a list of orgmembers, not this
    // special type.

Optimizations

@johnstcnjohnstcn changed the titlechore: Add initial AuthzQuerier implementation[WIP] chore: Add initial AuthzQuerier implementationJan 30, 2023
Emyrkand others added22 commitsFebruary 10, 2023 12:06
@johnstcnjohnstcn merged commit6fb8aff intomainFeb 14, 2023
@johnstcnjohnstcn deleted the authzquerier_layer branchFebruary 14, 2023 14:27
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 14, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn left review comments

@spikecurtisspikecurtisspikecurtis left review comments

@kylecarbskylecarbskylecarbs approved these changes

Assignees

@johnstcnjohnstcn

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Improve RBAC comprehensive testing
4 participants
@Emyrk@johnstcn@spikecurtis@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp