mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 17:52:24 +08:00

* 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>
9 lines
237 B
Go
9 lines
237 B
Go
package extsvcauth
|
|
|
|
import "github.com/grafana/grafana/pkg/util/errutil"
|
|
|
|
var (
|
|
ErrUnknownProvider = errutil.BadRequest("extsvcauth.unknown-provider")
|
|
ErrCredentialsNotFound = errutil.NotFound("extsvcauth.credentials-not-found")
|
|
)
|