Skip to content

Commit 9bcece1

Browse files
feat: Adding SDKDefault Authentication (#67)
1 parent dbe68c3 commit 9bcece1

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

docs/resource-discovery/runtime-configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Here is a complete example of the runtime YAML:
1717

1818
```yaml
1919
authentication:
20-
# Options are ServicePrincipal, SystemAssignedManagedIdentity, UserAssignedManagedIdentity.
20+
# Options are ServicePrincipal, SystemAssignedManagedIdentity, UserAssignedManagedIdentity, SdkDefault.
2121
mode: ServicePrincipal # Optional. Default: ServicePrincipal.
2222
identityId: xxxx-xxxx-xxxx # Optional.
2323
server:
@@ -41,15 +41,15 @@ telemetry:
4141
The Promitor runtime allows you to use various ways to authenticate to Azure:
4242
4343
- `authentication.mode` - Defines authentication mode to use. Options are `ServicePrincipal`,
44-
`SystemAssignedManagedIdentity`, `UserAssignedManagedIdentity`. _(defaults to service principle)_
44+
`SystemAssignedManagedIdentity`, `UserAssignedManagedIdentity`, `SdkDefault` . _(defaults to service principle)_
4545
- `authentication.identityId` - Id of the Azure AD entity to authenticate with when integrating with Microsoft Azure.
4646
Required when using `ServicePrincipal`.
4747

4848
Example:
4949

5050
```yaml
5151
authentication:
52-
# Options are ServicePrincipal, SystemAssignedManagedIdentity, UserAssignedManagedIdentity.
52+
# Options are ServicePrincipal, SystemAssignedManagedIdentity, UserAssignedManagedIdentity, SdkDefault.
5353
mode: ServicePrincipal # Optional. Default: ServicePrincipal.
5454
identityId: xxxx-xxxx-xxxx # Optional.
5555
```

docs/scraping/runtime-configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Here is a complete example of the runtime YAML:
1717

1818
```yaml
1919
authentication:
20-
# Options are ServicePrincipal, SystemAssignedManagedIdentity, UserAssignedManagedIdentity.
20+
# Options are ServicePrincipal, SystemAssignedManagedIdentity, UserAssignedManagedIdentity, SdkDefault.
2121
mode: ServicePrincipal # Optional. Default: ServicePrincipal.
2222
identityId: xxxx-xxxx-xxxx # Optional.
2323
server:
@@ -70,15 +70,15 @@ resourceDiscovery:
7070
The Promitor runtime allows you to use various ways to authenticate to Azure:
7171
7272
- `authentication.mode` - Defines authentication mode to use. Options are `ServicePrincipal`,
73-
`SystemAssignedManagedIdentity`, `UserAssignedManagedIdentity`. _(defaults to service principle)_
73+
`SystemAssignedManagedIdentity`, `UserAssignedManagedIdentity`, `SdkDefault`. _(defaults to service principle)_
7474
- `authentication.identityId` - Id of the Azure AD entity to authenticate with when integrating with Microsoft Azure.
7575
Required when using `ServicePrincipal`.
7676

7777
Example:
7878

7979
```yaml
8080
authentication:
81-
# Options are ServicePrincipal, SystemAssignedManagedIdentity, UserAssignedManagedIdentity.
81+
# Options are ServicePrincipal, SystemAssignedManagedIdentity, UserAssignedManagedIdentity, SdkDefault.
8282
mode: ServicePrincipal # Optional. Default: ServicePrincipal.
8383
identityId: xxxx-xxxx-xxxx # Optional.
8484
```

docs/security/azure-authentication.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The app key can also be read from a file by specifying the file's location:
3737

3838
```yaml
3939
authentication:
40-
# Options are ServicePrincipal, SystemAssignedManagedIdentity, UserAssignedManagedIdentity.
40+
# Options are ServicePrincipal, SystemAssignedManagedIdentity, UserAssignedManagedIdentity, SdkDefault.
4141
mode: ServicePrincipal # Optional. Default: ServicePrincipal.
4242
identityid: # [app id]
4343
secretFilePath: # [the name of the folder containing the secret file]
@@ -53,6 +53,7 @@ When using Managed Identity, you can use one of the following scenarios:
5353
- **System-assigned Managed Identity** - Use the identity of the Azure resource on which it runs and let Azure handle
5454
the authentication.
5555
- **User-assigned Managed Identity** - Use a pre-created Azure AD identity but let Azure handle the authentication for you
56+
- **SdkDefault** - Use credentials from both Azure hosting environments and local development, letting [Azure manage authentication seamlessly](https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication/credential-chains?tabs=dac#defaultazurecredential-overview).
5657
5758
> ⚠ In order to use managed identity, your Kubernetes cluster must be hosted on Microsoft Azure to leverage this.
5859

0 commit comments

Comments
 (0)