masked variable
A CI/CD variable whose value GitLab replaces with [MASKED] wherever it appears in a job log.
In more detail
A value can be masked only if it is a single line of at least eight characters from the allowed set. Masking hides the value in logs but does not stop a script from sending it elsewhere. A masked and hidden variable cannot be revealed in the settings after it is saved.
Related terms
- CI/CD job token — A short-lived token GitLab creates for each job, in CI_JOB_TOKEN, that lets the job call GitLab's API, registries and package registries.
- debug logging — Setting CI_DEBUG_TRACE to true, which makes a job log every shell command and every variable it can see.
Taught in
- CI/CD Variables: Where Values Come From, And Which One Wins — GitLab Certified CI/CD Associate Exam Prep
- Environments, Review Apps And Deployments — GitLab Certified CI/CD Associate Exam Prep
- Package Registries: Publishing With The Job Token — GitLab Certified CI/CD Associate Exam Prep
- Runner Types And Executors: Who Runs The Job, And Where — GitLab Certified CI/CD Associate Exam Prep
- Debugging Pipelines: The Graph, The Errors, The Logs — GitLab Certified CI/CD Associate Exam Prep
- Recall Sprint: Knowing It Cold, With No Docs And No AI — GitLab Certified CI/CD Associate Exam Prep