jenkinsci / jenkinsci/credentials-plugin

[JENKINS-64482] Credentials page is insecure when using anonymous read access

Open
#880 0 comments 0 reactions 0 assignees View on GitHub
component:credentials-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
134
Forks
258
Avg merge
48m
Merged PRs (30d)
1

Description

We have a use case wherein we want,



  1. a limited number of administrators to have access to configuration

  2. build status to be publicly available

As such, under 'Configure Global Security', we have set the following,



  • 'Security Realm' is set to 'Jenkins' own user database' with the 'Allow users to sign up' checkbox unchecked

  • 'Authorization' is set to 'Logged-in users can do anything' with the 'Allow anonymous read access' checkbox checked

This works well, except that we have just noticed that the credentials page is exposed to non-registered visitors: they cannot modify credentials, but they can view the 'ID' and 'Name' fields for each, which may pose a soft security threat. Additionally, the 'Credentials' link appears in the left sidebar for non-registered visitors.

---
Originally reported by tidbitsoftware, imported from: Credentials page is insecure when using anonymous read access


  • status: Open
  • priority: Major
  • component(s): credentials-plugin
  • label(s): credentials
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-08

Raw content of original issue

We have a use case wherein we want,



  1. a limited number of administrators to have access to configuration

  2. build status to be publicly available

As such, under 'Configure Global Security', we have set the following,



  • 'Security Realm' is set to 'Jenkins' own user database' with the 'Allow users to sign up' checkbox unchecked

  • 'Authorization' is set to 'Logged-in users can do anything' with the 'Allow anonymous read access' checkbox checked

This works well, except that we have just noticed that the credentials page is exposed to non-registered visitors: they cannot modify credentials, but they can view the 'ID' and 'Name' fields for each, which may pose a soft security threat. Additionally, the 'Credentials' link appears in the left sidebar for non-registered visitors.

environment

```
Jenkins 2.271

Credentials Plugin 2.3.14
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.