Hi, I’m following along with today’s Ziti TV episode which starts with setting up a local Ziti network with Docker Compose. I got everything up and have run the commands to create the identities and services and policies.
I know you stopped troubleshooting the roles and switched to allow #all but I want to see if I can get it working with the specific roles so I can really understand how roles work.
I read over this article about policies but I’m still not seeing why policy advisor has ERROR.
ubuntu@ubuntu-vbox:~/ziti$ ./ziti edge policy-advisor identities --quiet
ERROR: client 
  - Identity does not have access to any services. Adjust service policies.
ERROR: Default Admin 
  - Identity does not have access to any services. Adjust service policies.
ERROR: ziti-edge-router 
  - Identity does not have access to any services. Adjust service policies.
ERROR: zdew-client 
  - Identity does not have access to any services. Adjust service policies.
ERROR: demo-server 
  - Identity does not have access to any services. Adjust service policies.
ubuntu@ubuntu-vbox:~/ziti$ ./ziti edge policy-advisor services --quiet
ERROR: demo-service 
  - Service is not accessible by any identities. Adjust service policies.
ubuntu@ubuntu-vbox:~/ziti$ ./ziti edge list identities
id: DYTIAeihJ9    name: client    type: Device    role attributes: ["clients"]
id: P6K.cJwQD    name: Default Admin    type: User    role attributes: {}
id: fZNjAMihJ9    name: ziti-edge-router    type: Router    role attributes: {}
id: id.g1esjJ9    name: zdew-client    type: Device    role attributes: ["clients"]
id: woYI1eijU9    name: demo-server    type: Device    role attributes: ["servers"]
results: 1-5 of 5
ubuntu@ubuntu-vbox:~/ziti$ ./ziti edge list service-policies
id: .nf3AesjU    name: service-bind-policy    type: Bind    service roles: [#services]    identity roles: [#servers] posture check roles: []
id: XG4-1MshJ9    name: service-dial-policy    type: Dial    service roles: [#services]    identity roles: [#clients] posture check roles: []
results: 1-2 of 2
I understand that there are two identity roles: #clients, #servers that grant Dial and Bind permission respectively on service role #services. There’s only one router role: #public-edge-routers  and that’s used to configure the identity edge (ERP) for #clients and the service edge (SERP) for #services.
ubuntu@ubuntu-vbox:~/ziti$ ./ziti edge list service-policies
id: .nf3AesjU    name: service-bind-policy    type: Bind    service roles: [#services]    identity roles: [#servers] posture check roles: []
id: XG4-1MshJ9    name: service-dial-policy    type: Dial    service roles: [#services]    identity roles: [#clients] posture check roles: []
results: 1-2 of 2
ubuntu@ubuntu-vbox:~/ziti$ ./ziti edge list edge-router-policies
id: DKqe1MijU9    name: public-client-router-policy    edge router roles: [#public-edge-routers]    identity roles: [#clients]
id: fZNjAMihJ9    name: edge-router-fZNjAMihJ9-system    edge router roles: [@ziti-edge-router]    identity roles: [@ziti-edge-router]
results: 1-2 of 2
ubuntu@ubuntu-vbox:~/ziti$ ./ziti edge list service-edge-router-policies
id: eFLA1eijJ9    name: public-service-router-policy    edge router roles: [#public-edge-routers]    service roles: [#services]
results: 1-1 of 1
ubuntu@ubuntu-vbox:~/ziti$ ./ziti edge list edge-routers
id: fZNjAMihJ9    name: ziti-edge-router    isOnline: true    role attributes: ["public-edge-routers"]
