Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom headers on HTTP requests #3094

Closed
mharvey-jt opened this issue Nov 8, 2022 · 0 comments
Closed

Custom headers on HTTP requests #3094

mharvey-jt opened this issue Nov 8, 2022 · 0 comments
Assignees
Milestone

Comments

@mharvey-jt
Copy link
Contributor

For observability purposes we would like to be able to annotate all HTTP requests with headers that indicate the source of read. This will be a mix of statically-assigned config data, and request-specific, eg the user id, pid, which are available from the fuse request.

eg in config file

CUSTOM_HEADERS=h1=foo1,h2=foo2

and headers in the HTTP request:

X-CVMFS-HEADER-h1: foo1
X-CVMFS-HEADER-h2: foo2
X-CVMFS-HEADER-uid: <uid>
X-CVMFS-HEADER-gid: <gid>
X-CVMFS-HEADER-pid: <pid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants