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

UpdateSiteWarningsConfiguration should be confirgurable via JCasC

    • 2.333

      By using JCasC I have the plugins versions under my control.

      So I don't want to disable the security warnings manually every time I create/configure a new Jenkins instance via JCasC.
      It should be possible to configure it via JCasC.

      The JCasC configuration could be look like this:

      security:
        updateSiteWarningsConfiguration:
          ignoredWarnings:
            - 'SECURITY-248'
      

      First try to patch UpdateSiteWarningsConfiguration (using @DataBoundSetter see [JCasC Requirements - guide for plugin maintainers](https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/REQUIREMENTS.md) ) has failed.
      So any hint would be welcome.

          [JENKINS-56057] UpdateSiteWarningsConfiguration should be confirgurable via JCasC

          Uwe Hanisch created issue -

          Daniel Beck added a comment -

          Realistically it's probably time to disable the SECURITY-248 warning for newer versions anyway. IIRC it was intended as a temporary measure to ensure users who had previously updated saw it due to the large time delay, but it's been a year now.

          Daniel Beck added a comment - Realistically it's probably time to disable the SECURITY-248 warning for newer versions anyway. IIRC it was intended as a temporary measure to ensure users who had previously updated saw it due to the large time delay, but it's been a year now.

          Uwe Hanisch added a comment -

          Nevertheless:
          All what I can configure via GUI should also be possible via JCasC.
          (if there is an XML config file beneath ~jenkins/ it should be possible to set it via JCasC)

          Uwe Hanisch added a comment - Nevertheless: All what I can configure via GUI should also be possible via JCasC. (if there is an XML config file beneath ~jenkins/ it should be possible to set it via JCasC)

          It would be great to be able to suppress certain warnings via JSasC.

          Simon Wydooghe added a comment - It would be great to be able to suppress certain warnings via JSasC.

          I would like to see this feature as well

          Daniel Estermann added a comment - I would like to see this feature as well

          Any update?

          Manuel Morejon added a comment - Any update?

          max allan added a comment -

          Your annual reminder that this issue still needs fixing!

          Jenkins says there are no attributes available still (I think that is what it says)

          Caused by: io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.security.UpdateSiteWarningsConfiguration : ignoredWarnings.
          Available attributes :
          at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:375)
          at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:364)

          max allan added a comment - Your annual reminder that this issue still needs fixing! Jenkins says there are no attributes available still (I think that is what it says) Caused by: io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.security.UpdateSiteWarningsConfiguration : ignoredWarnings. Available attributes : at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:375) at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:364)

          Daniel Beck added a comment -

          Your annual reminder that this issue still needs fixing!

          Patches welcome: https://www.jenkins.io/participate/code/ + https://github.com/jenkinsci/jenkins/blob/master/CONTRIBUTING.md

          Daniel Beck added a comment - Your annual reminder that this issue still needs fixing! Patches welcome: https://www.jenkins.io/participate/code/ + https://github.com/jenkinsci/jenkins/blob/master/CONTRIBUTING.md
          Tim Jacomb made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Tim Jacomb made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

            timja Tim Jacomb
            uhanisch Uwe Hanisch
            Votes:
            13 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved: