Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to configure coturn with --use-auth-secret in management.json #3090

Open
chefboyrdave21 opened this issue Dec 20, 2024 · 1 comment
Open

Comments

@chefboyrdave21
Copy link

I saw in one of your issues - you stated you could configure netbird with --use-auth-secret in replace of the user/pass in the turnconfig :

"TURNConfig": {
    "TimeBasedCredentials": false,
    "CredentialsTTL": "12h0m0s",
    "Secret": "secret",
    "Turns": [
        {
            "Proto": "udp",
            "URI": "turn:turn.some.thing.it:3478",
            "Username": "self",
            "Password": "xxxxxxx"
        }
    ]
},

You stated to look at the .tmpl file - I can't seem to figure out what it should look like. I have an existing coturn server on the host - as you know its a pain to try to run multiple instances. I'd like to reuse what i have in place but it uses:

--use-auth-secret
--static-auth-secret=xxxxx

in the turnserver.conf file

I'd be so grateful if you could give me the entry - i suppose i could try to plugin in some stuff but seems like a wast of time to not just ask! thank you friend!

@mlsmaycon
Copy link
Collaborator

Hello, @chefboyrdave21, you can do that by enabling time-based credentials and setting a secret. The CredentialsTTL will rotate the secrets. The Username and Password won't matter in this setup, but they can't be empty. See example below:

"TURNConfig": {
    "TimeBasedCredentials": true,
    "CredentialsTTL": "12h0m0s",
    "Secret": "<SECRET>",
    "Turns": [
        {
            "Proto": "udp",
            "URI": "turn:turn.some.thing.it:3478",
            "Username": "self",
            "Password": "xxxxxxx"
        }
    ]
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants