mirror of
https://github.com/paralus/paralus.git
synced 2026-05-08 09:27:02 +00:00
Merge pull request #90 from RafayLabs/prod-init
excluding bootstrap registration from authn
This commit is contained in:
7
main.go
7
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),
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user