Azure: Settings for Azure AD Workload Identity (#75283)

* Settings for Azure AD Workload Identity

* Update dependency on Grafana Azure SDK

* Documentation

* Fix JS code

* Cleanup Prometheus backend code

* Making prettier happy
This commit is contained in:
Sergey Kostrukov
2023-09-28 04:05:16 -07:00
committed by GitHub
parent 969e6a17ba
commit 3ee40d3a5a
11 changed files with 101 additions and 35 deletions

View File

@@ -4,11 +4,16 @@ import { GrafanaBootConfig } from '@grafana/runtime';
import { AzureAuthSecureJSONDataType, AzureAuthJSONDataType, AzureAuthType } from '../types';
export const configWithManagedIdentityEnabled: Partial<GrafanaBootConfig> = {
azure: { managedIdentityEnabled: true, userIdentityEnabled: false },
azure: { managedIdentityEnabled: true, workloadIdentityEnabled: false, userIdentityEnabled: false },
};
export const configWithManagedIdentityDisabled: Partial<GrafanaBootConfig> = {
azure: { managedIdentityEnabled: false, userIdentityEnabled: false, cloud: 'AzureCloud' },
azure: {
managedIdentityEnabled: false,
workloadIdentityEnabled: false,
userIdentityEnabled: false,
cloud: 'AzureCloud',
},
};
export const dataSourceSettingsWithMsiCredentials: Partial<