Skip to content

feat(coder): add authz_querier experiment #5858

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

Merged
merged 6 commits into from
Jan 25, 2023
Merged

Conversation

johnstcn
Copy link
Member

Right now it does nothing except panic when you enable it.
You shouldn't enable it unless you want coder to panic.
More stuff coming soon, promise.

@johnstcn johnstcn requested a review from Emyrk January 25, 2023 17:32
@johnstcn johnstcn self-assigned this Jan 25, 2023
if strings.Contains(os.Getenv("CODER_EXPERIMENTS_TEST"), "authz_querier") {
panic("Coming soon!")
if options.Authorizer != nil {
options.Authorizer = &RecordingAuthorizer{}
Copy link
Member

Choose a reason for hiding this comment

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

The original authorizer is needed for some routes like app execution, but we can figure that out in authzquerier branch.

Comment on lines +2442 to +2455
## codersdk.Experiment

```json
"authz_querier"
```

### Properties

#### Enumerated Values

| Value |
| --------------- |
| `authz_querier` |

Copy link
Member

Choose a reason for hiding this comment

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

This is cool. Would be cool if there was a description too. A problem for another PR

@johnstcn johnstcn merged commit 8735f51 into main Jan 25, 2023
@johnstcn johnstcn deleted the cj/authz_querier_plumbing branch January 25, 2023 21:35
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants