Hello,
So i have a services called zac
and api
.
Zac is setup with host.v1 and intercept configs:
zitiEx edge create config zac.host.config host.v1 '{"protocol":"tcp", "address":"'"ziti-console"'", "port":'${ZITI_CONSOLE_PORT}'}'
zitiEx edge create config zac.int.config intercept.v1 '{"protocols":["tcp"],"addresses":["'"zac.ziti"'"], "portRanges":[{"low":'${ZITI_CONSOLE_PORT}', "high":'${ZITI_CONSOLE_PORT}'}]}'
zitiEx edge create service "zac" --configs "zac.host.config","zac.int.config"
zitiEx edge create service-policy "zac.bind" Bind --service-roles "@zac" --identity-roles "#zac.binders"
zitiEx edge create service-policy "zac.dial" Dial --service-roles "@zac" --identity-roles "#zac.dialers"
zitiEx edge update identity "ziti-edge-router" -a zac.binders
I have an identity technician
with has atribute #zac.dialers
and when he tries to open url https://zac.ziti:8443 he can connect ok.
The second service api
is using golangs sdk. It has it's own identity and zac shows that it connects to openziti.
technician has attribute #api.dial
. but it can't ping api
.
Is it mandatory to have host.v1
configs?
This tutorial does it without them: ziti/ziti/cmd/demo/tutorials/first-service.md at release-next ยท openziti/ziti ยท GitHub
Heres my terminators:
ziti@6eec14c3cc4e:/persistent$ ziti edge list terminators
โญโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฎ
โ ID โ SERVICE โ ROUTER โ BINDING โ ADDRESS โ IDENTITY โ COST โ PRECEDENCE โ DYNAMIC COST โ
โโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโค
โ 24SEo7U67VepCUZxDIi8k0 โ api โ ziti-edge-router โ edge โ 24SEo7U67VepCUZxDIi8k0 โ โ 0 โ default โ 0 โ
โ 4uYOOAJNMJGhJbRSe5HEhv โ zac โ ziti-edge-router โ tunnel โ 4uYOOAJNMJGhJbRSe5HEhv โ โ 0 โ default โ 0 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโฏ
ziti edge policy-advisor services api
:
OKAY : api (1) -> api (1) Common Routers: (1/1) Dial: N Bind: Y
OKAY : technician (1) -> api (1) Common Routers: (1/1) Dial: Y Bind: N
OKAY : ziti-edge-router (1) -> api (1) Common Routers: (1/1) Dial: N Bind: Y
ziti edge policy-advisor identities technician
:
OKAY : technician (1) -> api (1) Common Routers: (1/1) Dial: Y Bind: N
OKAY : technician (1) -> zac (1) Common Routers: (1/1) Dial: Y Bind: N
Another very weird thing, is when i add tag #api.dial
to technician. His Desktop edge app breaks. it doesnt show identities or services anymore.
EDIT: The echo examples work. SDK -> SDK works without configs, but is it possible to have SDK webserver without configs?