Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PE-36193) PDB benchmark can use ssl #3835

Merged

Conversation

jpartlow
Copy link
Contributor

(maint) Remove unused base-url functions

This look to have disappeared from use years ago when the cli tooling
changed.


(PE-36193) Use puppetlabs.http.client in puppetdb.client

Replaces use of clj-http.client with our puppetlabs.hhtp.client that
provides for https communication when provided certs. Specifically,
this is to allow benchmark to use https for it's pdb commands. Threads
pdb jetty ssl opts to through to the new http client from benchmark
invocation.


(PE-36193) Update benchmark docs for https
  • Adds documentation for using benchmark over https.
  • Marks https as the preferred configuration if you are going to run
    benchmark off the primary.
  • The http configuration docs incorrectly specified that you could lock
    down http access to a single agent by setting puppetdb's jetty.host to
    the agent ip. The host setting tells puppetdb which interfaces to listen
    on on the primary, not which ip's to allow requests from.
  • Emphasized that opening http is not recommended as this is insecure and
    allows http access from any source.

This look to have disappeared from use years ago when the cli tooling
changed.
Replaces use of clj-http.client with our puppetlabs.hhtp.client that
provides for https communication when provided certs.  Specifically,
this is to allow benchmark to use https for it's pdb commands. Threads
pdb jetty ssl opts to through to the new http client from benchmark
invocation.
* Adds documentation for using benchmark over https.
* Marks https as the preferred configuration if you are going to run
benchmark off the primary.
* The http configuration docs incorrectly specified that you could lock
down http access to a single agent by setting puppetdb's jetty.host to
the agent ip. The host setting tells puppetdb which interfaces to listen
on on the primary, not which ip's to allow requests from.
* Emphasized that opening http is not recommended as this is insecure and
allows http access from any source.
@jpartlow jpartlow requested review from a team as code owners July 11, 2023 19:22
@jpartlow
Copy link
Contributor Author

I didn't find a great spot for adding tests for this. Setting up a full pdb stack with certs looked pretty fiddly as the helpers are just testing plain http I think. Open to suggestions.

@jpartlow
Copy link
Contributor Author

jpartlow commented Jul 11, 2023

Jenkins tests are sometimes failing because of a transient issue getting gems from artifactory.

...to account for some slower test runs on macos.
It's also possibly that the puppetlabs client is a bit slower? But I
think I've seen this transient before.
@austb austb merged commit b4dfebc into puppetlabs:main Jul 19, 2023
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants