Pēteris Caune
f8131741ef
Fix minor API inconsistencies
1. Drop API support for GET, DELETE requests with a request body.
Healthchecks had an undocumented quirk where you could authenticate a
GET or DELETE request by putting a '{"api_key":"..."}' in request body.
This commit removes this feature.
Note: POST requests can still authenticate either by sending
a X-Api-Key header, or by putting a "api_key" key in request body.
GET and DELETE requests can now only authenticate with the
request header.
2. Add missing @csrf_exempt annotations in API views
When client sends a HTTP POST request to a GET-only endpoint,
the server is supposed to respond with "405 Method Not Allowed".
Due to CSRF checking, a couple endpoints were responding with
"403 Forbidden" instead. Adding @csrf_exempt annotations fixes
the problem.
3 years ago
Pēteris Caune
51f996ab4b
Fix /api/v1/badges/ to handle requests with missing X-Api-Key header
3 years ago
Pēteris Caune
66af88145a
Add "if read-write" conditionals for modals in project.html
3 years ago
Pēteris Caune
3dfdbc09ca
Add ability to create/revoke individual keys
3 years ago
Pēteris Caune
688aa5b3c3
Implement hc.api.views.ping_by_slug
3 years ago
Pēteris Caune
9517035501
Fix N+1 queries issue in "My Checks" and clean up Check.url()
3 years ago
Pēteris Caune
250a8580ae
Fix tests
3 years ago
Pēteris Caune
5b9008e321
Implement alternative ping URLs, WIP
3 years ago
Pēteris Caune
5fafc871dd
Fix unwanted text wrapping in the URL cell
3 years ago
Pēteris Caune
3f078e6cda
Optimize HTML in the "list of checks" page
In a project with ~300 checks,
* HTML size (uncompressed) before: 772KiB
* HTML size (uncompressed) after: 703KiB
3 years ago
Pēteris Caune
be641aea96
Add tests for LINE and Trello transports
3 years ago
Pēteris Caune
3e9e13104e
Remove unused code
3 years ago
Pēteris Caune
f9c470ef59
Clean up redundant json.loads() in the Channel class
3 years ago
Pēteris Caune
2c662dac20
Fix HTML validation issues
3 years ago
Pēteris Caune
6f5a22fd98
Improve up/down flag validation
In SMS, Signal and WhatsApp forms, reject the form if
user unchecks both "alert when check goes DOWN" and
"alert when check goes UP".
3 years ago
Pēteris Caune
8541ec59ca
Add ability to edit existing WhatsApp integrations
3 years ago
Pēteris Caune
5af09ed4dd
Add ability to edit existing Signal integrations
3 years ago
Pēteris Caune
3807c200ce
Add ability to edit existing SMS integrations
3 years ago
Pēteris Caune
c2e00f2105
Fix assign_all_checks() usage, add tests for it
3 years ago
Pēteris Caune
a27652d762
Combine the add_webhook and edit_webhook views
3 years ago
Pēteris Caune
2a9a544ddf
Add ability to edit existing email integrations
3 years ago
Yann Papouin
b5fd5cfaed
Fix db-data volume in docker-compose.yml
Use data folder otherwise a second volume is created that becomes orphaned after a docker-compose down.
3 years ago
Pēteris Caune
252acd0a83
Fix dark mode bug
3 years ago
Pēteris Caune
ebac101209
Remove unused class attributes
3 years ago
Pēteris Caune
c7317a87fc
Improve /api/v1/badges/ docs
3 years ago
Pēteris Caune
28506deb74
Improve /api/v1/badges/ docs
cc: #552
3 years ago
Pēteris Caune
f424d14d83
Remove obsolete CSS vendor prefixes
3 years ago
Pēteris Caune
6b59bbe2bc
Remove unused CSS
3 years ago
Pēteris Caune
6ef1a9a01d
Remove obsolete CSS
3 years ago
Pēteris Caune
98eb7cc14a
Add /api/v1/badges/ endpoint
cc: #552
3 years ago
Pēteris Caune
c2ee8222e4
Update the "experimental" note
3 years ago
Pēteris Caune
eb25cde241
Simplify jumbotron CSS
3 years ago
Pēteris Caune
a2fe5653c0
Improve copy in the "Change Schedule" dialog
cc: #547
3 years ago
Pēteris Caune
1247cc4ea7
Fix a crash during login when user's profile does not exist
Fixes : #77
3 years ago
Pēteris Caune
f7dd16abca
Remove site_root from template context, it's never used
3 years ago
Pēteris Caune
642d436ae9
Add absolute_site_logo_url template tag
This commit adds a {% absolute_site_logo_url %} template tag.
The tag emits an absolute url pointing to either
SITE_LOGO_URL or to the fallback picture.
The tag is used in base email template, in slack message
template, and in "Add MS Teams" page.
This commit also fixes a couple instances where absolute URLs
were constructed like so:
{% site_root %}/docs/
This would result in incorrect links if Healthchecks is not
running at webserver's root. The correct way is:
{% site_root %}{% url 'hc-docs' %}
Finally, this commit removes stuff/logo.svg and
stuff/logo-full.svg. Selfhosted sites should not use the
official Healthchecks.io logos, so no point keeping them around
there.
3 years ago
Pēteris Caune
484c0befbc
Fix email template to use SITE_LOGO_URL (with img/logo.png fallback)
Fixes : #550
3 years ago
Pēteris Caune
3901a2825b
Replace str(exc) with exc.message to make CodeQL happy
3 years ago
Pēteris Caune
8109529329
Render docs
3 years ago
Jan Dittrich
289afd5683
Fix grammar issue in docs
3 years ago
Pēteris Caune
4756527185
Improve docs
3 years ago
Pēteris Caune
1248dd22ea
Add a note about keyword filtering in Docs / Email
3 years ago
Pēteris Caune
234b681df8
Improve docs, addd "Concepts" section
cc: #547
3 years ago
Pēteris Caune
c196dc16d7
Fix latin-1 handling in webhook header values
3 years ago
Pēteris Caune
b43612806f
Fix dark mode bug in selectpicker widgets
3 years ago
Pēteris Caune
544ec7ea69
Add handling for non-latin-1 characters in webhook headers
3 years ago
Pēteris Caune
78113e1aea
Improve "Grace Time" description in docs
cc: #547
3 years ago
Pēteris Caune
74f56a5501
Improve the note about start signals and alerting logic
cc: #547
3 years ago
Pēteris Caune
2a9bc42dd4
Update Changelog for v1.22.0 release
3 years ago
Pēteris Caune
af7e8fc949
Fix the login view to handle already authenticated users
If an already authenticated user visits /accounts/login/,
Healthchecks will now redirect them to their dashboard
instead of showing the login form.
3 years ago