Implements the frontend logic for gNSI Authz#508
Implements the frontend logic for gNSI Authz#508kanchanavelusamy wants to merge 1 commit intosonic-net:masterfrom
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ae4161e to
d519d1a
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
d519d1a to
8a7d56f
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
8a7d56f to
5e3a66b
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
5e3a66b to
9944637
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
9944637 to
a52ca5d
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
a52ca5d to
f8ca017
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
f8ca017 to
a3034e2
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
a3034e2 to
49328d3
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
49328d3 to
50b8f7c
Compare
|
/azp run |
|
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
a4ac788 to
f8636d8
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
f8636d8 to
8ac5603
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
8ac5603 to
1a8eddf
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1a8eddf to
ed64d07
Compare
|
/azp run |
|
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
ed64d07 to
a25b598
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
a25b598 to
60e080d
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@ndas7: Due to the transformer code (#183, #184) not yet being merged into the master, the Azure build is failing, and we are unable to get code coverage reports through Azure. cc: @kishanps |
This PR introduces the new YANG models for gNSI Authz, Certz, Pathz and Credentialz. And, updates the list to include the new models. **Dependency Chain for Merge** Please follow this merge order, 1. Current PR: sonic-mgmt-common #[183 ](sonic-net#183 be merged first) 2. Incremental PR: sonic-mgmt-common #[184](sonic-net#184) 3. Frontend: sonic-gnmi #[508](sonic-net/sonic-gnmi#508)
This PR introduces the new YANG models for gNSI Authz, Certz, Pathz and Credentialz. And, updates the list to include the new models. **Dependency Chain for Merge** Please follow this merge order, 1. Current PR: sonic-mgmt-common #[183 ](#183 be merged first) 2. Incremental PR: sonic-mgmt-common #[184](#184) 3. Frontend: sonic-gnmi #[508](sonic-net/sonic-gnmi#508)
| import ( | ||
| "bytes" | ||
| "context" | ||
| "encoding/json" |
There was a problem hiding this comment.
Order according to https://google.github.io/styleguide/go/decisions.html#import-grouping
| import ( | ||
| "fmt" | ||
| "github.com/Azure/sonic-mgmt-common/translib/db" | ||
| "github.com/go-redis/redis/v7" |
There was a problem hiding this comment.
This commit enables support for policy-based authorization of gRPC requests in gNMI server and handles the Authz Rotate() RPC for secure policy updates.
Dependency Chain for Merge
Please follow this merge order,
gNSI Authz - UT Results
=== RUN TestGnsiAuthzRotation
=== RUN TestGnsiAuthzRotation/RotateOpenClose
=== RUN TestGnsiAuthzRotation/RotatePolicyEmptyRequest
=== RUN TestGnsiAuthzRotation/RotatePolicyEmptyUploadRequest
=== RUN TestGnsiAuthzRotation/RotatePolicyWrongJSON
=== RUN TestGnsiAuthzRotation/RotatePolicyNoVersion
=== RUN TestGnsiAuthzRotation/RotatePolicySuccess
=== RUN TestGnsiAuthzRotation/RotatePolicyNoFinalize
=== RUN TestGnsiAuthzRotation/RotateTheSamePolicyTwice
=== RUN TestGnsiAuthzRotation/RotateTheSamePolicyTwiceWithForceOverwrite
=== RUN TestGnsiAuthzRotation/ParallelRotationCalls
--- PASS: TestGnsiAuthzRotation (4.55s)
--- PASS: TestGnsiAuthzRotation/RotateOpenClose (0.04s)
--- PASS: TestGnsiAuthzRotation/RotatePolicyEmptyRequest (0.03s)
--- PASS: TestGnsiAuthzRotation/RotatePolicyEmptyUploadRequest (0.03s)
--- PASS: TestGnsiAuthzRotation/RotatePolicyWrongJSON (0.03s)
--- PASS: TestGnsiAuthzRotation/RotatePolicyNoVersion (0.03s)
--- PASS: TestGnsiAuthzRotation/RotatePolicySuccess (0.03s)
--- PASS: TestGnsiAuthzRotation/RotatePolicyNoFinalize (0.03s)
--- PASS: TestGnsiAuthzRotation/RotateTheSamePolicyTwice (0.05s)
--- PASS: TestGnsiAuthzRotation/RotateTheSamePolicyTwiceWithForceOverwrite (0.05s)
--- PASS: TestGnsiAuthzRotation/ParallelRotationCalls (0.05s)
Why I did it
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)