Skip to content

Commit

Permalink
Merge pull request #374 from NikitaSkrynnik/opa-registry
Browse files Browse the repository at this point in the history
Add opa policy chain elements
  • Loading branch information
denis-tingaikin authored Sep 19, 2022
2 parents 5abaf33 + c56234a commit 9380154
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/imports/imports_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (

"github.com/edwarnicke/grpcfd"

"github.com/networkservicemesh/sdk/pkg/registry/common/authorize"
"github.com/networkservicemesh/sdk/pkg/tools/opentelemetry"
"github.com/networkservicemesh/sdk/pkg/tools/token"
"github.com/networkservicemesh/sdk/pkg/tools/tracing"
Expand Down Expand Up @@ -171,6 +172,8 @@ func main() {
nsmgrproxy.WithListenOn(listenURL),
nsmgrproxy.WithDialOptions(dialOptions...),
nsmgrproxy.WithMapIPFilePath(config.MapIPFilePath),
nsmgrproxy.WithAuthorizeNSERegistryServer(authorize.NewNetworkServiceEndpointRegistryServer()),
nsmgrproxy.WithAuthorizeNSRegistryServer(authorize.NewNetworkServiceRegistryServer()),
).Register(server)

for i := 0; i < len(config.ListenOn); i++ {
Expand Down

0 comments on commit 9380154

Please sign in to comment.