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

HTTP file sources fail for GET-only URIs

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • PUP 4.5.0, PUP 4.5.1
    • PUP 6.17.0
    • None

    Description

      URIs that only succeed on a GET cannot currently be used as file sources, as when retrieving file metadata, we use a HEAD request. The most notable of these URI types are Amazon S3 presigned URIs. These URIs contain a signatures with the HTTP method in them, which is usually GET for downloading. This causes them to return a 403 when responding to a HEAD request. If that occurs puppet will fallback to making a partial GET request using the Range header, so that it can retrieve the file checksum and determine if the local file needs to be updated, but do so without retrieving any file content.

      Pull request with a fix is here: https://github.com/puppetlabs/puppet/pull/5002

      Attachments

        Issue Links

          Activity

            People

              josh Josh Cooper
              mattcasper Matt Casper
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support