grafana/pkg/services/serviceaccounts
linoman 359d84799e
auth: add serviceaccount proxy (#76815)
* Add proxy service template

* Replace SA srv with proxy for external SA srv

* Move service account prefix to a constant

* Prevent deletion from external service account

* Make SA validation a resusable function

* Add protection for creating service accounts

* Add protection when updating service accounts

* Add IsExternal field for service account

* Protect ext service account token generation

* Add verbose errors for form name or sa name

* add tests

* Add logs

* Adjusts tests

---------

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-10-23 14:09:42 +02:00
..
api Instrumentation: Set auth as owners for more routes (#75105) 2023-09-20 10:18:52 +02:00
database auth: add serviceaccount proxy (#76815) 2023-10-23 14:09:42 +02:00
manager Chore: capitalise log message for auth packages (#74332) 2023-09-04 18:49:47 +02:00
proxy auth: add serviceaccount proxy (#76815) 2023-10-23 14:09:42 +02:00
retriever Auth: Service account store refactor (#58961) 2022-12-13 14:56:10 +01:00
secretscan Chore: capitalise log message for auth packages (#74332) 2023-09-04 18:49:47 +02:00
tests AccessControl: Remove acmock.New from accesscontrol service tests (#71942) 2023-07-20 10:00:46 +02:00
models.go auth: add serviceaccount proxy (#76815) 2023-10-23 14:09:42 +02:00
serviceaccounts.go Chore: Remove Result field from serviceaccounts, ualert (#62476) 2023-01-31 09:51:55 +01:00