Alerting: AlertingProxy to elevate permissions for request forwarded to data proxy when RBAC enabled (#53620)

This commit is contained in:
Yuriy Tseretyan
2022-08-12 09:56:18 -04:00
committed by GitHub
parent d6a0a5c9ed
commit d8d97d15ba
3 changed files with 163 additions and 11 deletions
+1
View File
@@ -91,6 +91,7 @@ func (api *API) RegisterAPIEndpoints(m *metrics.API) {
logger := log.New("ngalert.api")
proxy := &AlertingProxy{
DataProxy: api.DataProxy,
ac: api.AccessControl,
}
// Register endpoints for proxying to Alertmanager-compatible backends.