grafana/pkg/services/serviceaccounts/database
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
..
stats_test.go Auth: Add empty role usage metrics for service and user accounts (#73108) 2023-08-16 10:56:47 +02:00
stats.go Auth: Add empty role usage metrics for service and user accounts (#73108) 2023-08-16 10:56:47 +02:00
store_test.go Auth: Add empty role definition (#64694) 2023-07-06 15:40:06 +02:00
store.go auth: add serviceaccount proxy (#76815) 2023-10-23 14:09:42 +02:00
token_store_test.go Rename Id to ID for annotation models (#62886) 2023-02-03 17:23:09 +01:00
token_store.go Service accounts: UI migration results (#68789) 2023-06-08 10:09:30 +02:00