Skip to content

Credential validity check does not work for credentials-admin #308

@rittneje

Description

@rittneje

Jenkins and plugins versions report

n/a

What Operating System are you using (both controller, and any agents involved in the problem)?

n/a

Reproduction steps

if (!Jenkins.get().hasPermission(Jenkins.ADMINISTER)) {
// for security reasons, do not perform any check if the user is not an admin
return FormValidation.ok();
}

I have the credentials-admin role on our CloudBees controller. However, because of this overly restrictive check, I can no longer rely on this plugin to verify that the AWS credentials I am configuring are correct before saving them. This makes credential rotation risky.

Expected Results

Anyone who can set the credentials ought to be able to test their validity.

Actual Results

The check no longer happens for credentials-admin.

Anything else?

No response

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions