Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin installation broke credentials used by other plugins #373

Open
hostalp opened this issue Nov 8, 2021 · 12 comments
Open

Plugin installation broke credentials used by other plugins #373

hostalp opened this issue Nov 8, 2021 · 12 comments
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@hostalp
Copy link

hostalp commented Nov 8, 2021

Hello,
after installing this plugin, several other plugins broke as they lost access to their configured credentials.
This includes SonarQube Scanner plugin that has a server authentication token configured in the Jenkins server config and Dependency-Track plugin that has an API key configured in the Jenkins server config as well.
EDIT: And it also affected SSH credentials managed by the SSH Agent plugin in each job config.

These 2 plugins can't now see their (long time ago) configured credentials and are now only able to be configured with 2 types of OpenShift plugin related credentials.

I found out that this plugin caused creation of the following file (it didn't exist before) which contains the 2 above menitioned openshift credential types in the filter settings so it appears to be related.

credentials-configuration.xml

<?xml version='1.1' encoding='UTF-8'?>
<com.cloudbees.plugins.credentials.CredentialsProviderManager plugin="credentials@2.6.1">
  <providerFilter class="com.cloudbees.plugins.credentials.CredentialsProviderFilter$Includes">
    <classNames class="linked-hash-set">
      <string>io.jenkins.blueocean.rest.impl.pipeline.credential.BlueOceanCredentialsProvider</string>
      <string>com.cloudbees.hudson.plugins.folder.properties.FolderCredentialsProvider</string>
      <string>com.cloudbees.plugins.credentials.SystemCredentialsProvider$ProviderImpl</string>
      <string>com.cloudbees.plugins.credentials.UserCredentialsProvider</string>
    </classNames>
  </providerFilter>
  <typeFilter class="com.cloudbees.plugins.credentials.CredentialsTypeFilter$Includes">
    <classNames class="linked-hash-set">
      <string>com.openshift.jenkins.plugins.OpenShiftTokenCredentials$DescriptorImpl</string>
      <string>org.jenkinsci.plugins.kubernetes.credentials.OpenShiftBearerTokenCredentialImpl$DescriptorImpl</string>
    </classNames>
  </typeFilter>
  <restrictions/>
</com.cloudbees.plugins.credentials.CredentialsProviderManager>

After uninstalling the OpenShift Client plugin and deleting the credentials-configuration.xml file things went back to normal.

Jenkins 2.303.2
OpenShift Client plugin 1.0.35
Credentials plugin 2.6.1 https://plugins.jenkins.io/credentials/
SonarQube Scanner plugin 2.13.1 https://plugins.jenkins.io/sonar/
Dependency-Track plugin 4.0.0 https://plugins.jenkins.io/dependency-track/
SSH Agent plugin 1.23 https://plugins.jenkins.io/ssh-agent/

@akram
Copy link
Contributor

akram commented Nov 8, 2021

Hi @hostalp ,

I have a running Jenkins instance with the forementioned plugin but I can't see the credentials-configuration.xml file anywhere, even after forcibely configuring additional clusters.
Is there any action that has to be done to make it appear?

@hostalp
Copy link
Author

hostalp commented Nov 8, 2021

I'm not sure how it could be easily reproduced. Looking at the credentials-configuration.xml file creation time I can see that it was created some time after the OpenShift plugin installation. By looking at the jenkins log I don't see anything logged at that particular time, but there were definitely some builds running. So perhaps some build that made use of one of those credentials triggered that. I can only speculate.

@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 6, 2022
@hostalp
Copy link
Author

hostalp commented Feb 7, 2022

/remove-lifecycle stale

@openshift-ci openshift-ci bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 7, 2022
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 8, 2022
@hostalp
Copy link
Author

hostalp commented May 9, 2022

/remove-lifecycle stale

@openshift-ci openshift-ci bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 9, 2022
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 7, 2022
@hostalp
Copy link
Author

hostalp commented Aug 8, 2022

/remove-lifecycle stale

@openshift-ci openshift-ci bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 8, 2022
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 7, 2022
@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Dec 7, 2022
@hostalp
Copy link
Author

hostalp commented Dec 7, 2022

/remove-lifecycle rotten
/lifecycle frozen

@openshift-ci openshift-ci bot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Dec 7, 2022
@coreydaley
Copy link
Member

@hostalp This is over a year old and we have had releases since then. Can you please verify if this is still an issue for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

No branches or pull requests

4 participants