Commit graph

3129 commits

Author SHA1 Message Date
Pēteris Caune
82cac0aed8
Tweak uwsgi post buffer size and options
* set post-buffering (buffer for POST data) to 16192
* add auto-procname for friendlier process names
* add strict, uwsgi won't start if uwsgi.ini contains invalid options
2023-04-03 12:10:51 +03:00
Pēteris Caune
f0267ce936
Add Arduino usage example 2023-04-01 12:13:39 +03:00
Pēteris Caune
e21ada67f1
Remove L10N markup from base.html, and associated translations 2023-03-29 19:19:03 +03:00
Pēteris Caune
64f13d1219
Update Trello onboarding form to allow tokens up to 256 chars long
cc: #806
2023-03-29 15:19:45 +03:00
Pēteris Caune
bea84b744a
Update Trello onboarding form to allow longer Trello auth tokens
Trello token length change announcement:
https://community.developer.atlassian.com/t/trello-tokens-are-getting-longer/62964

Fixes: #806
2023-03-29 14:21:06 +03:00
Pēteris Caune
f6aeda978d
Fix hc.lib.s3.get_object to handle more urllib3 exceptions 2023-03-29 14:00:10 +03:00
Pēteris Caune
c6ce8918c5
Remove dollar signs from shell snippets in docker/README
cc: #814
2023-03-29 12:08:29 +03:00
Pēteris Caune
56e003b613
Fix indentation 2023-03-29 11:47:31 +03:00
Pēteris Caune
34631e65cd
Remove dollar signs from shell snippets in README
Fixes: #814
2023-03-29 11:46:00 +03:00
Pēteris Caune
5fcbcb637c
Fix .env.example to have SMTPD_PORT undefined by default 2023-03-29 09:42:20 +03:00
Pēteris Caune
50d15d53e5
Add a "Remove TOTP" action in Profile admin 2023-03-28 17:36:57 +03:00
Pēteris Caune
f8026a73b6
Add a test for fdfab66a81 2023-03-10 16:33:57 +02:00
Pēteris Caune
fdfab66a81
Fix notification query in the Log page
The bug: the Log page would sometimes show a number of "zombie"
notifications at the very end: notifications that should not be
shown to the user, but have not yet been garbage-collected.

The fix: when preparing the created__gte filter value for the
notification query, make sure the filter value is not lower than the
timestamp of the oldest visible ping.
2023-03-10 16:25:06 +02:00
Pēteris Caune
312c53c2b3
Fix check name wrapping in the "Assign Checks to Integration" dialog 2023-03-10 14:55:53 +02:00
Pēteris Caune
a779ffd365
Tweak the positioning of the project switcher 2023-03-10 13:27:11 +02:00
Pēteris Caune
4d552efd67
Improve styling of the project switcher 2023-03-10 11:50:41 +02:00
Pēteris Caune
bad4b9adbf
Add a "Switch Project" menu in top navigation 2023-03-10 10:36:09 +02:00
Pēteris Caune
9e9bdfd353
Update CHANGELOG 2023-03-09 13:34:21 +02:00
Pēteris Caune
9656c51034
Update tests to check the active tab in the Ping Details dialog 2023-03-09 13:33:38 +02:00
seidnerj
87841b6038
Update the ping details dialog to show the "HTML" tab by default (if available) (#801)
* typo correction in README.md

* when opening the "ping details" dialog, by default set the active tab to "HTML" (if html content exists), otherwise set the active tab to "Text".
2023-03-09 13:17:16 +02:00
Pēteris Caune
0e2d2154c8
Make API docs fit better on mobile screens 2023-03-08 09:29:43 +02:00
Pēteris Caune
bb3f139335
Update the Dockerfile to use Python 3.11 2023-03-07 16:33:34 +02:00
Pēteris Caune
f9f32adc11
Fix wording 2023-03-06 19:33:42 +02:00
Pēteris Caune
acc64e4e46
Add GitHub Actions examples 2023-03-06 19:31:12 +02:00
Pēteris Caune
bce9d4ddef
Update changelog for v2.7 release 2023-03-06 13:00:38 +02:00
Pēteris Caune
920caacc0d
Update SITE_LOGO_URL docs
cc: #797
2023-02-25 11:07:09 +02:00
Pēteris Caune
312b63e592
Update package versions 2023-02-25 10:38:52 +02:00
Pēteris Caune
a8170a6e6c
Fix typo 2023-02-25 10:36:48 +02:00
Pēteris Caune
d269b54ca1
Fix tests 2023-02-21 11:11:43 +02:00
Pēteris Caune
16d94f642d
Add tiny drop shadow to buttons
For primary buttons, the drop shadow is green-tinted.
For red buttons, the shadow is red-tinted.
2023-02-21 11:10:51 +02:00
Pēteris Caune
97703f10cf
Tweak :active and :focus button styles
Make the darkening effect less pronounced. Unfortunately this
requires changing bootstrap's .less files.
2023-02-21 11:08:40 +02:00
Pēteris Caune
fe54cbe049
Make radio and checkbox borders brighter in dark mode 2023-02-21 11:04:43 +02:00
Pēteris Caune
e2e289da2a
Add form double submit protection when registering a WebAuthn key 2023-02-20 11:05:55 +02:00
Pēteris Caune
04c9398da3
Fix the "Test" button in the Integrations screen for read-only users
(I broke it by accident in 963f1758de)
2023-02-20 10:21:41 +02:00
Pēteris Caune
d84a97acef
Add @sensitive_post_parameters() to views that handle passwords 2023-02-20 10:09:16 +02:00
Pēteris Caune
c2f828df83
Add custom ExceptionReporterFilter which filters out TWILIO_AUTH 2023-02-20 09:43:03 +02:00
Pēteris Caune
a316c36086
Fix more typos, spelling and grammar mistakes in docs 2023-02-19 14:37:19 +02:00
Krasimir Nedelchev
2d42e5af11
Fix typo in docs (#795) 2023-02-19 13:47:50 +02:00
Pēteris Caune
b62faf5bd0
Clean up promise chaining in signup.js 2023-02-15 09:41:15 +02:00
Pēteris Caune
423dac4b19
Add a protection for non-bool settings.SESSION_COOKIE_SECURE value 2023-02-15 09:20:00 +02:00
Pēteris Caune
3d728325fe
Fix the SameSite and Secure attributes on the "auto-login" cookie
The "auto-login" cookie is a part of a work-around for
some email clients automatically clicking links in emails:

- when sending an one-time sign-in link, server also sends the
  "auto-login" cookie to the client
- when end user clicks on the sign-in link, the server checks
  if client's request contains the "auto-login" cookie
- if the "auto-login" cookie is present, log the user in
- if the "auto-login" cookie is absent, serve a HTTP POST form
  with a submit button. The user must click the button to log in.

This commit fixes attributes on the "auto-login" cookie:

- it sets SameSite=Lax
- it sets Secure=true if SESSION_COOKIE_SECURE=True
2023-02-15 09:17:09 +02:00
Pēteris Caune
c8750ad05b
Fix the signup form to work with httpOnly CSRF cookies 2023-02-14 14:20:27 +02:00
Pēteris Caune
8531ef89b5
Bump Django version to 4.1.7 2023-02-14 14:02:06 +02:00
Pēteris Caune
e46cf3725b
Add CSRF protection in the signup view 2023-02-14 09:15:46 +02:00
Pēteris Caune
f27e7c82a2
Optimize SQL query in hc.front.views.status
Filter checks by project.id instead of project.code,
this avoids a JOIN in the query.
2023-02-10 12:06:56 +02:00
Pēteris Caune
0d0087d898
Update Telegram notification template to include more data 2023-02-08 15:28:39 +02:00
Pēteris Caune
b1d47abd97
Fix tests when TELEGRAM_BOT_NAME has a custom value 2023-02-08 14:22:55 +02:00
Pēteris Caune
311f7064dc
Fix a race condition in Check.ping method
The code in Check.ping() updates a Check object, then
creates a Ping object. There's a possible race condition
where the "sendalerts" command sees# the updated Check object
before the Ping object is created. This is especially likely
when offloading ping bodies to S3, because Ping gets created
*after* the upload completes, which can take some time.

To avoid this, put both operations inside a transaction,
but keep the S3 upload *outside* the transaction--uploads
can hang, and we want to avoid long transactions.
2023-02-08 13:12:05 +02:00
Fabrizio Ferrai
9939e45c5a
Add body to Telegram notifications (#783)
Add body to Telegram notifications

---------

Co-authored-by: Pēteris Caune <cuu508@gmail.com>
2023-02-08 12:52:36 +02:00
Pēteris Caune
08849d6f22
Update Docker image's uwsgi.ini to use SMTPD_PORT env var
Fixes: #791
2023-02-07 13:38:05 +02:00