Team A can see Team B's production kubeconfig in the credential dropdown. Fix the model.
BeginnerScenarioCredentials & security
Answer
Situation read → Credentials are global; access is not segmented.
What I'd do →
- Create per-team folders and move each team's credentials into their folder's store.
- Grant
Credentials/ViewandJob/Configureonly within each team's folder (project matrix or role strategy). - Remove the global copies after migration.
Why → Folder credentials are only resolvable by jobs inside the folder.
Interview tip → Mention that Job/Configure in a folder implies use of its credentials.
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