1747 Commits

Author SHA1 Message Date
Pēteris Caune
a763fa1de3
Fix DEFAULT_FROM_EMAIL 2021-01-21 17:36:11 +02:00
Pēteris Caune
98439623c5
Add experimental Dockerfile and docker-compose.yml 2021-01-21 17:32:58 +02:00
Pēteris Caune
601d8fac94
Remove the warning about a missing local_settings.py 2021-01-21 17:32:25 +02:00
Pēteris Caune
376d80afd4
Add more content from README 2021-01-21 13:57:55 +02:00
Pēteris Caune
7e6afba8bd
Fix CI: set SECRET_KEY 2021-01-21 11:38:52 +02:00
Pēteris Caune
b7c769fc0e
Add a section in Docs about running self-hosted instances
Fixes: #467
2021-01-21 11:35:09 +02:00
Pēteris Caune
fbefcbc0ed
Update apprise tests to skip if apprise is not installed 2021-01-19 13:57:55 +02:00
Pēteris Caune
94abe0fbb5
Update intro and dev setup steps in README 2021-01-19 13:19:46 +02:00
Shea Polansky
5540fc2c6d Update README.txt to include more dev setup steps 2021-01-19 12:36:08 +02:00
Pēteris Caune
d45dc2f6a3
Change Zulip onboarding, ask for the zuliprc file
Fixes: #202
2021-01-19 11:04:38 +02:00
Pēteris Caune
9a0888aacd
Update sendalerts to log per-notification send times
To send notifications, sendalerts calls Flip.send_alerts().
I updated Flip.send_alerts() to be a generator, and to yield
a (channel, error, send_time_in_seconds) triple per sent
notification.
2021-01-15 15:15:00 +02:00
Pēteris Caune
3b6afae140
Specify timeout in the DBus calls 2021-01-14 09:59:06 +02:00
Pēteris Caune
1e46cd6e93
Tweak coveralls configuration
coveralls.io is throwing 422 and breaking CI,
this may or may not help.

Related: https://github.com/TheKevJames/coveralls-python/issues/252
2021-01-13 15:43:18 +02:00
Pēteris Caune
d7c7ae6531
Fix tests 2021-01-13 12:13:14 +02:00
Pēteris Caune
ce7e32ac03
Fix tests 2021-01-13 11:57:19 +02:00
Pēteris Caune
74ed15e0aa
Update the signal integration to use DBus
The initial implementation was just calling signal-cli directly
using `subprocess.run`.

Going with DBus makes it easier to shield signal-cli from the
rest of the system. It also makes sure the signal-cli daemon is
running in the background and receiving messages. This is important
when a recipient does the "Reset secure connection" from the app. We
must receive their new keys, otherwise our future messages will
appear as "bad encrypted message" for them.
2021-01-13 11:52:42 +02:00
Pēteris Caune
a80b831eea
Add rate-limiting for Signal messages 2021-01-11 15:07:34 +02:00
Pēteris Caune
d4aac691ce
Increase the timeout for sending Signal messages 2021-01-11 12:56:53 +02:00
Pēteris Caune
ee37d305ef
Tighten Telegram rate limit to 6 messages / minute
With the previous 10 minutes / minute limit we were still hitting
Telegram API rate limit (the 429, "Too Many Requests" response)
from time to time.

Therefore, tighten the limit a bit on our side.
2021-01-11 10:54:46 +02:00
Pēteris Caune
f607ee67d5
Allow searching in the error field in Notifications admin 2021-01-11 10:08:36 +02:00
Pēteris Caune
0aeef7d06e
Fix unwanted HTML escaping in SMS and WhatsApp notifications 2021-01-10 18:29:38 +02:00
Pēteris Caune
55a22e5043
Split AddSmsForm into PhoneNumberForm and PhoneUpDownForm
The PhoneNumberForm is used in "Add SMS" and "Add Phone Call" pages.
The PhoneUpDownForm is a subclass of PhoneNumberForm and
adds "up" and "down" boolean fields. It is used in "Add Signal"
and "Add WhatsApp" pages.
2021-01-10 15:52:33 +02:00
Pēteris Caune
847a610af9
Sort hc-add-* routes 2021-01-09 16:52:48 +02:00
Pēteris Caune
cd99af14ba
Add Signal integration
Fixes: #428
2021-01-09 11:58:18 +02:00
Pēteris Caune
959df1ffaa
Upgrade Django to 3.1.5 2021-01-04 11:02:19 +02:00
Pēteris Caune
17a404f04b
Fix email template to always show the current year in the footer 2021-01-01 22:43:00 +02:00
Pēteris Caune
599f35e4f0
Improve the crontab snippet in the "Check Details" page
Fixes: #465
2020-12-30 13:49:33 +02:00
Pēteris Caune
bf3df906f7
Tweak email CSS for nicer display in dark mode 2020-12-29 17:50:26 +02:00
Pēteris Caune
54081208c5
Add doctype declaration in the alert email template
Need it to escape quirks mode in email clients.
2020-12-29 16:08:23 +02:00
Pēteris Caune
efc44fd47c
Update report template to use same font size for all check names
Fixes: #347
2020-12-29 15:14:37 +02:00
Pēteris Caune
ca3d1d3a3b
Add the "Last Ping Type" field in the email notification template 2020-12-28 17:34:58 +02:00
Pēteris Caune
26a7918b5b
Bump pytz version 2020.1 -> 2020.5 2020-12-28 14:23:48 +02:00
Pēteris Caune
02b5ec3657
Rename "Signalling Failures" -> "Signaling Failures" 2020-12-28 14:12:07 +02:00
Pēteris Caune
70519fcd89
Fix spelling, grammar, style mistakes 2020-12-28 14:06:54 +02:00
Pēteris Caune
8fa0d04830
Exclude Bootstrap's popovers
Not using them anywhere on the site currently, so commented them out
in bootstrap.less and regenerated bootstrap.css.
2020-12-28 12:34:02 +02:00
Tim Gates
1f641962d2
docs: fix simple typo, libary -> library (#464)
Fix simple typo in docs, libary -> library

There is a small typo in templates/docs/python.md.

Should read `library` rather than `libary`.
2020-12-28 12:30:58 +02:00
Pēteris Caune
ce0f84a112
Fix styling 2020-12-26 18:19:55 +02:00
Pēteris Caune
8fe8e0f605
Update alert email template: more information, less styling
Fixes: #348
2020-12-26 18:11:36 +02:00
Pēteris Caune
c3b6d40012
Fix selectize initialization in the Details page
Fixes: #462
2020-12-26 14:51:30 +02:00
Pēteris Caune
823b3dbc7b
Fix tests 2020-12-16 14:11:36 +02:00
Pēteris Caune
77a5f11cf9
Update OpsGenie instructions
Fixes: #450
2020-12-16 14:09:48 +02:00
Pēteris Caune
0f1abd3498
Add tighter parameter checks in hc.front.views.serve_doc 2020-12-14 19:08:36 +02:00
Pēteris Caune
b8f1bdaf96
Update changelog for release 2020-12-09 16:03:49 +02:00
Pēteris Caune
dfd159ab18
Add a "Lost password?" link with instructions in the Sign In page 2020-12-09 15:38:19 +02:00
Shea Polansky
54a95a0ee2
Add http header auth (#457)
* Add HTTP header authentiation backend/middleware

* Add docs for remote header auth

* Improve docs on external auth

* Add warning for unknown  REMOTE_USER_HEADER_TYPE

* Move active check for header auth to middleware
Add extra header type sanity check to the backend

* Add test cases for remote header login

* Improve header-based authentication

- remove the 'ID' mode
- add CustomHeaderBackend to AUTHENTICATION_BACKENDS conditionally
- rewrite CustomHeaderBackend and CustomHeaderMiddleware to
use less inherited code
- add more test cases

Co-authored-by: Pēteris Caune <cuu508@gmail.com>
2020-12-09 11:25:56 +02:00
Pēteris Caune
5e3e371661
Set up CodeQL analysis 2020-12-09 11:09:35 +02:00
Pēteris Caune
70ef9c1904
Remove unused CSS 2020-12-08 11:25:09 +02:00
Pēteris Caune
ea6d04d061
Bump Django version to 3.1.4 2020-12-07 11:11:51 +02:00
Pēteris Caune
5d650f07fb
Fix db field overflow when copying a check with a long name 2020-12-03 13:01:53 +02:00
Pēteris Caune
9623e3eacb
Update 3rd party resources
Move terraform-provider-healthchecksio to the "API Wrappers"
category, which is more appropriate than "Tools for Self-Hosting".
2020-12-01 15:05:36 +02:00