Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65090

withCredentials is not honoring authorization role base strategy

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.277.1
      Role-based Authorization Strategy 3.1
      Jenkins on GKE (kube version 1.17)

      When using withCredentials in a pipeline job the operation is successful even if the user don't have the Credentials Read policy.

      In my option users who don't have permission to read credentials shouldn't be able the read them in a job either.   

          [JENKINS-65090] withCredentials is not honoring authorization role base strategy

          Ori created issue -

          Ori added a comment -

          Anyone?

          Ori added a comment - Anyone?
          Markus Winter made changes -
          Assignee Original: Oleg Nenashev [ oleg_nenashev ]

          Markus Winter added a comment -

          There is no Credentials Read permission.

          Markus Winter added a comment - There is no Credentials Read permission.

          Markus Winter added a comment -

          This is not a problem specific to role-strategy I think but should affect other authorization strategies as well (matrix-auth) so removing role-strategy

          Markus Winter added a comment - This is not a problem specific to role-strategy I think but should affect other authorization strategies as well (matrix-auth) so removing role-strategy
          Markus Winter made changes -
          Component/s Original: role-strategy-plugin [ 15758 ]

            Unassigned Unassigned
            oribenhur Ori
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: