Interview Prep/Jenkins/Credentials & security

How does Jenkins mask secrets in logs and what are its limits?

AdvancedConceptCredentials & security
Answer

When a credential is bound, Jenkins replaces occurrences of its exact value in the console output with ****. It does not mask transformed values: base64-encoded, URL-encoded, split across lines, or printed character by character. A malicious pipeline author can always exfiltrate a secret they can bind (for example by sending it to an external host). Masking prevents accidents, not attacks; access control on who can modify pipelines that use a credential is the real protection.

All Jenkins questions Roadmap: Jenkins

More on Credentials & security