Microservice Security
To secure an endpoint for some specified roles you can use this command :
grizzly secure endpoint [-- <args>]
Arguments :
– microservice : to specify the name of the microservice – Required
– version : to specify which version of the microservice– Required
– endpointgroup : to specify the endpoint’s to secure group – Required
– path : to specify the path of the endpoint to secure – Required
– method : to specify the method of the endpoint to secure – Required
– roles : to specify the roles of who can access the endpoint – Required
Example :
grizzly secure endpoint --microservice Products --version 1.0.1 --endpointgroup Untitled --path /products --method GET --roles admin
To unsecure a specified endpoint :
grizzly unsecure endpoint [-- <args>]
Arguments :
– microservice : to specify the name of the microservice – Required
– version : to specify which version of the microservice – Required
– endpointgroup : to specify the endpoint group of the endpoint to unsecure – Required
– path : to specify the path of the endpoint to unsecure – Required
– method : to specify the method of the endpoint to unsecure – Required
Example :
grizzly unsecure endpoint --microservice Products --version 1.0.1 --endpointgroup Untitled --path /products --method GET