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

X-CORRELATION-ID and X-REFERRER not documented in Rest contract #245

Open
pnbecker opened this issue Oct 30, 2023 · 1 comment
Open

X-CORRELATION-ID and X-REFERRER not documented in Rest contract #245

pnbecker opened this issue Oct 30, 2023 · 1 comment
Labels
enhancement help wanted This issue is looking for volunteers or help

Comments

@pnbecker
Copy link
Member

DSpace/DSpace#3303 introduced a header X-CORRELATION-ID and X-REFERRER. The correlation id shows up in almost every log entry in the backend. Unfortunately, it is not documented in the RestContract. The corresponding PR for dspace-angular seems to be DSpace/dspace-angular#1255.

@pnbecker pnbecker added enhancement needs triage New issue needs triage and/or scheduling labels Oct 30, 2023
@github-project-automation github-project-automation bot moved this to 🆕 Triage in DSpace Backlog Oct 30, 2023
@tdonohue
Copy link
Member

Good catch, I agree it should be added.

These headers are NOT required for a client, but they are used in backend logging in order to be able to "track" a user's session and what UI page generated a request to the backend. The basic description is in the description of that UI PR: DSpace/dspace-angular#1255

  • X-CORRELATION-ID is a randomly generated UUID optionally sent by the client, and assumed to be "kept stable" for a single user session. It can be used as a form of "session ID" in the backend logs, allowing an administrator to be able to understand the activities of a single user session without tracking identifiable information. If not specified, the logs will say "unknown".
  • X-REFERRER contains the user interface (client) path (e.g. /item/[uuid] for an Item page) that generated the REST request. This serves a similar purpose as the Referer HTTP Header, but is used because the Referer HTTP Header is sometimes modified by browsers. This header is again only used for backend logs, to allow administrators to understand which User Interface page generated the REST API request. It is also optional, and if missing will say "unknown".

Needs a volunteer to pull this into official RestContract docs. These are just my rough notes of what I am aware to be true.

@tdonohue tdonohue added help wanted This issue is looking for volunteers or help and removed needs triage New issue needs triage and/or scheduling labels May 1, 2024
@tdonohue tdonohue moved this from 🆕 Triage to 🙋 Needs Help / Unscheduled in DSpace Backlog May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted This issue is looking for volunteers or help
Projects
Status: 🙋 Needs Help / Unscheduled
Development

No branches or pull requests

2 participants