Jira (PUP-10316) Update http report processor to use http client

1 view
Skip to first unread message

Josh Cooper (JIRA)

unread,
Feb 26, 2020, 1:22:04 AM2/26/20
to puppe...@googlegroups.com
Josh Cooper created an issue
 
Puppet / Task PUP-10316
Update http report processor to use http client
Issue Type: Task Task
Assignee: Unassigned
Created: 2020/02/25 10:21 PM
Priority: Normal Normal
Reporter: Josh Cooper

The http report processor calls Puppet::Network::HttpPool to post the report to Puppet[:reporturl]. Modify the processor to use Puppet::HTTP::Client#post instead. It should continue to send the same query parameters, eg ({metric_id}}, content-type, basic authentication, etc as it currently does. It should continue to only trust the puppet PKI.

This is blocked on puppetserver integration

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (JIRA)

unread,
Feb 26, 2020, 1:41:03 PM2/26/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
The {{http}} report processor calls {{Puppet::Network::HttpPool}} to post the report to {{Puppet[:reporturl]}}. Modify the processor to use {{Puppet::HTTP::Client#post}} instead. It should continue to send the same query parameters, eg ({ { metric_id}},  {{ content-type }} , basic authentication, etc as it currently does. It should continue to only trust the puppet PKI.


This is blocked on puppetserver integration

Josh Cooper (Jira)

unread,
Mar 2, 2020, 12:59:05 PM3/2/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Coremunity Grooming
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Mar 2, 2020, 5:48:04 PM3/2/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 6.15.0

Josh Cooper (Jira)

unread,
Mar 4, 2020, 2:10:03 PM3/4/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
The {{http}} report processor calls {{Puppet::Network::HttpPool}} to post the report to {{Puppet[:reporturl]}}. Modify the processor to use {{Puppet::HTTP::Client#post}} instead. It should continue to send the same query parameters, eg (
{{metric_id}}, {{content-type}}, basic authentication, etc as it currently does. It should continue to only trust the puppet PKI.

This is blocked on
puppetserver integration PUP-10324

Josh Cooper (Jira)

unread,
Mar 4, 2020, 4:43:03 PM3/4/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Acceptance Criteria: When the http report processor receives a report, it should post the report to {{Puppet[:reporturl]}} using the new Puppet::HTTP::Client API. When using puppetserver, it should use the ExternalClient implementation created when puppetserver registered its http_client_class. When using {{puppet apply}} it should use the default Client implementation.

The post request should include {{metric_id}} and if specified, user/password credentials for basic authentication.

The post request should only trust the puppet PKI.

The processor should receive a Puppet::HTTP::Response and may need to rescue Puppet::HTTP::HTTPError or subclasses.

Josh Cooper (Jira)

unread,
Mar 13, 2020, 7:39:03 PM3/13/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Coremunity Grooming Hopper

Josh Cooper (Jira)

unread,
Mar 23, 2020, 4:06:03 PM3/23/20
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Josh Cooper
Change By: Josh Cooper
Assignee: Josh Cooper

Josh Cooper (Jira)

unread,
Mar 23, 2020, 4:07:03 PM3/23/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Coremunity Hopper Platform Core KANBAN

Melissa Stone (Jira)

unread,
Mar 26, 2020, 1:40:03 PM3/26/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Mar 26, 2020, 7:48:03 PM3/26/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes: Enhancement
Release Notes Summary: The "http" report processor uses puppet's new HTTP client when running in the context of "puppet apply". When running in the context of puppetserver, it uses the existing HTTP client in puppetserver.

Josh Cooper (Jira)

unread,
Mar 30, 2020, 7:38:06 PM3/30/20
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
Apr 6, 2020, 9:38:05 AM4/6/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages