Skip to content

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