- add calling method and uri to unhandled exception logging
- released with no changes due to issues with licensing in project.clj
- update to clj parent 7.3.31
- optimize the
wrap-uncaught-errors
to avoid anonymous functions, and ensure streams are closed - add new wrappers:
wrap-accepts-content-type
wrap-accepts-json
wrap-content-type
wrap-content-type-json
wrap-json-parse-exception-handler
- Updates tk-jetty-10 to 1.0.7 which includes a fix for ring handler's getRequestCharacterEncoding() function.
- This version updates testing in the repo to use trapperkeeper-webserver-jetty10. The repo is now intended to be used with Jetty 10.
- This version updates the
wrap-add-cache-headers
middleware so that it adds acache-control
header with the "no-store" directive instead of the "private, max-age=0, no-cache" directives.
- This version adds
wrap-params
middleware with custom implementation of theparams-request
function. This was copied from the puppetserver repo to this more-central location. It is documented in the README.
- This version adds two new middleware used in other
puppetlabs projects, documented in the README:
wrap-add-x-content-nosniff
wrap-add-csp
- This is a bug fix release that ensure stacktraces are correctly printed to the log when handling otherwise uncaught exceptions.
- Moves from
{:type ... :message ...}
to{:kind ... :msg ...}
for exceptions and error responses. - Moves schemas and helpers previously defined in
core
namespace into newutils
namespace.
- This is a bug-fix release for a regression in wrap-proxy.
- All middleware now have the
:always-validate
metadata set for schema validation.
- This version adds many middleware that are used in other
puppetlabs projects. These middleware are mostly for logging
and error handling, and they are all documented in the
README:
wrap-request-logging
wrap-response-logging
wrap-service-unavailable
wrap-bad-request
wrap-data-errors
wrap-schema-errors
wrap-uncaught-errors
- Additionally, this version fixes
an issue with the
behavior of
wrap-proxy
and its handling of redirects.
- Add wrap-with-certificate-cn middleware that adds a
:ssl-client-cn
key to the request map if a:ssl-client-cert
is present. - Add wrap-with-x-frame-options-deny middleware that adds
X-Frame-Options: DENY
- Modify behavior of regex support in the wrap-proxy function.
Now, when a regex is given for the
proxied-path
argument, the entirety of the request uri's path will be appended onto the path ofremote-uri-base
. - Add a new utility middleware,
wrap-add-cache-headers
, that addscache-control
headers toGET
andPUT
requests.
- Log proxied requests
- Allow
proxied-path
argument inwrap-proxy
function to be a regular expression - Bump http-client to v0.2.8
- Add support for redirect following on proxy requests
- Fix issue where Gzipped proxy responses were being truncated