Interview Prep/Jenkins/Credentials & security

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 →

  1. Create per-team folders and move each team's credentials into their folder's store.
  2. Grant Credentials/View and Job/Configure only within each team's folder (project matrix or role strategy).
  3. 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.

All Jenkins questions Roadmap: Jenkins

More on Credentials & security