oncall-engine/engine/apps/auth_token
Michael Derynck 60ef4348f5
Allow OnCall API to use Grafana Service Accounts (#3189)
# What this PR does
Allows public OnCall API to use Grafana service accounts for
authorization. In cloud requests using a Grafana service account token
also needs to provide headers for `X-Grafana-Org-Slug` and
`X-Grafana-Instance-Slug`

This is **alpha** functionality, it may break or be removed in the
future. Going to use this on one endpoint (resolution notes) before we
consider the implications across all of public API.

## Which issue(s) this PR fixes

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-11-23 16:42:27 +00:00
..
grafana Allow OnCall API to use Grafana Service Accounts (#3189) 2023-11-23 16:42:27 +00:00
migrations add missing database migrations 2023-07-05 18:27:56 +02:00
models re-enable mypy GitHub Actions CI job (#2390) 2023-06-29 14:01:52 +00:00
tests Allow OnCall API to use Grafana Service Accounts (#3189) 2023-11-23 16:42:27 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
auth.py Allow OnCall API to use Grafana Service Accounts (#3189) 2023-11-23 16:42:27 +00:00
constants.py Mobile app messaging backend (#874) 2022-11-23 15:56:43 +00:00
crypto.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
exceptions.py Allow OnCall API to use Grafana Service Accounts (#3189) 2023-11-23 16:42:27 +00:00