- Jan 06, 2020
-
-
ale authored
Add the 'connect_timeout' and 'request_max_timeout' configuration fields, to control respectively the initial connection timeout, and the maximum time for each individual request. This allows fine-tuning of the expected performance of specific backends, for example to let optional backends fail fast.
-
- Aug 17, 2019
-
-
ale authored
We're using language-specific Markdown templates to allow simultaneous generation of text and HTML for fancy multipart/alternative emails. The package also supports PGP/MIME for signatures (no encryption yet).
-
- Aug 15, 2019
-
-
ale authored
-
- Jun 30, 2019
-
-
ale authored
The Context in the http.Request is bound to the one we give it when calling balancedBackend.do(), so we were accessing it out of scope when calling the final json.Decode on the response body. This was not a problem for most *small* requests, as the response Body already contains all the data due to having read it along with the headers. However, larger response bodies would cause json.Decode to call a Read with what at that point is a canceled Context, so the Call function would return a mysterious "context canceled" error. (Note that this change introduces a minor, probably less annoying, issue, where we can't reset "resp" between successive calls so we may be invoking json.Decode on a non-pristine object if the first call fails in some circumstances).
-
- Apr 03, 2019
- Mar 27, 2019
-
-
ale authored
The encoded public key is actually 65 bytes long, not 64.
-
- Mar 21, 2019
- Feb 17, 2019
-
-
ale authored
-
- Jan 29, 2019
-
-
ale authored
Allows for failover in case a target times out.
-
- Nov 25, 2018
- Nov 23, 2018
-
-
ale authored
-
- Nov 22, 2018
- Nov 18, 2018
- Nov 16, 2018
-
-
ale authored
-
- Oct 29, 2018
- Oct 26, 2018
-
-
ale authored
-
- Aug 28, 2018
-
-
ale authored
For uniformity with the serverutil package. Also, make error checking on client TLS setup a bit stricter.
-
- Aug 17, 2018
- Aug 16, 2018
-
-
ale authored
Implement a simpler API for the Backend interface, removing most old public methods and replacing them with a single Call() method, making the package look a bit more like an actual rpc package (so, hopefully, easier to replace in the future).
-
- Aug 15, 2018
-
-
ale authored
Creation of sharded/replicated clients was swapped, sigh.
-
- Jun 28, 2018
-
-
ale authored
Encryption keys are stored themselves encrypted using a password (kdf+aes-siv construction). This package was moved over from git.autistici.org/id/keystore and completely refactored.
-
- Jun 27, 2018
-
-
ale authored
The API makes it easier to set custom parameters on hashers. Default Argon2 parameters were also set to defaults more suited for a high-traffic authentication service.
-
- May 24, 2018
-
-
ale authored
Doh, don't know how this was missed until now.
-
- Apr 01, 2018
-
-
ale authored
Fixes include: * only notify systemd after the network socket has been opened * add net/http/pprof debug handlers * add /health endpoint for Prometheus blackbox prober
-
- Mar 19, 2018
- Jan 14, 2018
-
-
ale authored
Allows users to specify a set of trusted forwarders in the configuration, and then using github.com/gorilla/handlers.ProxyHeaders to rewrite the http.Request parameters according to X-Forwarding-* and X-Real-IP headers.
-
ale authored
Reduces cyclomatic complexity score and makes code more readable.
-
ale authored
-
ale authored
-