Skip to content

Commit

Permalink
apply review comments
Browse files Browse the repository at this point in the history
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
  • Loading branch information
denis-tingaikin committed Aug 18, 2021
1 parent 924df64 commit 919f3b9
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/networkservice/chains/endpoint/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ func NewServer(ctx context.Context, tokenGenerator token.GeneratorFunc, options
rv.NetworkServiceServer = chain.NewNamedNetworkServiceServer(
opts.name,
append([]networkservice.NetworkServiceServer{
serialize.NewServer(),
updatepath.NewServer(opts.name),
serialize.NewServer(),
updatetoken.NewServer(tokenGenerator),
opts.authorizeServer,
// `timeout` uses ctx as a context for the timeout Close and it closes only the subsequent chain, so
Expand Down
10 changes: 5 additions & 5 deletions pkg/tools/opa/policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ package opa

import _ "embed"

//go:embed policies/tokens_valid.opa
//go:embed policies/tokens_valid.rego
var tokensValidPolicySource string

//go:embed policies/prev_token_signed.opa
//go:embed policies/prev_token_signed.rego
var prevTokenSignedPolicySource string

//go:embed policies/curr_token_signed.opa
//go:embed policies/curr_token_signed.rego
var currTokenSignedPolicySource string

//go:embed policies/tokens_chained.opa
//go:embed policies/tokens_chained.rego
var tokensChainedPolicySource string

//go:embed policies/tokens_expired.opa
//go:embed policies/tokens_expired.rego
var tokensExpiredPolicySource string

// WithTokensValidPolicy returns default policy for checking that all tokens in the path can be decoded.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 919f3b9

Please sign in to comment.