Skip to content

[Feature Request] Short lived credentials for TURN - cloudflare #1708

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

Open
irakhlin opened this issue Apr 22, 2025 · 1 comment
Open

[Feature Request] Short lived credentials for TURN - cloudflare #1708

irakhlin opened this issue Apr 22, 2025 · 1 comment
Labels
question Further information is requested

Comments

@irakhlin
Copy link

This feature request is to add a mechanism that would allow short-lived authentication to be used for the TURN server. I would imagine this would need to be extensible for different providers. The specific provider in mind here is cloudflare's current TURN server offering: https://developers.cloudflare.com/realtime/turn/generate-credentials/

There is a very healthy free tier available so it makes a good candidate for testing. Cloudflare does not allow creating long-lived credentials but does offer a very simple rest API endpoint that can be called with your credentials to return a username and credential based on the requested TTL.

I would imagine some backend process maybe using an expiring cache, would need to maintain a good known credential and be tasked with updating it.

Do you think this is a feature you would be willing to add?

@irakhlin irakhlin changed the title [Feature Request] Short lived credentials for TURN [Feature Request] Short lived credentials for TURN - cloudflare Apr 23, 2025
@AlexxIT AlexxIT added the question Further information is requested label Apr 23, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Apr 23, 2025

Go2rtc has two sources - echo (run some shell script) and expr (run script in expr format).
The script can pull up the actual credenchels and give them as a source.
The script is run each time the stream is not active.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants