grafana/pkg
Misi 9236c5a5cf
Auth: Add OrgRoleMapper service (#86973)
* Add OrgRoleMapper

* Address feedback, add more tests

* Prevent resetting assignments when global org mapping fails

* Provide a parsing function instead of recalculating the org_mapping on every mapping

* Introduce strict role parsing/mapping

* Introduce MappingConfiguration

* Handle other edge case

* Add tests

* lint

* Apply documentation update suggestions

* Apply GetDefaultOrgMapping suggestions from code review

* Apply suggestions for cleaning up unnecessary err in ParseOrgMappingSettings

* Apply suggestions from code review

* Address feedback suggestions

* Cleanup

* Reduce cognitive complexity of ParseOrgMappingSettings

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-05-06 09:25:47 +02:00
..
api Azure: get custom cloud list from grafana-azure-sdk-go package (#86717) 2024-05-04 13:17:51 +03:00
apimachinery Chore: Upgrade/fix deps after thema removal (#86763) 2024-04-25 20:52:09 +02:00
apis Scopes: Adds kinds for browsing the scope node tree. (#86975) 2024-05-03 09:48:54 +02:00
apiserver Storage: Add mode 2 dual writing improvements (#87204) 2024-05-02 16:06:51 +02:00
build Chore: Upgrade grpc-ecosystem/go-grpc-middleware to v2 (#86724) 2024-04-25 17:25:48 +02:00
bus Tracing: Standardize on otel tracing (#75528) 2023-10-03 14:54:20 +02:00
cmd User: Add tracing (#87028) 2024-04-30 13:15:56 +02:00
codegen Chore: Upgrade/fix deps after thema removal (#86763) 2024-04-25 20:52:09 +02:00
components Chore: Improve some confusing logs (#87185) 2024-05-01 19:42:05 +03:00
events Alerting: Update rules version when folder title is updated (#53013) 2022-08-01 19:28:38 -04:00
expr sql expressions: improve parser (#87277) 2024-05-03 08:08:07 -04:00
extensions Chore: Upgrade/fix deps after thema removal (#86763) 2024-04-25 20:52:09 +02:00
generated K8s: update hack codegen script (#81216) 2024-01-25 12:01:09 -08:00
ifaces/gcsifaces Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
infra Chore: Moving to slog (folders) (#87000) 2024-05-02 09:14:12 +02:00
kinds Schemas: Replace registry generation and github workflow (#83490) 2024-03-13 18:05:21 +02:00
login/social Auth: Add OrgRoleMapper service (#86973) 2024-05-06 09:25:47 +02:00
middleware User: support setting org and help flags though update function (#86535) 2024-04-29 08:53:05 +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 Storage Api: Add metrics (#85316) 2024-04-08 08:35:01 -06:00
plugins Unified Storage: Adds health check service for entity server (#86471) 2024-05-01 11:36:44 -06:00
promlib Prometheus: Avoid parsing unused legacy datasource property (#87224) 2024-05-05 15:00:53 +03:00
registry Scopes: Adds kinds for browsing the scope node tree. (#86975) 2024-05-03 09:48:54 +02:00
server k8s: remove dependency on app_mode development (#85474) 2024-05-03 11:28:15 +03:00
services Auth: Add OrgRoleMapper service (#86973) 2024-05-06 09:25:47 +02:00
setting Unified Storage: Redacts logged env var values for entity api db password (#87191) 2024-05-01 12:15:44 -06:00
tests Alerting: Hook up GMA silence APIs to new authentication handler (#86625) 2024-05-03 15:32:30 -04:00
tsdb MSSQL: Add HostName method (#87309) 2024-05-03 15:45:34 +01:00
util Migrate wrong datasource UIDs (#86598) 2024-05-03 13:32:07 +02:00
web Image Rendering: Add settings for default width, height and scale (#82040) 2024-02-26 13:27:34 +01: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

This directory contains the code for the Grafana backend.

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