Pēteris Caune
d0f327b213
Add Base64Field field (base64-encoded binary data)
2020-11-16 13:10:38 +02:00
Pēteris Caune
839c309cf7
Refactor for testability, add more test cases
2020-11-16 12:52:26 +02:00
Pēteris Caune
155a1f132b
Simplify super() calls in tests
2020-11-16 11:20:01 +02:00
Pēteris Caune
155226d82a
Add tests for sudo mode
2020-11-16 10:58:38 +02:00
Pēteris Caune
ecf964ea3b
Remove a verify_origin workaround
2020-11-15 21:49:25 +02:00
Pēteris Caune
9f58ebfd3e
Hook up a 2FA check after a password or email link authentication
2020-11-15 21:39:49 +02:00
Pēteris Caune
64be87137b
Add a two-factor authentication form (WIP)
2020-11-14 12:54:26 +02:00
Pēteris Caune
2ac0f87560
Implement a "Remove Security Key" feature
2020-11-14 11:45:09 +02:00
Pēteris Caune
42497fe91a
Add rate limiting to the sudo code form
2020-11-13 22:04:19 +02:00
Pēteris Caune
2c3286c280
Improve the "add security key" UX, require sudo mode
2020-11-13 16:23:28 +02:00
Pēteris Caune
e3aedd3b03
Add require_sudo_mode decorator
...
Planning to use it for sensitive operations (add/remove security keys),
change email, change password, close account.
The decorator sends a six-digit confirmation code to user's email
and renders a form for entering it back. If the user enters the
correct code, the decorators sets a sudo=active marker in
user's session, valid for 30 minutes.
2020-11-13 11:08:06 +02:00
Pēteris Caune
03ea725612
Add Credential.created field
2020-11-12 18:03:12 +02:00
Pēteris Caune
53688f1d87
Add error handling on the client side, use Django form API
2020-11-12 17:08:23 +02:00
Pēteris Caune
1eaa216d3a
Add experimental code for registering Webauthn credentials
2020-11-12 16:15:07 +02:00
Pēteris Caune
cdd2e98bd0
Remove USE_I18N and USE_L10N from settings
...
They have the default values and so are redundant.
2020-11-06 18:51:30 +02:00
Pēteris Caune
816c158744
Fix code formatting in the Notification model
2020-11-06 18:50:23 +02:00
Pēteris Caune
d5502c50ca
Add retries to the the email sending logic
...
When sending email using Django's default email
backend (SMTP), and if there is a network issue, the backend
can throw SMTPServerDisconnected.
This commit adds a retry logic which retries sending the
email two times when SMTPServerDisconnected is thrown.
2020-10-30 14:18:38 +02:00
Pēteris Caune
0b685e8b5a
Disable retries when testing webhook integration
...
Normally, when a webhook call fails (timeout, connection
error, non-2xx response), the HTTP request is retried up to two
times (so up to 3 times total). This is useful when sending
actual notifications, in case the webhook target has a temporary
glitch.
When interactively testing a webhook integration
("Send Test Notification" in the
"Integrations" page), we would prefer to see any errors ASAP
on the screen instead of retrying and so possibly swallowing them.
One specific use case is webhook targets that take long time to
generate a response. "Send Test Notification" is synchronous,
meaning that the user could be stuck for
5 x 3 = 15 seconds waiting for the test HTTP request to time out
three times.
2020-10-30 12:36:17 +02:00
Pēteris Caune
f7e004b2ea
Improve phone number sanitization: remove spaces and hyphens
2020-10-30 11:32:09 +02:00
Pēteris Caune
81e59ac553
Add support for script's exit status in ping URLs
...
Fixes : #429
2020-10-28 14:28:32 +02:00
Pēteris Caune
6f56ed7f92
Reduce the number of SQL queries used in the "Get Checks" API call
2020-10-27 16:19:57 +02:00
Pēteris Caune
a37e83aca8
Update AddSmsForm to remove any invisible unicode characers
2020-10-20 15:53:27 +03:00
Pēteris Caune
7534f1856f
Add testcases for setting channels in the "Create Check" API call
2020-10-14 18:12:35 +03:00
Pēteris Caune
7e56156d32
Optimize the "Update Check" API call
...
In the "Update Check" API call, if no fields have changed,
don't save the changes to the database.
2020-10-14 18:03:13 +03:00
Pēteris Caune
0e77064c44
Update API to allow specifying channels by names
...
Fixes : #440
2020-10-14 15:37:04 +03:00
Pēteris Caune
463ec8c988
Set the "title" and "summary" fields in MS Teams notifications
...
Fixes : #435
2020-10-06 16:43:56 +03:00
Pēteris Caune
05c81e0a41
Escape markdown in MS Teams notifications. cc: #426
2020-09-11 11:49:46 +03:00
Pēteris Caune
b64c8d1cb8
API support for setting the allowed HTTP methods for making ping requests
2020-09-10 10:29:44 +03:00
Pēteris Caune
c13f65e118
Grammar and style fixes.
2020-09-09 17:53:24 +03:00
Pēteris Caune
66a1a108bf
When decoding inbound emails, decode encoded headers. Fixes #420
2020-09-08 12:06:32 +03:00
Pēteris Caune
bd98174d4c
Fix missing Resume button. Fixes #421
2020-09-04 13:17:54 +03:00
Pēteris Caune
ad720af242
Rename "hc-p-channels" to "hc-channels"
2020-09-01 12:56:35 +03:00
Pēteris Caune
5ebb5958ea
Remove unused "project" parameter in Pushbullet tests.
2020-09-01 12:18:24 +03:00
Pēteris Caune
9ba9032389
Cleaner OAuth redirect_uri generation
2020-09-01 12:07:13 +03:00
Pēteris Caune
d1b1a6c02e
The LINE Notify integration uses OAuth2 flow.
2020-09-01 11:38:08 +03:00
Pēteris Caune
4f53325730
THe LINE Notify integration uses OAuth2 flow.
2020-09-01 11:37:54 +03:00
Pēteris Caune
0a85c5ed12
In Account Settings > My Projects, indicate read-only memberships as read-only
2020-08-31 11:07:39 +03:00
Pēteris Caune
e424176a1f
Remove mentions of "whitelist"
2020-08-26 16:38:29 +03:00
Pēteris Caune
b2a1c0d343
Set USE_L10N to False until we've fixed issues caused by decimal comma formatting in templates. Fixes #416
2020-08-26 16:15:29 +03:00
Pēteris Caune
d73de68f70
Specify the read-write/read-only flag when inviting a team member.
2020-08-26 16:09:17 +03:00
Pēteris Caune
adb004b333
Read-only users cannot change project settings.
2020-08-26 15:04:12 +03:00
Pēteris Caune
39198c827a
Read-only users cannot edit or remove channels.
2020-08-26 14:48:31 +03:00
Pēteris Caune
24c34430ac
Read-only users cannot resume checks.
2020-08-26 14:12:52 +03:00
Pēteris Caune
bdf99e0ea7
The "Add Integration" pages require read-write access.
2020-08-26 14:06:51 +03:00
Pēteris Caune
c9baa2d8eb
Read-only users cannot toggle channels on and off.
2020-08-26 12:50:02 +03:00
Pēteris Caune
024d0adb9c
Read-only users cannot copy, transfer or remove checks.
2020-08-26 12:44:55 +03:00
Pēteris Caune
cbd7ffbffb
Read-only users cannot edit filtering rules.
2020-08-26 12:36:05 +03:00
Pēteris Caune
11d8e6197c
Read-only users cannot add checks.
...
Read-only users cannot pause checks.
2020-08-26 12:29:03 +03:00
Pēteris Caune
00790dc33c
Member.rw flag. Read-only users cannot edit check's name/desc/tags or schedule
2020-08-26 12:16:43 +03:00
Pēteris Caune
84cc33412a
When copying a check, copy all fields from the "Filtering Rules" dialog
2020-08-26 10:08:37 +03:00