Fix access to job logs for anonymous users

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

What does this MR do and why?

Opening a job page is currently broken when the AI troubleshooting feature is available and you are not logged in.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

No changes.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Ensure you have the AI troubleshooting feature available (ultimate license should be enough)
  2. Visit a job (with trace) while logged out and observe that there is no 500 error
Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading