Hey friends - I wanted to ask this question to see if this idea would be possible but also as a way to archive it for later as these ideas keep distracting me from my current openziti POC
End goal: I can share an http link with someone to access a resource in my ziti network which only they could use (or the link can be used once) and will eventually expire. The user shouldn't need to install or configure any extra software (i.e. not tunneler client).
Rough impl:
The user clicks a link
A "guest" identity is generated with some TTL
A token is stored on the client
All calls to the resource are proxied via another host that can tunnel the traffic using the user's provided identity token
Is this possible? Am I violating some fundamental principle here by introducing a hop before tunneling traffic? Is there a better way to achieve the end goal?
This sounds really close to what zrok does. It's not single use and it doesn't expire, but much of the idea sounds like it overlaps to me.
Have you had a look at zrok yet? It's used OpenZiti for secure connectivity and the shares are ephemeral if you want. They only last as long as the zrok share is active.
It sounds like it'll cover a lot of what you're looking for?
hey @TheLumberjack - here I am 2 years later with an update
I ended up implementing this and it has been my primary method of exposing services externally. It has 2 main features:
http resources - generate a random string URL mapped to a ziti service with an optional expiry and optional exclusivity claim, you can also define a list of custom aliases as well.
ssh resources - configure aliases for wss connections to a ziti service for ssh connections using websocat proxy commands
The topology is: web -> [nginx -> ziti-share (dial)] -> ziti fabric -> fun?
I've still not found the opportunity to move to ziti2 and am curious to see if solutions for some of these problems I'm solving already exist but this has been a great learning experience and I'm truly grateful to the OpenZiti maintainers. Let me know if you're curious to hear/see more of ziti-share