- Apr 09, 2019
-
-
Tanner Prestegard authored
-
Tanner Prestegard authored
-
Tanner Prestegard authored
Discovered that AJAX requests to the API from the web view were using certificates in people's browsers even if they were logged out of the Django session. So when they wanted to view the page as a public user they still saw some extra information. No security risk since they needed to have a valid certificate anyway, but a bit annoying.
-
Tanner Prestegard authored
We've had some bad cases where a log entry is created, but the file is not saved due to filesystem errors. So we put the file creation in a try-except block and if it fails, delete the log message that was just created before re-raising the exception.
-
Tanner Prestegard authored
Previous arrangement was not including zero-valued fields. We now include all non-None fields.
-
Tanner Prestegard authored
-
Tanner Prestegard authored
-
Tanner Prestegard authored
Due to the fact that we are using multiple attribute authorities, there are some cases (specifically email) where there are multiple values provides for an attribute, separated by a semi-colon. This update handles those instances and takes the first value in the list.
-
Tanner Prestegard authored
-
Tanner Prestegard authored
-
Tanner Prestegard authored
Use the 'sync' worker still due to issues with handling file uploads when gunicorn uses at least 6 but possibly more than 2 workers.
-
- Mar 29, 2019
-
-
Tanner Prestegard authored
-
Tanner Prestegard authored
Suggested keepalive time is 1-5 seconds for standard deployment, but it should be much higher for deployments behind a load balancer. We are hoping this might resolve the SSLEOFErrors which have been seen on the AWS deployment. Traefik's keepalive time is hard-coded to 90 seconds so we want gunicorn's to be longer than that, so we set it to 100 s.
-
Tanner Prestegard authored
Increase number of attempted restarts for LVAlert Overseer in a container from 3 to 100. With only three attempts, it doesn't even consistently get going again without going into a FATAL state when the openfire server is simply restarted.
-
Tanner Prestegard authored
These settings were previously handled in settings/container/production.py, but we want to do some testing and I don't see any issues with having them in the base container settings (settings/container/base.py).
-
Tanner Prestegard authored
-
Tanner Prestegard authored
-
Tanner Prestegard authored
Upgrade gunicorn to 19.9.0 and switch to an asynchronous worker class
-
- Mar 28, 2019
-
-
Tanner Prestegard authored
Instead of looping over EmailMessage.send() calls, we now get the email backend and send a list of messages. Note that the backend sends the messages individually still but this cuts out some of the overhead.
-
Tanner Prestegard authored
-
- Mar 27, 2019
-
-
Tanner Prestegard authored
-
Tanner Prestegard authored
-
- Mar 26, 2019
-
-
Tanner Prestegard authored
-
Tanner Prestegard authored
-
- Mar 20, 2019
-
-
Tanner Prestegard authored
-
Tanner Prestegard authored
Prevents server errors from being generated when the filename is "bad" and when the user specifies a non-integer version. This is for superevent files; event files are handled separately, although this should be unified at some point.
-
Tanner Prestegard authored
-
Tanner Prestegard authored
We use get_or_create now to add labels to a superevent in order to prevent IntegrityErrors when a user makes the same request too rapidly and both sneak by the initial check.
-
Tanner Prestegard authored
-
- Mar 16, 2019
-
-
Tanner Prestegard authored
-
- Mar 13, 2019
-
-
Tanner Prestegard authored
overseer seems to always exit with an exit code of 0, which means that 'autorestart=unexpected' does not restart it. So we set it to 'true' instead.
-
Tanner Prestegard authored
-
Tanner Prestegard authored
-
- Mar 12, 2019
-
-
Tanner Prestegard authored
Not feasible to use multiple DBs for read or write operations at present. We're going to have to revisit this at some point. We leave most of the code in place but commented out.
-
Tanner Prestegard authored
-
Tanner Prestegard authored
-
- Mar 06, 2019
-
-
Tanner Prestegard authored
Add capability for passing kwargs to AlertIssuer classes' issue_alerts() method. We take advantage of this in the update alerts for checking for FAR changes and NSCAND state changes.
-
Tanner Prestegard authored
-
Tanner Prestegard authored