-
Notifications
You must be signed in to change notification settings - Fork 707
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
v2 Consider adding allow-list behaviour to auth interceptor #345
Comments
We actually wrote a very simple mixin that you embed in a server the auth interceptor will ignore it -- this is most useful for the healthcheck service: https://pkg.go.dev/github.com/authzed/grpcutil#IgnoreAuthMixin |
There's also two interceptor packages relating to selectively enabling other interceptors: So possible interface could something like one of the following:
This could also be an argument to adjust the interfaces of the |
Great point. I am then considering closing this issue as it's doable with selector and skip... Question is, is this interface nice and if not, can we improve it before v2? |
Actually you just mentioned improvements ideas...
So 2? |
Still, not sure if I like the selector types (match, not) etc. It gets pretty complex pretty soon and requires a lot of maintenance. I think I would stick to func (context.Context, interceptor.CallMeta) bool "selector". We can consume ...Selector so we can add explicit, simpler selection when needed.
I would also propose removing Auth |
done in #543 |
AC:
Pulled from #275 for visibility.
Blocker for v2.
The text was updated successfully, but these errors were encountered: