Re: [Perc] Last Call: <draft-ietf-perc-private-media-framework-08.txt> (A Solution Framework for Private Media in Privacy Enhanced RTP Conferencing) to Proposed Standard

Nils Ohlmeier <nohlmeier@mozilla.com> Wed, 13 February 2019 01:34 UTC

Return-Path: <nohlmeier@mozilla.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5DC9D129284 for <ietf@ietfa.amsl.com>; Tue, 12 Feb 2019 17:34:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mozilla.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BMU0oWjP4tUU for <ietf@ietfa.amsl.com>; Tue, 12 Feb 2019 17:34:37 -0800 (PST)
Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 55241130EDB for <ietf@ietf.org>; Tue, 12 Feb 2019 17:34:37 -0800 (PST)
Received: by mail-pg1-x52e.google.com with SMTP id q206so349441pgq.4 for <ietf@ietf.org>; Tue, 12 Feb 2019 17:34:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mozilla.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=Sr92MYK9tYu20k3hSwsImWjOfDXzbmg4/MLjRA1UVlk=; b=H7uQNkQuZaertPyksmtWq1JGlhpuTsK6mYayWCSfieseeyeIn+srCNeyBKBF32CwOr 5stQAzFpf3E34+LIecW5apBYbmVAzxx5A8oERKsI5P0kA9HGI7Oc7K/SMZa6MUfopJdj foW65ogacvNzFes+6h3+1qlp+Kd6YCQx1Ys3s=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=Sr92MYK9tYu20k3hSwsImWjOfDXzbmg4/MLjRA1UVlk=; b=q2iYJ741LOahm2lRzUCOqt5PdDTsrCzRYczppIJV9Y6zylNXpXlPEYd0yxQsJ7UM3t voriieoL/9Llgyt3mymV1AzTLNqOIvfCWZp9Ez1h5b4kdrnLlWS1y/b8dAyPcZTk5t1y MchPBqmYfIR/2GSGUj5sbVEA4kmvc5cEffesn7K04TR165RTsweMiij3dKBdXrNxpKZH +/xsKUZRS++xLCFuIZWgikYi2sJqxDV3f638QJzf+XjpLKL5HscZraqgodIUhWiv0xKj 0/ZwCW5pq/ghwvN26vPHDXZaBQdQKnHPxM5UsgYI19uDUKNSBCstnDxTY65MdR5KTYQ4 Q65g==
X-Gm-Message-State: AHQUAuZxPPl3sq2DhzG3fHTjOeHN99En4wkAEDhgujgp96p0aaR7kG08 Z2t5F2Ug0Amza0e4vrhfkCBZeQ==
X-Google-Smtp-Source: AHgI3IZFcbr5GwghajshT+a4SKh1Jh20LXbg2pTDINH0SXOu1S7aQ7Zj9tuwkHMJSMf7Lwp56e0EmA==
X-Received: by 2002:aa7:84c7:: with SMTP id x7mr6839195pfn.180.1550021676266; Tue, 12 Feb 2019 17:34:36 -0800 (PST)
Received: from ?IPv6:2601:647:4600:3f31:c5dc:6ac5:dc93:5194? ([2601:647:4600:3f31:c5dc:6ac5:dc93:5194]) by smtp.gmail.com with ESMTPSA id j6sm15872177pgq.33.2019.02.12.17.34.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 17:34:34 -0800 (PST)
From: Nils Ohlmeier <nohlmeier@mozilla.com>
Message-Id: <91A16283-A392-4217-97E1-B04A5C8AD245@mozilla.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_750CF8DA-C60A-47E6-8F52-538DF29AFAA5"
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
Subject: Re: [Perc] Last Call: <draft-ietf-perc-private-media-framework-08.txt> (A Solution Framework for Private Media in Privacy Enhanced RTP Conferencing) to Proposed Standard
Date: Tue, 12 Feb 2019 17:34:33 -0800
In-Reply-To: <06d91175-b071-49fe-01cc-4a1323ad85f7@gmail.com>
Cc: Bernard Aboba <bernard.aboba@gmail.com>, IETF discussion list <ietf@ietf.org>, Emad Omara <emadomara@google.com>, Emil Ivov <emcho@jitsi.org>, perc@ietf.org, "hta@google.com" <hta@google.com>, Alexandre GOUAILLARD <alex.gouaillard@cosmosoftware.io>, Lorenzo Miniero <lorenzo@meetecho.com>
To: Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com>
References: <154889546931.10496.2408974719921724953.idtracker@ietfa.amsl.com> <CAOW+2dui_imxyysOCrtdH7OiDcbooi83qtCDifEY3HQ6MpigWA@mail.gmail.com> <CAL02cgSip2cLr8a1+zfK2cg+n8gqUMc9CKPmb7mWd2iLSiRf-g@mail.gmail.com> <8e40d0db-cacb-db93-f2fe-db5b4a7cf7cf@gmail.com> <CAOW+2dtxnSYOPPWxodN633O=dPOQaUnu7eYvgUYkPYRt6iWbaw@mail.gmail.com> <CAPvvaaK_VUXvy2=1TBGfBWWYxiBdXBzuR=Y-rnAdJyg=M8OfQQ@mail.gmail.com> <5486C91C-48EA-4AA1-85EE-05A0B01C1E70@meetecho.com> <C6FEAEB9-CF8E-48AF-B03F-1406FF9CB303@cosmosoftware.io> <CAOW+2ducgj400pk3xPFAkRYxnYvqwhMsE9rOO0u9PgLpniaaRA@mail.gmail.com> <CAPvvaaLYFeNkZ4Pfdh4pa2btNW6EGZBnAOvXzVZ9egU8V-gBNQ@mail.gmail.com> <CAOW+2dvom822NgjF7OAa2A8YDeqZ+mbCqA=fUcq-Y49oFyGpsA@mail.gmail.com> <CAPvvaa+EzwgMXB_t7ZVTBgZH2y4=neUm1RymUNKnMV-6zyGPaQ@mail.gmail.com> <a74a8239-27dc-5704-096b-05cc5e02bd18@gmail.com> <543375ED-9A4F-452C-AE51-9499DAD5CEE0@gmail.com> <80a1f634-0888-c5e2-f6be-729d4cca3b28@cosmosoftware.io> <06d91175-b071-49fe-01cc-4a1323ad85f7@gmail.com>
X-Mailer: Apple Mail (2.3445.102.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/kA7cCAUXIGygerkr-ZpsIBxuGdc>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Feb 2019 01:34:42 -0000

Thank you for the input on the framework and the double documents from everyone.

The points raised by the individuals here are not new and have been discussed before by the WG at several occasions. And for these issues there has be no WG consensus.


Specifically on the points regarding double encryption:
At IETF 95 double had consensus and got adopted (after 4 design team meetings and 3 IETF meetings).
  https://www.ietf.org/proceedings/95/minutes/minutes-95-perc <https://www.ietf.org/proceedings/95/minutes/minutes-95-perc>
 
At IETF 96 the WG chairs re-opened the discussions around SSRC mutability and Emil got asked to submit a draft on the security impact of SSRC mutability
  https://www.ietf.org/proceedings/96/minutes/minutes-96-perc <https://www.ietf.org/proceedings/96/minutes/minutes-96-perc>
At IETF 98 SSRC immutability and RTX considerations were discussed but no proposal made on security implications
  https://www.ietf.org/proceedings/98/minutes/minutes-98-perc-00 <https://www.ietf.org/proceedings/98/minutes/minutes-98-perc-00>
At IETF 99 the double authors and Sergio presented a joint proposal. The WG chairs called for consensus in the room and on the list and concluded that with rough consensus, the proposal got adopted.
  https://datatracker.ietf.org/meeting/99/materials/minutes-99-perc-01 <https://datatracker.ietf.org/meeting/99/materials/minutes-99-perc-01>
  https://mailarchive.ietf.org/arch/msg/perc/3fPqYTE2qhT351nvp1b7wkf4-bc <https://mailarchive.ietf.org/arch/msg/perc/3fPqYTE2qhT351nvp1b7wkf4-bc>
Best regards
  Nils & Suhas
  PERC WG chairs

> On 2Feb, 2019, at 13:37, Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com> wrote:
> 
> PERC may be a valid solution for some scenarios, maybe SIP.
> 
> But in regards of WebRTC, my personal opinion is that it is not well suited and that we should do a fresh start, with an analysis of the requirements and specifics of webrtc, define trust models, role of the js apps, UI/UX, IdP and isolated media streams, key management within browser, compatibility with webrtc 1.0, if we need to support it in SDP or not, QUIC, WASM, etc.. and then check if PERC is able to fulfill them or what parts can be reused, if any.
> 
> Best regards
> 
> Sergio
> 
>> 
>> On 02/02/2019 21:42, Bernard Aboba wrote:
>>> Sergio -
>>> 
>>> In your opinion, what portions of PERC are salvageable, if any? Is this a situation where we need to start over or could some aspect of PERC (e.g. Double if the triple encryption problem were fixed) be suitably modified and then implemented?
>>> 
>>> On Feb 2, 2019, at 3:31 PM, Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com <mailto:sergio.garcia.murillo@gmail.com>> wrote:
>>> 
>>>> I think Emil and Bernard have described quite precisely where we are and how we managed to get here.
>>>> 
>>>> In my opinion it would be a big mistake to consider PERC as *THE* solution for end to end encryption for multiconferencing, as if there was a one size fits all solution for the problem.
>>>> 
>>>> Speaking from a WebRTC perspective, PERC, apart of have taken some controversial technical decisions (OHB as header, the ssrc rewriting issue and reverse the the order of FEC/RTX and SRTP), does not take into consideration the specifics of WebRTC (it could be argued that that was not in the scope of this group), like the role of the js app, the possibility of allowing key management in js, or the interaction with Idp and isolated media streams. Not to speak about the recent discussions about full frame vs per packet encryption or QUIC.
>>>> 
>>>> Best regards
>>>> Sergio
>>>> 
>>>> 
>>>> On 02/02/2019 18:42, Emil Ivov wrote:
>>>>> 
>>>>> 
>>>>> On Sat 2 Feb 2019 at 16:50, Bernard Aboba <bernard.aboba@gmail.com <mailto:bernard.aboba@gmail.com>> wrote:
>>>>> Emil said:
>>>>> 
>>>>> "The need to do a triple encryption for example is a particularly egregious consequence of the order problem. That’s a problem specific to the “double” documents."
>>>>> 
>>>>> [BA] Can you describe how the need for "triple encryption" arises?  The framework document doesn't even mention the issues with ordering of FEC/RTX/RED and encryption, let alone the need for "triple encryption". 
>>>>> 
>>>>> One of the goals that some members of the group seemed to have was to allow specific applications to become PERC-compliant without changing the app code itself and by simply replacing the libsrtp library with a PERC-enabled one. 
>>>>> 
>>>>> I don’t know that this goal is a direct consequence of the framework’s conceptual approach (contrary to the imposition of key distribution and negotiation). I think it simply carries a promise for some minimal pragmatic value to some implementers.
>>>>> 
>>>>> The issue with this approach is that it leaves hop-by-hop protection mechanisms such FEC and RTC unavailable to the SFU as they are usually performed before SRTP, which would make them e2e encrypted.
>>>>> 
>>>>> The solution to that is simple. One merely needs to perform e2e encryption first, then apply FEC and/or RTX and only then apply the second (hop-by-hop) layer of SRTP.
>>>>> 
>>>>> This approach was referred to as “wedging RTX and FEC” as it places them in between the two encryption operations.
>>>>> 
>>>>> While wedging appeared to have overall support in hallway discussions by all SFU implementors except potentially one, it was mysteriously rejected by a subset of the WG and replaced with the following:
>>>>> 
>>>>> Applications will apply SRTP-double first and, those that need to use FEC and RTX would have to apply them only after. 
>>>>> 
>>>>> It was quickly pointed out that this not only destroys the stated “don’t-change-the-app” goal, but also leaves RTX and mostly FEC unprotected and FEC receivers vulnerable to DoS. To this the proponents of this approach simply replied with: “well, those of you who use FEC/RTX will simply do a third round of SRTP”, thus arriving at a total of three encryptions for every packet..
>>>>> 
>>>>> The discussions around this topic were highly contentious.
>>>>> 
>>>>> Hope this makes things clear,
>>>>> Emil
>>>>> 
>>>>> 
>>>>> 
>>>>> On Sat, Feb 2, 2019 at 11:46 AM Emil Ivov <emcho@jitsi.org <mailto:emcho@jitsi.org>> wrote:
>>>>> Yes pretty much those.
>>>>> 
>>>>> The need to do a triple encryption for example is a particularly egregious consequence of the order problem. That’s a problem specific to the “double” documents.
>>>>> 
>>>>> I would however also say that the decision to bake one specific way of performing key negotiation into the framework rather than leaving it open was both unnecessary and quite problematic.
>>>>> 
>>>>> Emil
>>>>> 
>>>>> On Sat 2 Feb 2019 at 12:23, Bernard Aboba <bernard.aboba@gmail.com <mailto:bernard.aboba@gmail.com>> wrote:
>>>>> "on the consensus not reached on this and other topics."
>>>>> 
>>>>> [BA] Out of curiosity, what other topics do you consider to be problematic within the framework?  I am aware of at least two others where implementers have chosen different paths than in the PERC framework:
>>>>> 
>>>>> * Order of application of encryption versus FEC/RTX/RED
>>>>> * Whole frame encryption versus payload encryption
>>>>> 
>>>>> With respect to consensus, this is IETF last call, one of whose purposes is to determine whether there is IETF consensus to publish this document as a Proposed Standard.  Are you saying that you do not agree that there is an IETF consensus to publish this document as a Proposed Standard?  Or that there is no IETF consensus to publish *any* of the PERC WG output as a Proposed Standard? 
>>>>> 
>>>>> On Sat, Feb 2, 2019 at 5:40 AM Alexandre GOUAILLARD <alex.gouaillard@cosmosoftware.io <mailto:alex..gouaillard@cosmosoftware.io>> wrote:
>>>>> +1 on ssrc rewriting, and on the consensus not reached on this and other topics.
>>>>> 
>>>>> Sent from my iPhone
>>>>> 
>>>>> On 2 Feb 2019, at 17:18, Lorenzo Miniero <lorenzo@meetecho.com <mailto:lorenzo@meetecho.com>> wrote:
>>>>> 
>>>>>> +1, SSRC rewriting is pretty much fundamental to all SFUs out there.
>>>>>> 
>>>>>> Lorenzo
>>>>>> 
>>>>>> Il 2 febbraio 2019 10:19:06 CET, Emil Ivov <emcho@jitsi.org <mailto:emcho@jitsi.org>> ha scritto:
>>>>>> I want to second that as it is a particularly major problem: not allowing SSRC rewriting makes the entire framework unusable with SFU implementation I represent as well as every other SFU I am familiar with.
>>>>>> 
>>>>>> I am also not sure that I agree with “SSRC rewriting could not be allowed” is a conclusion that ever had any consensus in PERC, regardless of what WG leadership is trying to make everyone believe.
>>>>>> 
>>>>>> On Sat 2 Feb 2019 at 06:21, Bernard Aboba <bernard.aboba@gmail.com <mailto:bernard.aboba@gmail.com>> wrote:
>>>>>> Richard said:
>>>>>> 
>>>>>> "Again, the answer is clear here, but the document should be clearer.  The working group discussed SSRC rewriting several times, and concluded that SSRC rewriting could not be allowed in this system.  This decision is reflected, e.g., in the fact that the Double transform does not allow modification of SSRCs."
>>>>>> 
>>>>>> [BA]  Not being able to rewrite SSRCs has some major implications with respect to requirements on PERC endpoints.  Typically today's MDD will switch between the simulcast streams provided by an endpoint, forwarding only a single stream to other participants, based on the bandwidth, resolution and framerates.  If rewriting of SSRCs is not possible, do PERC endpoints need to be able to receive simulcast? If PERC endpoints do need to be able to receive simulcast, what are the requirements for endpoints?  For example, should endpoints expect the MDD to use RID header extensions to identify the incoming simulcast streams? 
>>>>>> 
>>>>>> Receiving of simulcast is tricky because the endpoint is receiving multiple streams with different sequence number spaces which may contain holes because of reordering or loss. This not only complicates the application of RTX, RED and FEC, but also the operation of the endpoint.  As a result, as noted in the WEBRTC specification Section 5.4.1, support for reception of simulcast is optional. I am aware of two ORTC implementations that have attempted to support simulcast reception, neither of which is robust in scenarios with considerable loss and/or reordering.  And neither implementation supports the RID header extension on received simulcast streams.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Fri, Feb 1, 2019 at 12:23 PM Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com <mailto:sergio.garcia.murillo@gmail.com>> wrote:
>>>>>> On 01/02/2019 17:18, Richard Barnes wrote:
>>>>>>> So I would propose we add something like the following to this definition: 
>>>>>>> 
>>>>>>> "In the context of WebRTC, where control of a session is divided between a JavaScript application and a browser, the browser acts as the Trusted Endpoint for purposes of this framework (just as it acts as the endpoint for DTLS-SRTP in one-to-one calls).
>>>>>> 
>>>>>> If we decide to adopt perc (big if) in webrtc, shouldn't this be defined within the https://tools.ietf.org/html/draft-ietf-rtcweb-security-arch-17 <https://tools.ietf.org/html/draft-ietf-rtcweb-security-arch-17> doc ?
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>    Optimally, we would not rely on trust in any entities other than the
>>>>>>    browser.  However, this is unfortunately not possible if we wish to
>>>>>>    have a functional system.  Other network elements fall into two
>>>>>>    categories: those which can be authenticated by the browser and thus
>>>>>>    can be granted permissions to access sensitive resources, and those
>>>>>>    which cannot be authenticated and thus are untrusted.
>>>>>> 
>>>>>> 
>>>>>> WebRTC already IdP as trusted for identity purposes, so it should be up to the RTCWEB group to decide what is a trusted endpoint and what is not in webrtc. As Bernard is stating, we could decide that there are other key management solutions trusted (even in JS or WASM), as for for example is being done in EME:
>>>>>> 
>>>>>> https://github.com/WICG/media-capabilities/blob/master/explainer.md#encryption <https://github.com/WICG/media-capabilities/blob/master/explainer.md#encryption>
>>>>>> Best regards
>>>>>> 
>>>>>> Sergio
>>>>>> 
>>>>>> _______________________________________________
>>>>>> Perc mailing list
>>>>>> Perc@ietf.org <mailto:Perc@ietf.org>
>>>>>> https://www.ietf.org/mailman/listinfo/perc <https://www.ietf.org/mailman/listinfo/perc>
>>>>>> -- 
>>>>>> sent from my mobile
>>>>>> 
>>>>>> -- 
>>>>>> Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.
>>>>> -- 
>>>>> sent from my mobile
>>>>> -- 
>>>>> sent from my mobile
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Perc mailing list
>>>>> Perc@ietf.org <mailto:Perc@ietf.org>
>>>>> https://www.ietf.org/mailman/listinfo/perc <https://www.ietf.org/mailman/listinfo/perc>
>>>> 
> _______________________________________________
> Perc mailing list
> Perc@ietf.org
> https://www.ietf.org/mailman/listinfo/perc