()
| 151 | ) |
| 152 | |
| 153 | func requireAuthentication() selector.MatchFunc { |
| 154 | // Skip authentication on the status grpc service |
| 155 | return func(ctx context.Context, operation string) bool { |
| 156 | return !statusServiceOperationRegexp.MatchString(operation) |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | // Reflection API is called by clients like grpcurl to list services |
| 161 | // and without this selector check it would require authentication |
no outgoing calls