Overview - Credential scoping (global, folder)
What is it?
Credential scoping in Jenkins means deciding where stored secrets like passwords or tokens can be used. Credentials can be set globally, making them available to all jobs, or scoped to a specific folder, limiting their use to jobs inside that folder. This helps control who can access sensitive information in a Jenkins environment. It is a way to organize and protect credentials based on where they are needed.
Why it matters
Without credential scoping, all jobs would have access to all credentials, increasing the risk of accidental or malicious exposure. This could lead to security breaches or misuse of sensitive data. Scoping helps teams keep secrets safe by only sharing them where necessary, reducing the chance of leaks and making audits easier. It also supports better team collaboration by isolating credentials per project or team.
Where it fits
Before learning credential scoping, you should understand Jenkins basics, including jobs, folders, and how credentials are stored. After mastering scoping, you can explore Jenkins security best practices, role-based access control, and pipeline integrations that use scoped credentials.