-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
User Story
As an admin of Jenkins, I would like the flexibility to restrict how credentials are accessed based on the class type of the caller requesting the credential so that I can flexibly restrict credentials without the need to add new scopes.
Acceptance Criteria
- Verify that arbitrary classes can be selected for restricting. (e.g. hudson.model.Item)
Additional Information
This will likely require at least 3 new classes (I'm not completely sure):
- ClassnameSpecification extending from DomainSpecification.java
- ClassnameRequirement extending from DomainRequirement.java
- Perhaps a ClassnameMatcher which implements CredentialsMatcher.java (I'm really not sure about this)
I would like the configuration of the DomainSpecification to be similar to how the job restrictions plugin allows configuration of restricting by class. See the following screenshot:
[JENKINS-53806] Class-based DomainSpecification filter for more flexibility of restricting credentials
Attachment | New: screenshot-job-restrictions-plugin-config.png [ 44608 ] |
Description |
Original:
h2. User Story As an admin of Jenkins, I would like the flexibility to restrict how credentials are accessed based on the class type of the caller requesting the credential so that I can flexibly restrict credentials without the need to add new scopes. h2. Acceptance Criteria * Verify that arbitrary classes can be selected for restricting. (e.g. hudson.model.Item) h2. Additional Information This will likely require at least 3 new classes (I'm not completely sure): * {{ClassnameSpecification}} extending from [DomainSpecification.java|https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/domains/DomainSpecification.java] * {{ClassnameRequirement}} extending from [DomainRequirement.java|https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/domains/DomainRequirement.java] * Perhaps a {{ClassnameMatcher}} which implements [CredentialsMatcher.java|https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/CredentialsMatcher.java] (I'm really not sure about this) I would like the configuration of the DomainSpecification to be similar to how the job restrictions plugin allows configuration of restricting by class. |
New:
h2. User Story As an admin of Jenkins, I would like the flexibility to restrict how credentials are accessed based on the class type of the caller requesting the credential so that I can flexibly restrict credentials without the need to add new scopes. h2. Acceptance Criteria * Verify that arbitrary classes can be selected for restricting. (e.g. hudson.model.Item) h2. Additional Information This will likely require at least 3 new classes (I'm not completely sure): * {{ClassnameSpecification}} extending from [DomainSpecification.java|https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/domains/DomainSpecification.java] * {{ClassnameRequirement}} extending from [DomainRequirement.java|https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/domains/DomainRequirement.java] * Perhaps a {{ClassnameMatcher}} which implements [CredentialsMatcher.java|https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/CredentialsMatcher.java] (I'm really not sure about this) I would like the configuration of the DomainSpecification to be similar to how the job restrictions plugin allows configuration of restricting by class. See the following screenshot: |
Description |
Original:
h2. User Story As an admin of Jenkins, I would like the flexibility to restrict how credentials are accessed based on the class type of the caller requesting the credential so that I can flexibly restrict credentials without the need to add new scopes. h2. Acceptance Criteria * Verify that arbitrary classes can be selected for restricting. (e.g. hudson.model.Item) h2. Additional Information This will likely require at least 3 new classes (I'm not completely sure): * {{ClassnameSpecification}} extending from [DomainSpecification.java|https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/domains/DomainSpecification.java] * {{ClassnameRequirement}} extending from [DomainRequirement.java|https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/domains/DomainRequirement.java] * Perhaps a {{ClassnameMatcher}} which implements [CredentialsMatcher.java|https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/CredentialsMatcher.java] (I'm really not sure about this) I would like the configuration of the DomainSpecification to be similar to how the job restrictions plugin allows configuration of restricting by class. See the following screenshot: |
New:
h2. User Story As an admin of Jenkins, I would like the flexibility to restrict how credentials are accessed based on the class type of the caller requesting the credential so that I can flexibly restrict credentials without the need to add new scopes. h2. Acceptance Criteria * Verify that arbitrary classes can be selected for restricting. (e.g. hudson.model.Item) h2. Additional Information This will likely require at least 3 new classes (I'm not completely sure): * {{ClassnameSpecification}} extending from [DomainSpecification.java|https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/domains/DomainSpecification.java] * {{ClassnameRequirement}} extending from [DomainRequirement.java|https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/domains/DomainRequirement.java] * Perhaps a {{ClassnameMatcher}} which implements [CredentialsMatcher.java|https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/CredentialsMatcher.java] (I'm really not sure about this) I would like the configuration of the DomainSpecification to be similar to how the job restrictions plugin allows configuration of restricting by class. See the following screenshot: !screenshot-job-restrictions-plugin-config.png|thumbnail! |
Link | New: This issue is related to SECURITY-1175 [ SECURITY-1175 ] |
Assignee | Original: Stephen Connolly [ stephenconnolly ] |