mirror of
https://github.com/hanzozt/zt.git
synced 2026-11-02 11:38:22 +00:00
1.0 KiB
1.0 KiB
Purpose
This script sets up the SDK client side for an echo service
Prerequisites
You need at least one controller and an edge router running. for this to work. You can use the quick-start script found here.
Setup
Ensure we're logged into the controller
ziti edge login
Remove any entities from previous runs
ziti edge delete identities zcat
ziti edge delete service-policies echo-dial
Create and enroll the client app identity
ziti edge create identity zcat -a echo,echo-client -o zcat.jwt
ziti edge enroll --rm zcat.jwt
Configure a dial policy
ziti edge create service-policy echo-dial Dial --service-roles #echo --identity-roles #echo-client
Summary
After you've configured the service side, you should now be to run the zcat client using
ziti demo zcat -i zcat.json ziti:echo