Re: [Sidrops] Manifest entry filename validation

Job Snijders <job@ntt.net> Thu, 19 November 2020 18:00 UTC

Return-Path: <job@ntt.net>
X-Original-To: sidrops@ietfa.amsl.com
Delivered-To: sidrops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2B04F3A0EC2 for <sidrops@ietfa.amsl.com>; Thu, 19 Nov 2020 10:00:39 -0800 (PST)
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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
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 3ZXnvDcNIT6n for <sidrops@ietfa.amsl.com>; Thu, 19 Nov 2020 10:00:38 -0800 (PST)
Received: from mail4.sttlwa01.us.to.gin.ntt.net (mail4.sttlwa01.us.to.gin.ntt.net [204.2.238.64]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B6EB43A0EBD for <sidrops@ietf.org>; Thu, 19 Nov 2020 10:00:37 -0800 (PST)
Received: from bench.sobornost.net (mieli.sobornost.net [45.138.228.4]) by mail4.sttlwa01.us.to.gin.ntt.net (Postfix) with ESMTPSA id 61DC7220076; Thu, 19 Nov 2020 18:00:36 +0000 (UTC)
Received: from localhost (bench.sobornost.net [local]) by bench.sobornost.net (OpenSMTPD) with ESMTPA id 21e64c54; Thu, 19 Nov 2020 18:00:34 +0000 (UTC)
Date: Thu, 19 Nov 2020 18:00:34 +0000
From: Job Snijders <job@ntt.net>
To: Stephen Kent <stkent=40verizon.net@dmarc.ietf.org>
Cc: sidrops@ietf.org
Message-ID: <X7aywnRgq3ubVUBu@bench.sobornost.net>
References: <18CC986C-97FA-41F6-A530-F782D3104A31@ripe.net> <73eae8a5-a400-cb45-7fbc-9cc7f79be804@verizon.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <73eae8a5-a400-cb45-7fbc-9cc7f79be804@verizon.net>
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/sidrops/7Xn5hUrdFQAArakTcRft3uJAW2Y>
Subject: Re: [Sidrops] Manifest entry filename validation
X-BeenThere: sidrops@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: A list for the SIDR Operations WG <sidrops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sidrops>, <mailto:sidrops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sidrops/>
List-Post: <mailto:sidrops@ietf.org>
List-Help: <mailto:sidrops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sidrops>, <mailto:sidrops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Nov 2020 18:00:39 -0000

On Thu, Nov 19, 2020 at 12:32:42PM -0500, Stephen Kent wrote:
> How about the following text:
> 
> Section 4.2.2
> 
> To promote interoperability across file systems, the following restrictions
> are imposed on the file names that appear in the fileList:
> 
> 1.Only a subset of IA5string characters are permitted: a-z, A-Z, 0-9, .
> (dot), - (dash), and _ (underscore).
> 
> 2.No blank file names are permitted.
> 
> 3.Single and double dot (. and ..) file names are prohibited.
>
> 4.The three-character filename extension defined for each object type MUST
> be present and MUST be lowercase, e.g., cer, roa, and crl.

I reworded things a bit:

-----------

The following restrictions are imposed on the names that appear in the fileList:

1. Only a subset of IA5string characters are permitted: a-z, A-Z, 0-9, . (DOT), - (HYPHEN), and _ (UNDERSCORE).

2. Each name MUST be suffixed with the appropriate filename extension defined the object type and MUST be lowercase, e.g., '.cer', '.roa', or '.crl'.

3. The . (DOT) character MUST appear exactly once in a name.