Skip to content

Frontend: Add a helpful validation message when variable value do not meet required minimum characters

Release notes

Problem to solve

When creating a new project or group variable, masked variables need to be at least 8 characters long. However, there's no way for me to know about this limitation. The form refuses to mask the variable without any explanation why.

Screen_Recording_2022-06-22_at_16.44.09

Proposal

When attempting to mask a variable with value that has less than 8 characters, provide a specific error validation for the value input that says something like:

To be masked, the value must have at least 8 characters, cannot contain newline characters, and cannot match the name of an existing predefined or custom CI/CD variable.

Intended users

Feature Usage Metrics

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by Mireya Andres