Oh man… I am SOOOO CLOSE here to eliminating some redundant services with OpenZiti. This is pretty exciting.
So, I have this service (lovingly cultivated by this awesome community), it currently accommodates identities named *.jptech.ziti
. The challenge here is my identities are all named as a FQDN… which I don’t need, visually. I will also add more tenants, so new devices like *.ase.ziti
and *.afk.ziti
.
So allow me these questions, three.
- What’s the shortest (least typing) FQDN I can put in here? Can I do
*.jptech
and*.afk
? And if I were to unwittingly duplicate a known TLD, what will happen? - Does the FQDN need to be
host.domain
or can it bedomain.host
for better visibility/sorting in the UI (and other interfaces that I can’t just grep)? I am not looking for technically possible but technically advisable. - What modifications to my service do I need to make, other than changing
"addresses": ["*.jptech.ziti"]
to"addresses": ["*.jptech.ziti", *.afk.ziti]
.
Here are my current service, policies, configs, and sample identities.
```bash
ziti edge create edge-router-policy all --edge-router-roles '#all' --identity-roles '#all'
ziti edge create service-edge-router-policy all --service-roles '#all' --edge-router-roles '#all'
ziti edge create config jptech.ssh.cfg.intercept intercept.v1 '{
"addresses": ["*.jptech.ziti"],
"protocols": ["tcp"],
"portRanges": [ {"low":22,"high":22} ],
"dialOptions": { "identity": "$dst_hostname" }
}'
ziti edge create config jptech.ssh.cfg.host host.v1 '{
"address": "127.0.0.1",
"protocol": "tcp",
"port": 22,
"listenOptions": { "identity": "$tunneler_id.name" }
}'
ziti edge create service jptech.ssh \
--configs jptech.ssh.cfg.intercept,jptech.ssh.cfg.host \
--role-attributes jptech.admin,jptech.ssh
ziti edge create service-policy jptech.ssh.dial Dial --identity-roles "#jptech.admin" --service-roles "@jptech.ssh"
ziti edge create service-policy jptech.ssh.bind Bind --identity-roles "#jptech.ssh" --service-roles "@jptech.ssh"
```
```bash
ziti edge create identity device admin.jptech.ziti --role-attributes jptech.admin -o admin.jptech.ziti.jwt
ziti edge create identity device linux.jptech.ziti --role-attributes jptech.ssh -o linux.jptech.ziti.jwt
```