grafana/pkg/services/datasources
Eric Leijonmarck 57335cb173
Team LBAC: Add validation/regex of teamheaders (#76905)
* add validation of team header values w. regex

* apply valid headers

* refactor testcases to account for badly formatted json

* refactoring to move validation code close to the validation itself

* removed tes

* Update pkg/api/datasources_test.go

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* Update pkg/api/datasources.go

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* review comments

* review during pairing

---------

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
2023-10-27 12:37:37 +01:00
..
fakes Replace signed in user for identity.requester (#74048) 2023-08-30 16:51:18 +02:00
guardian Replace signed in user for identity.requester (#74048) 2023-08-30 16:51:18 +02:00
service RBAC: introduce a data source admin role (#75915) 2023-10-19 14:36:41 +01:00
accesscontrol.go Connections: Align permissions for Connections page (#60725) 2023-01-06 03:11:27 -05:00
datasources.go Replace signed in user for identity.requester (#74048) 2023-08-30 16:51:18 +02:00
errors.go Chore: Add errutils helpers (#73577) 2023-08-22 12:52:24 +02:00
models_test.go Team LBAC: Add teamHeaders for datasource proxy requests (#76339) 2023-10-17 11:23:54 +01:00
models.go Team LBAC: Add validation/regex of teamheaders (#76905) 2023-10-27 12:37:37 +01:00