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

Re-key operation seems to take unnecessarily long

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • core
    • Jenkins Enterprise 1.480.3.1 LTS

      While monitoring the rekey.log, I noticed:

      • It searches archived artifacts directories ($JENKINS_HOME/jobs/$JOB_NAME/builds/$BUILD_ID/archive)? Aren't they just saved workspaces (which are known to not contain secrets)? In fact, it looks like 'artifacts' is excluded (according to the Wiki), and not 'archive'.
      • fingerprints/ is scanned as well and probably doesn't need to be
      • It scans both regular and symlinked (like 12 -> 2013-03-19_22-11-03 on Linux) builds, and probably checks every file within twice?

      On this instance, re-keying finished after 40 minutes with rekey.log containing 2425 lines and resulting in 36 re-keyed files. find -L $JENKINS_HOME -name '*.xml' | wc -l found 235320 files. So there's probably some potential for optimization.

      If this is a one-time issue, this can probably be ignored, but if re-keying could be required again in the future, this should be fixed.

          [JENKINS-17289] Re-key operation seems to take unnecessarily long

          Daniel Beck created issue -
          Oleg Nenashev made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: security [ 15508 ]
          Labels New: fingerprints security
          Daniel Beck made changes -
          Link New: This issue is related to SECURITY-174 [ SECURITY-174 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 148123 ] New: JNJira + In-Review [ 177097 ]
          Daniel Beck made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: