Bug 30962 - ensure x-debuginfod-file / -archive headers always return full path names
Summary: ensure x-debuginfod-file / -archive headers always return full path names
Status: RESOLVED FIXED
Alias: None
Product: elfutils
Classification: Unclassified
Component: debuginfod (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-10 19:52 UTC by Frank Ch. Eigler
Modified: 2023-10-12 15:47 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Ch. Eigler 2023-10-10 19:52:52 UTC
We kind of decided haphazardly to `basename` some of those strings and not others.  This was partly with some halfbaked notion of security in mind, to avoid exposing path names on a server.

We should switch to full path names: basically just return everything in its raw form: file names, archive names, names-from-archives.  This would simplify things, and making naming consistent between x-debuginfod-file: BASENAME and the forthcoming metadata-query FULLPATH.   And we can document how to strip sensitive prefixes if admins want to keep things hush-hush.
Comment 1 Frank Ch. Eigler 2023-10-12 15:47:41 UTC
Author: Frank Ch. Eigler <fche@redhat.com>
Date:   Tue Oct 10 16:21:00 2023 -0400

    PR30962: debuginfod: full paths for X-DEBUGINFOD-FILE/ARCHIVE response headers