Secure Service Communication with Consul Service Mesh and Envoy Flashcards
In addition to securing your services, Consul service mesh can also intercept_and surface it to _.
data about service-to-service communications
monitoring tools
What is the sidecar pattern?
Is when you build all the peripheral tasks aside your application. So this can be maintained separately and connect to the application.
Intentions define _ in the service mesh and are used to _. The default intention behavior is defined by thedefault ACL policy.
access control for services
control which services may establish connections
Create a intention between dashboard and counting
consul intention create dashboard counting
Start the built-in sidecar proxy for the counting service.
consul connect proxy -sidecar-for counting-1 > counting-proxy.log &
Start the built-in sidecar proxy for the dashboard service.
consul connect proxy -sidecar-for dashboard > dashboard-proxy.log &
First, deny theDashboardservice access to theCountingservice.
consul intention create -deny -replace dashboard counting
restore communication between the services
consul intention create -allow -replace dashboard counting
Delete the intention from Consul.
consul intention delete dashboard counting
Deregister the counting service.
consul services deregister counting.hcl
Deregister the dashboard service.
consul services deregister dashboard.hcl