Coder Social home page Coder Social logo

Icons don't display for "SSH User Private Key" & "Certificate" credentials types about aws-secrets-manager-credentials-provider-plugin HOT 4 CLOSED

jenkinsci avatar jenkinsci commented on July 29, 2024
Icons don't display for "SSH User Private Key" & "Certificate" credentials types

from aws-secrets-manager-credentials-provider-plugin.

Comments (4)

chriskilding avatar chriskilding commented on July 29, 2024

I believe this was caused by the credentials API plugin moving to a new icon for these credential types. The new icons have different names to the old icons. Because the AWS provider credentials still use the old icon names, they're now out of sync with the credentials API plugin - that's why you don't see the correct icon for them (or you see a broken icon.

The changes I've seen are:

  • SSH key: icon-fingerprint -> symbol-fingerprint
  • Certificate: icon-credentials-certificate -> icon-application-certificate

In #216 I updated the icon used for the SSH key. Your bug report shows that other credential types may also have new icons. Could you let me know the new icon name for the Certificate type (and maybe the other main credential types) that you see in your Web inspector console? That way I can include these fixes in the PR as well.

from aws-secrets-manager-credentials-provider-plugin.

exoaturner avatar exoaturner commented on July 29, 2024

Thanks @chriskilding

I went through each of the secrets your plugin supports and expected "working" versions of the icons. I hope the below is useful:

string (Kind: secret text) -> symbol-key

string

usernamePassword (Kind: Username with password) -> symbol-id-card

usernamePassword

sshUserPrivateKey (Kind: SSH Username with private key) -> symbol-fingerprint

sshUserPrivateKey

certificate (Kind: certificate) -> icon-application-certificate

certificate

file (Kind: Secret file) -> symbol-key

file

Kind regards,
Aaron

from aws-secrets-manager-credentials-provider-plugin.

chriskilding avatar chriskilding commented on July 29, 2024

Thanks :)

The AWS implementations of the String and File credentials don't override getIconClassName(). This means they inherit the credentials API plugin's default icon name. That stays current with whatever the default credentials provider does, so essentially it's always correct.

The only credential types that need updating in code are the ones that do override getIconClassName. That obviously includes SSH Key and Certificate. It also includes Username and Password. I'll get those done in #216.

For the Certificate type, it looks like there is a further change coming down the pipe; the new name is icon-application-certificate, however if you look in Jenkins core, you see they've changed this again to symbol-ribbon. This change has not yet propagated to the Credentials API plugin but it will do eventually. This means we're looking at another breaking icon change down the line.

from aws-secrets-manager-credentials-provider-plugin.

chriskilding avatar chriskilding commented on July 29, 2024

Hi, version 1.198.v839f082578db is now released which contains fixes for the icons as they stand today.

If you could install that and confirm whether it fixes the issues you saw, that would be great.

Btw the new minimum supported Jenkins version of the plugin is 2.346.3

from aws-secrets-manager-credentials-provider-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.