From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0F766389043C; Wed, 21 Apr 2021 14:09:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F766389043C From: "fche at redhat dot com" To: elfutils-devel@sourceware.org Subject: [Bug debuginfod/27758] security idea: DEBUGINFOD_VERIFY mode Date: Wed, 21 Apr 2021 14:09:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: debuginfod X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fche at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2021 14:09:31 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27758 --- Comment #5 from Frank Ch. Eigler --- (In reply to Vitaly Chikunov from comment #3) > Instead of `X-Debuginfod-Hash` you can use `ETag` where you can put anyth= ing > including sha256 (can be prescribed in webapi description), then GET requ= est > with `If-None-Match` + tag value (which is a hash) will return just 304 if > the hash is not changed. So HEAD request is not needed too. That's a good idea, except in the case of an older [current] debuginfod that doesn't understand If-None-Match, and would just resend the entire content every time. But at least it's not a security problem, just a performance o= ne. --=20 You are receiving this mail because: You are on the CC list for the bug.=