Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

adds https ability to go rest client and pulsectl #389

Merged
merged 1 commit into from
Oct 7, 2015
Merged

adds https ability to go rest client and pulsectl #389

merged 1 commit into from
Oct 7, 2015

Conversation

pittma
Copy link
Contributor

@pittma pittma commented Oct 7, 2015

HTTPS is available in two modes on the REST API: with a given certificate
/ key pair, or it can generate unsigned ones at start up. The client
needs the ability to bypass cert signing errors when communicating
with the API. In this commit a param is added when constructing a
client instance called insecure. If this flag is given, the
certificating signing errors are bypassed.

When pulsectl constructs a client instance, it passes in the value of a
new --insecure flag which provides pulsectl the same functionality
described above.

HTTPS is available in two modes on the REST API: with a given certificate
/ key pair, or it can generate unsigned ones at start up.  The client
 needs the ability to bypass cert signing errors when communicating
with the API.  In this commit a param is added when constructing a
client instance called `insecure`.  If this flag is given, the
certificating signing errors are bypassed.

When pulsectl constructs a client instance, it passes in the value of a
new `--insecure` flag which provides pulsectl the same functionality
described above.
@jcooklin
Copy link
Collaborator

jcooklin commented Oct 7, 2015

LGTM

(I initially thought the "error connecting to API.." error should be typed and wrapped in a perror which would capture the uri the request was using but I'm not sure it warrants changing 'do' to return a perror.)

pittma added a commit that referenced this pull request Oct 7, 2015
adds https ability to go rest client and pulsectl
@pittma pittma merged commit e9286a8 into intelsdi-x:master Oct 7, 2015
@pittma pittma deleted the client-https branch October 21, 2015 20:00
@lynxbat lynxbat mentioned this pull request Dec 16, 2016
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants