I am working through the differences between
- addressable identity
- addressable end point
And.. thought to ask for guidance on the differences.. and what considerations you need to make when deciding which approach to take..
This all came about when I compared the config of the zitified ssh example with the golaong simple client example.
let me know if you have any tips
For instance, with the zitified ssh example, you address the identity.. as opposed to an intercept.. and dial the service..
zssh opc@ssh.server.id -d -s zssh-service -c zssh.json -i private.key
I understand that this is possible through the setting of {"bindUsingEdgeIdentity":true}}' in the config settings below
though I am not really sure what is happening here for this specific situation
..
ziti edge create config zssh-server-host.v1 host.v1 '{"protocol":"tcp", "address":"localhost","port":22, "listenOptions": {"bindUsingEdgeIdentity":true}}'
ziti edge create service zssh-service --configs zssh-server-host.v1
ziti edge create service-policy zssh-service-binding Bind --service-roles '@zssh-service' --identity-roles '@ssh.server.id'
ziti edge create service-policy zssh-service-dialing Dial --service-roles '@zssh-service' --identity-roles '@ssh.client.id'
..
My confusion happens when I compare this setup to the golang simple-client example. In this case you don't address the identity.. rather its an intercept that is linked to the service.
so when you dial the service.. its going to look for the intercept.. not an addressable identity
go run simple-client.go $HOME/golang.http.client.json golanghttp
...
ziti edge create config golanghttp-intercept.v1 intercept.v1 '{"protocols":["tcp"],"addresses":["golanghttp.zitified"], "portRanges":[{"low":1234, "high":2345}]}'
ziti edge create service golanghttp --configs 'golanghttp-intercept.v1'
ziti edge create service-policy golanghttp-bind-policy Bind --identity-roles '@golang.http.server' --service-roles '@golanghttp'
ziti edge create service-policy golanghttp-dial-policy Dial --identity-roles '#http-clients' --service-roles '@golanghttp'