grafana/pkg
Eric Leijonmarck be5ba68132
Team LBAC: Add teamHeaders for datasource proxy requests (#76339)
* Add teamHeaders for datasource proxy requests

* adds validation for the teamHeaders

* added tests for applying teamHeaders

* remove previous implementation

* validation for header values being set to authproxy

* removed unnecessary checks

* newline

* Add middleware for injecting headers on the data source backend

* renamed feature toggle

* Get user teams from context

* Fix feature toggle name

* added test for validation of the auth headers and fixed evaluation to cover headers

* renaming of teamHeaders to teamHTTPHeaders

* use of header set for non-existing header and add for existing headers

* moves types into datasources

* fixed unchecked errors

* Refactor

* Add tests for data model

* Update pkg/api/datasources.go

Co-authored-by: Victor Cinaglia <victor@grafana.com>

* Update pkg/api/datasources.go

Co-authored-by: Victor Cinaglia <victor@grafana.com>

---------

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
Co-authored-by: Victor Cinaglia <victor@grafana.com>
2023-10-17 11:23:54 +01:00
..
api Team LBAC: Add teamHeaders for datasource proxy requests (#76339) 2023-10-17 11:23:54 +01:00
apis K8s: Namespace parsing updates (default + stack-id) (#76310) 2023-10-12 21:34:50 +03:00
build Building: Remove dependency to urw-fonts in RPM packages (#76198) 2023-10-10 08:15:54 +02:00
bus Tracing: Standardize on otel tracing (#75528) 2023-10-03 14:54:20 +02:00
cmd Expose enterprise-commit in server version output (#75897) 2023-10-04 14:51:35 +02:00
codegen Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
components imagestorage: fix templating of public_url option for webdav (#74885) 2023-09-28 00:35:10 +03:00
cuectx Kinds: publish kinds to kind registry (#67515) 2023-06-13 14:01:29 +02:00
events Alerting: Update rules version when folder title is updated (#53013) 2022-08-01 19:28:38 -04:00
expr SSE: Support hysteresis threshold expression (#70998) 2023-10-10 17:51:50 +03:00
extensions Chore: Replace gofpdf (#75805) 2023-10-02 15:32:35 +02:00
ifaces/gcsifaces Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
infra SigningKeys: Add jwks endpoint (#76040) 2023-10-05 15:17:31 +02:00
kinds DashboardScene: Support for dashboard PanelContext actions via state hook (#76192) 2023-10-13 11:42:42 +02:00
kindsysreport Playlist: Use a different go struct for sql service vs k8s (#76393) 2023-10-12 08:29:06 -07:00
login Social: Fix error decoding id_token log (#76664) 2023-10-17 10:57:35 +02:00
middleware RBAC: Fix plugins pages access-control (#76321) 2023-10-12 10:46:43 +02:00
mocks/mock_gcsifaces Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
models Auth: Add empty role definition (#64694) 2023-07-06 15:40:06 +02:00
modules Chore: refactor grafana-apiserver a bit (#74177) 2023-08-31 09:12:01 -04:00
plugins Plugins: Add status_source label to plugin request metrics (#76236) 2023-10-17 10:27:45 +02:00
registry Playlist: Use a different go struct for sql service vs k8s (#76393) 2023-10-12 08:29:06 -07:00
server Alerting: Move legacy alert migration from sqlstore migration to service (#72702) 2023-10-12 13:43:10 +01:00
services Team LBAC: Add teamHeaders for datasource proxy requests (#76339) 2023-10-17 11:23:54 +01:00
setting Plugins: Update PDC pattern from latest plugin SDK changes (#76576) 2023-10-16 16:40:04 +02:00
tests Alerting: Add provenance field to /api/v1/provisioning/alert-rules (#76252) 2023-10-11 14:51:20 +01:00
tsdb Chore: Adapt GetDataSourcesByType to plugins with aliases (#76637) 2023-10-17 11:09:56 +02:00
util Team LBAC: Add teamHeaders for datasource proxy requests (#76339) 2023-10-17 11:23:54 +01:00
web Auth: Implement requester interface in access control module (#74289) 2023-09-06 11:16:10 +02:00
README.md Chore: Move all backend contribution documents to a single directory (#61140) 2023-01-11 11:16:52 +01:00
ruleguard.rules.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00

This directory contains the code for the Grafana backend.

The contributor documentation for Grafana's backend is in /contribute/backend/README.md.