grafana/pkg/services/extsvcauth
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
..
extsvcaccounts auth: add serviceaccount proxy (#76815) 2023-10-23 14:09:42 +02:00
extsvcmocks AuthN: Extract from OAuthServer service account management code (#76128) 2023-10-10 09:20:52 +02:00
oauthserver Signingkeys: Add local cache (#76234) 2023-10-10 14:17:16 +02:00
registry Plugins: Automatic service account (and token) setup (#76473) 2023-10-17 16:21:23 +02:00
errors.go AuthN: Add service account token generation to ExtSvcAccountsService (#76327) 2023-10-12 16:15:16 +02:00
models.go Plugins: Automatic service account (and token) setup (#76473) 2023-10-17 16:21:23 +02:00