Repository navigation
Replies: 5 comments 4 replies
|
Hello @fokx, I faced this problem too and came to the following conclusion: The That said, the building blocks are all in place at the
So, what's missing for the self-hosted version is a simple Note that a static token would have no expiry or revocation, but for production deployments (often with token lifecycle requirements) This is my understanding; happy to be corrected if I missed something. |
|
We will take a look at this and get back to you all, thanks for bringing it up! |
|
We would welcome a PR here! |
|
@fokx would you like to take a stab at implementing this? Happy to collaborate or take it on if you prefer. |
Uh oh!
There was an error while loading. Please reload this page.
How can I use custom relays and require an API key to authenticate users?
The current doc of using a self-hosted iroh-relay is very limited:
https://docs.iroh.computer/add-a-relay
https://github.com/n0-computer/iroh/tree/main/iroh-relay
In the doc, you specify an api url and key:
However, in iroh-relay's config, the access control is based on endpoint IDs or allow everyone. The
bearer_tokenused in AccessConfig::Http method is set by config and is not equal to iroh node's API key.iroh/iroh-relay/src/main.rs
Line 187 in 107e37e
It seems self-hosted iroh-relay cannot achieve the same thing as iroh/n0's official relay servers. Am I right?
Thanks.
All reactions