A user reports they can see the whole job configuration including masked passwords in XML at `/job/x/config.xml`. Is this a leak?
IntermediateScenarioCredentials & security
Answer
Situation read → Users with Job/ExtendedRead or Job/Configure can read config.xml. Secrets in it are encrypted ({AQAAABAAAA...}), but anyone with script console access could decrypt them.
What I'd do →
- Check who has
Job/Configure/ExtendedReadon that job. - Move secrets out of job parameters/configs into the credentials store and reference by ID.
- Use password parameters sparingly; they are stored encrypted but visible to configurers in encrypted form.
Why → Encrypted-at-rest secrets are still only as safe as the admin boundary.
Interview tip → Know that the {AQAAAB...} format is a Jenkins Secret.
More on Credentials & security
What credential types does Jenkins support out of the box?BeginnerWhat is the difference between Global and System credential scope?IntermediateHow do folder-scoped credentials help multi-team controllers?IntermediateHow does Jenkins mask secrets in logs and what are its limits?AdvancedWhat authorization strategies are available?IntermediateWhat are the key permissions to understand in matrix auth?Intermediate