• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • core

      RekeySecretAdminMonitor should be generalized so that done is not a simple boolean, but a numeric counter which gets compared to a constant that is incremented each time we ship a security fix that might have compromised master.key. The call to isUpgradedFromBefore(new VersionNumber("1.496.*")) needs to be somehow changed. And Messages.pleaseRekeyAsap needs to be generalized.

      Probably there should also be a button in /configureSecurity allowing an admin to initiate rekeying at any other time that they suspect keys might have been compromised.

          [JENKINS-27446] Rerun SecretRewriter

          Daniel Beck added a comment - - edited

          Re-keying wasn't fun. It took forever and in the end modified 36 files. JENKINS-17289 suggests a few performance improvements that should be considered if this becomes a semi-regular event.

          Daniel Beck added a comment - - edited Re-keying wasn't fun. It took forever and in the end modified 36 files. JENKINS-17289 suggests a few performance improvements that should be considered if this becomes a semi-regular event.

          Jesse Glick added a comment -

          SecretRewriter would also need to be initialized with something other than Secret.getLegacyKey(), and RekeySecretAdminMonitor would have to also look in DefaultConfidentialStore.rootDir for ConfidentialKey instances saved using the old master.key.

          Jesse Glick added a comment - SecretRewriter would also need to be initialized with something other than Secret.getLegacyKey() , and RekeySecretAdminMonitor would have to also look in DefaultConfidentialStore.rootDir for ConfidentialKey instances saved using the old master.key .

          Does this really belong to SECURITY? Seems to me that it should be in JENKINS.

          Kohsuke Kawaguchi added a comment - Does this really belong to SECURITY? Seems to me that it should be in JENKINS.

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: