HomePhorge

(maint) Add setting to write http debug out to stderr
bf71bff46e85Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(maint) Add setting to write http debug out to stderr

This commit adds a puppet setting, http_debug, enabling HTTP request
and responses to be written to stderr. It is disabled by default, and
should remain so in production environments, because it can leak
sensitive information.

If enabled, it displays information like:

opening connection to puppetmaster...
opened
<- "GET /production/node/node?...\r\n"
-> "HTTP/1.1 200 OK \r\n"
-> "X-Puppet-Version: 3.6.2\r\n"
-> "Content-Type: text/pson\r\n"
-> "Server: WEBrick/1.3.1 (Ruby/1.9.3/2014-02-24) OpenSSL/1.0.1e\r\n"
-> "Date: Fri, 18 Jul 2014 07:37:41 GMT\r\n"
-> "Content-Length: 4202\r\n"
-> "Connection: Keep-Alive\r\n"
-> "\r\n"
reading 4202 bytes...
-> ""
-> <response_body>
read 4202 bytes
Conn keep-alive

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU778799bdab00: (PUP-744) Allow keepalive timeout to be configurable
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPUbf71bff46e85: (maint) Add setting to write http debug out to stderr (authored by Josh Cooper <josh@puppetlabs.com>).Jul 25 2014, 6:36 PM