-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transfer registry path via gRPC metadata #1366
Transfer registry path via gRPC metadata #1366
Conversation
86de6da
to
dad1c4d
Compare
@NikitaSkrynnik Could you rebase this one? |
f6e17cf
to
6c48ca3
Compare
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the remaining comments and they can be merged.
@glazychev-art Do you have any other comments?
) | ||
|
||
type updatePathNSEServer struct { | ||
name string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name string |
return nil, err | ||
} | ||
|
||
name := s.name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name := s.name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NikitaSkrynnik Apply this for other similar places
if spiffeID, idErr := spire.SpiffeIDFromContext(ctx); idErr == nil { | ||
name = spiffeID.Path() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if spiffeID, idErr := spire.SpiffeIDFromContext(ctx); idErr == nil { | |
name = spiffeID.Path() | |
} | |
if spiffeID, err := spire.SpiffeIDFromContext(ctx); err == nil { | |
return err | |
} |
@NikitaSkrynnik Lets merge this and consider the remaining comments in the separate PR. |
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1366 Commit: a64652c Author: Nikita Skrynnik Date: 2022-11-29 21:36:13 +1100 Message: - Transfer registry path via gRPC metadata (#1366) * add updatepath chain elements for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add nse_test for registry updatepath Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath tests for nse_server Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatetoken chain element for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * clone tests for all updatetoken and updatepath chain elements Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add updatepath and updatetoken to all registries in sdk Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add path_segment and index fields to opa policy input struct Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * debugging Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix authorize ns_server_test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix networkservice updatetoken TestChain Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add error check in updatepath chain element + fix some linter errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID check + add test for policy and authorize registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add policy for spiffeID checking to authorize for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * start adding sandbox test for registry authorize Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add grpcmetadata chain element and unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add map to grpcmetadata + update api refs + fix some errors Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * change authorize map name Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix opa unit tests + fix authorize unit tests + cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * finish all registry updatepath tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add tests for updatepath server + fix refresh bug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix a lot of unit tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix some linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix all linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix datarace in sandbox tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix dns test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add registry authorization client to nsmgr-proxy, proxydns and registry-memory Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove degub logs Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix tests Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout for test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issues Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata unit test Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix grpcmetadata tests + fix a bug in updatepath ns_client Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * cleanup Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * increase timeout for debug Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * reduce timeout Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * add Path data structure for registry Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * remove replace for api Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * rerun CI Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * apply review comments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in opainput.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * go mod tidy Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * revert changes in nsmgr/server.go Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * use spiffeid as name for path segments Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * fix linter issue Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> * Simpilfy Path.Clone method Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Description
The main idea: We add Path for registry to check it in Registry Authorization chain elements. The logic of path is the same as in networkservice.
Added chain elements:
path_ids
field inNetworkService
andNetworkServiceEndpoint
messages.Other changes:
path_ids
of NS and NSE messages.Issue link
#1367
How Has This Been Tested?
Types of changes