Re: [ftpext] A few comments on draft-bryan-ftp-hash-05
Tim Kosse <tim.kosse@filezilla-project.org> Sat, 03 July 2010 11:14 UTC
Return-Path: <tim.kosse@filezilla-project.org>
X-Original-To: ftpext@core3.amsl.com
Delivered-To: ftpext@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3F4F03A6992 for <ftpext@core3.amsl.com>; Sat, 3 Jul 2010 04:14:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.393
X-Spam-Level:
X-Spam-Status: No, score=-1.393 tagged_above=-999 required=5 tests=[AWL=-1.208, BAYES_40=-0.185]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O7OYsMjBaEDS for <ftpext@core3.amsl.com>; Sat, 3 Jul 2010 04:13:55 -0700 (PDT)
Received: from filezilla-project.org (filezilla-project.org [213.239.222.5]) by core3.amsl.com (Postfix) with ESMTP id AD18D3A68BC for <ftpext@core3.amsl.com>; Sat, 3 Jul 2010 04:13:55 -0700 (PDT)
Received: from [2a01:198:458::59] by filezilla-project.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from <tim.kosse@filezilla-project.org>) id 1OV0fd-0007yS-Na; Sat, 03 Jul 2010 13:14:06 +0200
Message-ID: <4C2F1B7A.2040707@filezilla-project.org>
Date: Sat, 03 Jul 2010 13:14:02 +0200
From: Tim Kosse <tim.kosse@filezilla-project.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10) Gecko/20100512 Lightning/1.0b1 Thunderbird/3.0.5
MIME-Version: 1.0
To: Paul Ford-Hutchinson <paulfordh@uk.ibm.com>
References: <OF5B8F7FAC.BDF21341-ON80257752.00272796-80257752.002FC71F@uk.ibm.com>
In-Reply-To: <OF5B8F7FAC.BDF21341-ON80257752.00272796-80257752.002FC71F@uk.ibm.com>
X-Enigmail-Version: 1.0.1
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="------------enigD125AF2F457405A3C695EE42"
Cc: ftpext@core3.amsl.com
Subject: Re: [ftpext] A few comments on draft-bryan-ftp-hash-05
X-BeenThere: ftpext@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <ftpext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ftpext>, <mailto:ftpext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ftpext>
List-Post: <mailto:ftpext@ietf.org>
List-Help: <mailto:ftpext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ftpext>, <mailto:ftpext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Jul 2010 11:14:41 -0000
Hi, thank you very much for your extensive feedback Paul. On 2010-06-30 10:50, Paul Ford-Hutchinson wrote: > [...] > C> HASH filename.ext > S> 213 SHA-1 80bc95fd391772fa61c91ed68567f0980bb45fd9 filename.ext I like this suggestion. > [...] > Where the draft states "the raw octet data of the file", it probably needs > to be making fewer assumptions about the filesystem of the server. A > "file" is not necessarily a byte stream. It may have a record structure > for example. I'd remove that sentence and leave it as "The returned hash > MUST be calculated as if a client were to download the full file using > TYPE I and MODE S and were to calculate the hash on the received octet > data." Makes sense. > In which case, one of the replies to the HASH command has to be "5xy I > cannot calculate the HASH as I would not be able to deliver that file to > you with TYPE I and MODE S" 551 perhaps? > Should there be an allowance for "private" hash algorithms? not just those > defined in the IANA registry named "Hash Function Textual Names" Should be fine to allow provided algorithms provided that there is a prefix to distinguish between registered and private algorithms, X_ perhaps. Also, it needs to be made clear that the private algorithms are not interoperable, as two servers might implement two completely different algorithms using the same private name. > Section 6: > > [...] > Not sure that a protocol specification is the right place to place a > SHOULD on an implementation decision like this. > [...] > These two SHOULD words should be MAY. The protocol impact of this is that > a client MUST allow that a HASH command might take a reasonably long time > to complete. Agreed. > Also, if you do start > dipping toes into the murky waters of caching, you really need to specify > how to update the cached value [...] What about "A server MAY cache the calculated hashes [...] provided it updates or invalidates the cached hash when content of the corresponding file changes." > [...] > As a protocol spec, I would re-write something like ... > > "A server may refuse to process a HASH command for many reasons, one of > which may be a suspected denial of service attack, a client MUST be able > to understand that refusal to process HASH commands may be transient (if > indicated by a 4xy response) and MAY be honoured later if the server so > decides." Sounds good. >> In addition, the HASH command can be used to draw conclusions about >> the contents of a file. If the hash of a file on some server matches >> the hash of some known file, then both files are likely identical. >> To prevent this scenario it suffices to limit use of the HASH command >> to users who would already be able to download the file. > > I think the issue of which files a server should process a HASH command > for a logged in user for is a bit bigger than this ... > [...] Yes, that paragraph needs to be improved. > - The draft probably needs to state what should happen if somebody > attempts to HASH something that isn't a file (e.g. it's a directory) Ack. Regards, Tim
- [ftpext] A few comments on draft-bryan-ftp-hash-05 Paul Ford-Hutchinson
- Re: [ftpext] A few comments on draft-bryan-ftp-ha… Tim Kosse
- Re: [ftpext] A few comments on draft-bryan-ftp-ha… Anthony Bryan
- Re: [ftpext] A few comments on draft-bryan-ftp-ha… Robert McMurray
- Re: [ftpext] A few comments on draft-bryan-ftp-ha… Tim Kosse
- Re: [ftpext] A few comments on draft-bryan-ftp-ha… Robert McMurray
- Re: [ftpext] A few comments on draft-bryan-ftp-ha… Paul Ford-Hutchinson
- Re: [ftpext] A few comments on draft-bryan-ftp-ha… Tim Kosse
- Re: [ftpext] A few comments on draft-bryan-ftp-ha… Anthony Bryan
- Re: [ftpext] A few comments on draft-bryan-ftp-ha… Paul Ford-Hutchinson
- Re: [ftpext] A few comments on draft-bryan-ftp-ha… Anthony Bryan