Skip to content

Feature request: api call for short-lived ice config #1028

@the-veloper

Description

@the-veloper

https://github.com/mattermost/mattermost-plugin-calls/pull/116/files - implements something like this ,but I cannot understand, if that is applicable for my use case. On first glace it doesn't seem like it does support my case, because it requests short-lived credentials from a turn server, not an API.

My use case:

curl  -H "Authorization: Bearer <REDACTED>"     -H "Content-Type: application/json" -d '{"ttl": 86400}'         https://rtc.live.cloudflare.com/v1/turn/keys/<REDACTED>/credentials/generate-ice-servers

this returns:

{"iceServers":[{"urls":["stun:stun.cloudflare.com:3478","stun:stun.cloudflare.com:53"]},{"urls":["turn:turn.cloudflare.com:3478?transport=udp","turn:turn.cloudflare.com:3478?transport=tcp","turns:turn.cloudflare.com:5349?transport=tcp","turn:turn.cloudflare.com:53?transport=udp","turn:turn.cloudflare.com:80?transport=tcp","turns:turn.cloudflare.com:443?transport=tcp"],"username":"<redacted>","credential":"<redacted>"}]}

my workaround would be to have a pipeline that runs this request and updates the env vars, but that requires a restart of my instance, which is not great.

is it possible to implement this some other way? i am happy to help, if anyone comes up with an implementation proposal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions