mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AuthN: Change the external service account state on plugin state change (#77157)
* Disable plugin service account
* Revert extsvc injection
* handle plugin state changes
* Use isProxyEnabled
* Remove plugininteg changes
* Change update function to also work for mysql 😩
* Change test to also check no collateral update
* Update pkg/services/serviceaccounts/database/store_test.go
* Update pkg/services/serviceaccounts/database/store_test.go
This commit is contained in:
@@ -196,6 +196,12 @@ type ManageExtSvcAccountCmd struct {
|
||||
Permissions []accesscontrol.Permission
|
||||
}
|
||||
|
||||
type EnableExtSvcAccountCmd struct {
|
||||
ExtSvcSlug string
|
||||
Enabled bool
|
||||
OrgID int64
|
||||
}
|
||||
|
||||
// AccessEvaluator is used to protect the "Configuration > Service accounts" page access
|
||||
var AccessEvaluator = accesscontrol.EvalAny(
|
||||
accesscontrol.EvalPermission(ActionRead),
|
||||
|
||||
Reference in New Issue
Block a user