-
Notifications
You must be signed in to change notification settings - Fork 888
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
Conversation
coderd/coderdtest/coderdtest.go
Outdated
if strings.Contains(os.Getenv("CODER_EXPERIMENTS_TEST"), "authz_querier") { | ||
panic("Coming soon!") | ||
if options.Authorizer != nil { | ||
options.Authorizer = &RecordingAuthorizer{} |
There was a problem hiding this comment.
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.
## codersdk.Experiment | ||
|
||
```json | ||
"authz_querier" | ||
``` | ||
|
||
### Properties | ||
|
||
#### Enumerated Values | ||
|
||
| Value | | ||
| --------------- | | ||
| `authz_querier` | | ||
|
There was a problem hiding this comment.
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
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.