From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail.toke.dk; spf=pass (mailfrom) smtp.mailfrom=irif.fr (client-ip=2001:660:3301:8000::1:2; helo=korolev.univ-paris7.fr; envelope-from=jch@irif.fr; receiver=) Received: from korolev.univ-paris7.fr (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]) by mail.toke.dk (Postfix) with ESMTPS id 23C4E7C2D4C; Fri, 1 Jan 2021 23:55:53 +0100 (CET) Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/82085) with ESMTP id 101MtoRW006052; Fri, 1 Jan 2021 23:55:50 +0100 Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id E79FDBE9C1; Fri, 1 Jan 2021 23:55:50 +0100 (CET) X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id jK0E5ZzdgMnD; Fri, 1 Jan 2021 23:55:49 +0100 (CET) Received: from pirx.irif.fr (unknown [78.194.40.74]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id B6C5CBE9BE; Fri, 1 Jan 2021 23:55:48 +0100 (CET) Date: Fri, 01 Jan 2021 23:55:48 +0100 Message-ID: <87r1n4uv0r.wl-jch@irif.fr> From: Juliusz Chroboczek To: Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= In-Reply-To: <8735zpya4m.fsf@toke.dk> References: <1082cfcde178ddb72b51bcd03ee6770a@kn1ght.org> <87zh1zt6ip.wl-jch@irif.fr> <87y2hjt5fx.wl-jch@irif.fr> <87y2hjxa64.fsf@toke.dk> <87r1nau8v0.wl-jch@irif.fr> <87sg7qyaj2.fsf@toke.dk> <87a6tx7olm.wl-jch@irif.fr> <8735zpya4m.fsf@toke.dk> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.1 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [194.254.61.138]); Fri, 01 Jan 2021 23:55:51 +0100 (CET) X-Miltered: at korolev with ID 5FEFA876.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 5FEFA876.000 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/ X-j-chkmail-Score: MSGID : 5FEFA876.000 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 57HTIUW7VM47IFMKPGJDXSN545TBTQXN X-Message-ID-Hash: 57HTIUW7VM47IFMKPGJDXSN545TBTQXN X-MailFrom: jch@irif.fr X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Cell , galene@lists.galene.org X-Mailman-Version: 3.3.2 Precedence: list Subject: [Galene] Re: coturn config List-Id: =?utf-8?q?Gal=C3=A8ne_videoconferencing_server_discussion_list?= Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: > ...And it turns out that I completely misunderstood how this is suppose= d > to work: there's not supposed to be any communication between the WebRT= C > server and Coturn. Rather, there's a configured shared secret that the > WebRTC server can use to generate as many ephemeral credentials as it > wants. I just pushed an implementation. Your ice-servers.json should look like this: [ { "urls": [ "turn:turn.example.org:3479", "turn:turn.example.org:3479?transport=3Dtcp" ], "username": "galene", "credential": "secret", "credentialType": "hmac-sha1" } ] In other words, I've kept the standard configuration syntax, just added a non-standard value for "credentialType". Your turnserver.conf should look like this: use-auth-secret static-auth-secret=3Dsecret realm=3Dtrun.example.org I've done some testing, but I didn't test that it will properly rotate th= e key =E2=80=94 please let me know if it survives 24h. -- Juliusz