Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6114

Add support for Artifactory checksum headers and enable SHA1 checksum type

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.17.0
    • Component/s: Docs
    • Labels:
    • Template:
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Puppet can now retrieve file content from artifactory using an HTTP(S) source parameter.

      Description

      I've created a patch to add support for the artifactory HTTP headers:
      X-Checksum-Md5
      X-Checksum-Sha1
      X-Checksum-Sha256

      to the file resource, when used with an http source. I've also enabled sha1 support as a checksum type. This was already in the code, and with the open source version of artifactory it is the strongest checksum type available.

      The code will prioritize sha256, then sha1, then md5 from artifactory, then content-md5 from apache digest.

      This reduces resource flapping if the source is an artifactory server.

      https://github.com/puppetlabs/puppet/pull/4828

      A newer PR was filed in https://github.com/puppetlabs/puppet/pull/5707

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              josh Josh Cooper
              Reporter:
              dcochran1 Dylan Cochran
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support