mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 04:12:09 +08:00
Chore: Update plugin schema with service registration info (#70692)
This commit is contained in:

committed by
GitHub

parent
e03f61fe26
commit
025465e611
@ -477,6 +477,68 @@
|
||||
"tracing": {
|
||||
"type": "boolean",
|
||||
"description": "For data source plugins, if the plugin supports tracing. Used for example to link logs (e.g. Loki logs) with tracing plugins."
|
||||
},
|
||||
"externalServiceRegistration": {
|
||||
"type": "object",
|
||||
"description": "Oauth App Service Registration.",
|
||||
"properties": {
|
||||
"impersonation": {
|
||||
"type": "object",
|
||||
"description": "Impersonation describes the permissions that the external service will have on behalf of the user.",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Enabled allows the service to request access tokens to impersonate users using the jwtbearer grant"
|
||||
},
|
||||
"groups": {
|
||||
"type": "boolean",
|
||||
"description": "Groups allows the service to list the impersonated user's teams."
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "Permissions are the permissions that the external service needs when impersonating a user. The intersection of this set with the impersonated user's permission guarantees that the client will not gain more privileges than the impersonated user has.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"self": {
|
||||
"type": "object",
|
||||
"description": "Self describes the permissions that the external service will have on behalf of itself",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Enabled allows the service to request access tokens for itself using the client_credentials grant"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "Permissions are the permissions that the external service needs its associated service account to have",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user