grafana/pkg/services/extsvcauth
Gabriel MABILLE 700e6e3287
AuthN: Add service account token generation to ExtSvcAccountsService (#76327)
* Manage service account secrets

* Wip

* WIP

* WIP

* Revert to keep a light interface

* Implement SaveExternalService

* Remove unecessary functions from the interface

* Remove unused field

* Better log

* Leave ext svc credentials out of the extsvcauth package for now

* Remove todo

* Add tests to SaveExternalService

* Test that secret has been removed from store

* Lint

* Nit.

* Rename commands and structs

Co-authored-by: Kalle Persson <kalle.persson@grafana.com>

* Account for PR feedback

Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com>

* Linting

* Add nosec comment G101 - this is not a hardcoded secret

* Lowercase kvStoreType

---------

Co-authored-by: Kalle Persson <kalle.persson@grafana.com>
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com>
2023-10-12 16:15:16 +02:00
..
extsvcaccounts AuthN: Add service account token generation to ExtSvcAccountsService (#76327) 2023-10-12 16:15:16 +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 AuthN: New service to support multiple authentication providers for plugins (#75979) 2023-10-05 18:13:06 +02:00
errors.go AuthN: Add service account token generation to ExtSvcAccountsService (#76327) 2023-10-12 16:15:16 +02:00
models.go AuthN: Add service account token generation to ExtSvcAccountsService (#76327) 2023-10-12 16:15:16 +02:00