Skip to content

Show import container registry vars only on gitlab.com

  • Please check this box if this contribution uses AI-generated content as outlined in the GitLab DCO & CLA

What does this MR do and why?

This MR hides the in #357799 (closed) specified values from the application settings API endpoint. This is required, as specified in the issue, because they are not useful for self managed customers.

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

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

  1. Login as Admin User to the instance
  2. Open the /api/v4/application/settings endpoint
  3. The vars should not be visible
  4. If you simulate the SaaS environment, they should be visible
Edited by 🤖 GitLab Bot 🤖

Merge request reports