Re: [Hls-interest] File extension and MIME-Type for an HLS encryption key

Valentijn Siebrands <valentijn.siebrands@m2amedia.tv> Wed, 30 June 2021 16:48 UTC

Return-Path: <valentijn.siebrands@m2amedia.tv>
X-Original-To: hls-interest@ietfa.amsl.com
Delivered-To: hls-interest@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D97113A22B7 for <hls-interest@ietfa.amsl.com>; Wed, 30 Jun 2021 09:48:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=m2amedia-tv.20150623.gappssmtp.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 529-T28OIuOw for <hls-interest@ietfa.amsl.com>; Wed, 30 Jun 2021 09:48:30 -0700 (PDT)
Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) (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 450273A22B8 for <hls-interest@ietf.org>; Wed, 30 Jun 2021 09:48:30 -0700 (PDT)
Received: by mail-pf1-x435.google.com with SMTP id x16so2968245pfa.13 for <hls-interest@ietf.org>; Wed, 30 Jun 2021 09:48:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=m2amedia-tv.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=C87D4/R1E7Z0DfsQa8HXjj7jv6RxBTTKA6p7spiY8RE=; b=OK5UCqv9HJ0DVWQ62PCXYYAk0rbxNqiNi/s+utqh3hLHe4UlZEV2A162Gug+tSrE7N FN3qOA+Ztu36x7YLePAZJyypZvckS4xNayKhjOdHXdLYKvilAV3GNNokdW/pC13UL/5j B0cE2YIKkTY8hPvTmCNHMBOYhl4tWketE73T7KOCItKYD6gUiGkEdlH94MvbcGB7ooGy c31J1N6i+i93bYgBXwKzhlBqaQydu6wykOtK5wCAr2ljQCwOgz5QVqtfpHGcOj2J52Y9 aDDNvbcCp7HtT94c4tHwNjIFoRT3GrelTcVibaFNub3/O2qi13Bf1bJT612HkbCR0vhQ IsAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=C87D4/R1E7Z0DfsQa8HXjj7jv6RxBTTKA6p7spiY8RE=; b=RR5emuXcc6IHhwQ1UEvShGBDZ3EiDlCFOkMli6JhG27T3hIVI/bnoyYutG54l7Og7g 9m/27keetf9DQop7GXWkZZoL0rA0R7WXtQF63xCM5PE2vGAXTmtj1fjiocM4F3SsvcyI X+Hwk4RqqgfgpH9zvi7FpZkoqy9izvJK0LMByBYLYRe8f13WXC9wl3RlWeUO80YQg1aV b/zXtb5cqdQhF1lHRa8yp2/C73DIi7jeul1Zejbc/P3DEPYN2llhLgRfIJdLk+zHJHxt SswLgTPY7V+gZWPcFtMdZESHo/OQYLR3BgyAj+l76/lZLikn75Uu+DueWUKUcyFU9knV EHKw==
X-Gm-Message-State: AOAM532DwSLF+kQDcYZ5WFOYfS2dWihkF0Uy4FKR2e91GXnhVCOFNBCY /WaFy2Wrh90mteGTZuRoq5bGzF65MKGX3jF8o3M8eljj8Zubew==
X-Google-Smtp-Source: ABdhPJw8Tddvx/z5zYB0AHIwYrIAnBdCWchUJhisfviS9te+uqWuIV7xxpaq5L69XfBnQrNSmwLdPH2Won4vd4R8vRQ=
X-Received: by 2002:a62:148a:0:b029:30f:be14:3b35 with SMTP id 132-20020a62148a0000b029030fbe143b35mr5001910pfu.23.1625071708044; Wed, 30 Jun 2021 09:48:28 -0700 (PDT)
MIME-Version: 1.0
References: <5AA86F40-F359-4F0E-878E-E61AF916DF28@akamai.com>
In-Reply-To: <5AA86F40-F359-4F0E-878E-E61AF916DF28@akamai.com>
From: Valentijn Siebrands <valentijn.siebrands@m2amedia.tv>
Date: Wed, 30 Jun 2021 18:48:16 +0200
Message-ID: <CAGEDSpQcTFwu0V7XoW1gm-FOyFSOvnHx0s3B7zK9CdXQ-P29vw@mail.gmail.com>
To: "Law, Will" <wilaw=40akamai.com@dmarc.ietf.org>
Cc: "hls-interest@ietf.org" <hls-interest@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000e4916205c5fe7d5a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/hls-interest/bLuTmb9PjWqu6tUJ3hr970Hk044>
Subject: Re: [Hls-interest] File extension and MIME-Type for an HLS encryption key
X-BeenThere: hls-interest@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussions about HTTP Live Streaming \(HLS\)." <hls-interest.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hls-interest>, <mailto:hls-interest-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/hls-interest/>
List-Post: <mailto:hls-interest@ietf.org>
List-Help: <mailto:hls-interest-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hls-interest>, <mailto:hls-interest-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 30 Jun 2021 16:48:36 -0000

Hi Will,

So this goes back to:
https://dashif-documents.azurewebsites.net/Ingest/master/DASH-IF-Ingest.html#HLS_Ingest_Encryption
right?



*6.2.3. EncryptionThe ingest source MAY choose to encrypt the media
segments and publish the corresponding keyfile to the Receiving entity.*
My opinion:
For players it would be good to use either .key (=what it is) or .drm (it's
usage) both mimed as application/octet-stream. However, for *ingest*, one
generally doesn't ingest a key to a packager or 'processor'. Although the
Ingest spec mentions it and one could do it that way, it needs more than
just a keyfile, in the end getting the keyid:key pair(s) in the right place
and map them accordingly based on track type and time is one of the reasons
why CPIX and SPEKE are there. So for ingest, .cpix or .xml would be a
better fit

My main point is that we should make a clear distinction here: "files" used
by packagers for applying encryption (eg .cpix) , "files" used by players
(mainly CDM's). (eg .key or .drm)

Imho history has shown us that references to things that mean 2 things
'close' to each other in related specifications lead to common mistakes,
especially developers working with DRM and the specification(s) need
clarity, red is red and blue is blue.
Smooth is generally referred to as both an ingest and playback
specification. The "Dash-IF Ingest spec" tries to replace that very Smooth
ingest spec. We should reflect the lesson learned: A clear distinction,
this one is for packaging, the other for the player.

Regards

V







On Tue, Jun 29, 2021 at 6:03 PM Law, Will <wilaw=40akamai.com@dmarc.ietf.org>
wrote:

> Is there any consensus on what the file extension and MIME-Type should be
> for an encryption key delivered to a HLS  player? The spec defines no
> constraints on this question.
>
>
>
> The DASH IF is standardizing an Ingest Specification which covers the
> ingest of CMAF-based content in both HLS and DASH formats. We’ll likely
> choose ‘.key’ as the file extension and are considering
> ‘application/octet-stream’ as the Mime-Type in the absence of objections.
> Asking here in case there is a de-facto industry standard already in use,
> or opinion on whether we should go to the length of registering a new
> ‘encryption key’ MIME-type with IANA.
>
>
>
> Cheers
>
> Will
>
>
> --
> Hls-interest mailing list
> Hls-interest@ietf.org
> https://www.ietf.org/mailman/listinfo/hls-interest
>


-- 

Valentijn Siebrands

Solutions Architect

*M2A Media*

Tel: +31 (0) 6 2424 1344