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

Add support for username:password@domain for http/https sources

    XMLWordPrintable

    Details

    • Template:
      PUP Bug Template
    • Acceptance Criteria:
      Hide

      1. It should be possible to retrieve file content using HTTP Basic Authentication
      2. The credentials should not appear in debug output or reports.

      Show
      1. It should be possible to retrieve file content using HTTP Basic Authentication 2. The credentials should not appear in debug output or reports.
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Hide
      Puppet can now retrieve file content from webservers that require Basic Authenication. Add the username and password to the {{source}} parameter for the file resource, such as `source => "https://[user]:[password]@www.example.com/path/to/file"`
      Show
      Puppet can now retrieve file content from webservers that require Basic Authenication. Add the username and password to the {{source}} parameter for the file resource, such as `source => "https://[user]:[password]@ www.example.com/path/to/file "`

      Description

      the following code:

      file { '/tmp/hello.txt':
      ensure => file,
      source => "http://myuser:mypassword@hostwith.basic.auth.demo/hello.txt",
      }
      

      currently results to:

      2016-11-14 09:41:32 +0000 /Stage[main]/Hello/File[/tmp/hello.txt] (err): Could not evaluate: Could not retrieve information from environment production source(s) http://myuser:mypassword@hostwith.basic.auth.demo/hello.txt
      

      it would be great if this was supported in the product

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              josh Josh Cooper
              Reporter:
              kranium.gikos Kranium Gikos
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support