diff --git a/main.go b/main.go index 13d3abe..94356bf 100644 --- a/main.go +++ b/main.go @@ -555,7 +555,12 @@ func runRPC(wg *sync.WaitGroup, ctx context.Context) { if !dev { _log.Infow("adding auth interceptor") ac := authv3.NewAuthContext(kc, ks, as) - o := authv3.Option{} + o := authv3.Option{ + ExcludeRPCMethods: []string{ + "/rafay.dev.sentry.rpc.Bootstrap/GetBootstrapAgentTemplate", + "/rafay.dev.sentry.rpc.Bootstrap/RegisterBootstrapAgent", + }, + } opts = append(opts, _grpc.UnaryInterceptor( ac.NewAuthUnaryInterceptor(o), ))