Interview Prep/Jenkins/Credentials & security

What are API tokens and how do you manage them?

BeginnerConceptCredentials & security
Answer

Per-user tokens generated in User > Security > API Token, used instead of passwords for CLI, REST and scripts. They inherit the user's permissions, can be named and revoked individually, and their last use is tracked. Disable legacy tokens (security: apiToken: creationOfLegacyTokenEnabled: false). For automation, create a dedicated service user with minimal permissions rather than using an admin's token.

All Jenkins questions Roadmap: Jenkins

More on Credentials & security