You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, for a controller, if it wants to connect to the daemons, it need to join the tailnet first which requires an authkey, you need to run something like:
broker = os.environ["SANDD_KEYBROKER_URL"].rstrip("/")
req = urllib.request.Request(f"{broker}/keys?kind=controller", method="POST")
with urllib.request.urlopen(req, timeout=10) as resp:
authkey = json.load(resp)["key"]
print("controller: minted key, joining mesh", flush=True)
server = Server(connect="tunnel", tunnel_config=TunnelConfig(
authkey=authkey, server=os.environ["SANDD_TUNNEL_SERVER"]))
print("controller: ready, waiting for daemons", flush=True)
Let's make them part of the python sdk, it would be easier then. You need to set the envs like:
Activity
kerthcet commentedon Aug 6, 2026
/assign