API token for zeronsd #155
Unanswered
whitestrake
asked this question in
Q&A
Replies: 1 comment
-
Hello, @whitestrake! I still have no experience with running zeronsd with ZeroUI. We have to dig into zeronsd source code to find the issue. I've made some research a long time ago on the authorization with ZeroTier clients (zeronsd, windows client node auth control) and ZeroTier Central server, they don't always follow the bearer authentication token standard correctly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Howdy! I'm having trouble with the Zero-UI central API token and feeding that to zeronsd.
Relevant:
So, I've been mucking around getting zeronsd up and running lately; there's very little info on getting this working on self-hosted with something like Zero-UI in front. I have the following compose services:
With the exception of zeronsd (mucking around recently), Zerotier and Zero-UI have been serving me exceptionally well for quite some time and I have a decent collection of nodes using it.
Although I've worked out a number of kinks getting the exact things zeronsd seems to require in place, I've hit a snag:
In the above logs, we can see a successful request to
/app/network/[my network]
and then/api/network/[my network]
with 200 responses; a logged-on access via the web UI that appears to have authenticated just fine.At the end, though, there is a 401 for the same URI. This occurs whenever I attempt to compose up zeronsd; on the zeronsd side, I get:
This makes me think the API token I've provided is wrong. I got it from
grep -A2 whitestrake conf/zerotier/ui/db.json
and copied the"token": "[snip]"
field out, and I've provided it both via environmental variable AND volume mounting into the container with the zeronsd-t
flag, as documented over on their repo.Am I getting the API token I need, supposedly, from the correct location? Or is there somewhere else I should be looking? Or might this be a zeronsd issue (or a dumb operator issue) instead of a Zero-UI issue?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions