|
In
PUP-1072
we added support for http and https URL schemes for file resources' source attributes:
Somehow we failed to realize that the implementation of this feature requires that the remote webserver present a certificate that is trusted by the puppet agent's SSL configuration. In practice this is extremely unlikely and difficult to configure, and therefore the utility of this feature is pretty limited.
In the code, this is because the request ultimately uses the same routines (in Puppet::Util::HttpProxy.get_http_object) that the agent itself uses, where the SSL verification mode is hardcoded but the certificate store is not.
There should be some way to permit retrieval of these files. A couple of options that occured to me as I was tracing this down:
1. make the ssl verification mode configurable or disabled by default for file-source retrieval (equivalent to curl -k) 2. use the system-wide trust store instead of puppet's store 3. expose the certificate trust and verification mode as parameters on the file type (this is truly awful)
... surely someone else has better ideas ...
|