@@ -894,6 +894,121 @@ export GCM_AZREPOS_CREDENTIALTYPE="oauth"
894
894
895
895
---
896
896
897
+ ### GCM_AZREPOS_MANAGEDIDENTITY
898
+
899
+ Use a [ Managed Identity] [ managed-identity ] to authenticate with Azure Repos.
900
+
901
+ The value ` system ` will tell GCM to use the system-assigned Managed Identity.
902
+
903
+ To specify a user-assigned Managed Identity, use the format ` id://{clientId} `
904
+ where ` {clientId} ` is the client ID of the Managed Identity. Alternatively any
905
+ GUID-like value will also be interpreted as a user-assigned Managed Identity
906
+ client ID.
907
+
908
+ To specify a Managed Identity associated with an Azure resource, you can use the
909
+ format ` resource://{resourceId} ` where ` {resourceId} ` is the ID of the resource.
910
+
911
+ For more information about managed identities, see the Azure DevOps
912
+ [ documentation] [ azrepos-sp-mid ] .
913
+
914
+ Value|Description
915
+ -|-
916
+ ` system ` |System-Assigned Managed Identity
917
+ ` [guid] ` |User-Assigned Managed Identity with the specified client ID
918
+ ` id://[guid] ` |User-Assigned Managed Identity with the specified client ID
919
+ ` resource://[guid] ` |User-Assigned Managed Identity for the associated resource
920
+
921
+ #### Windows
922
+
923
+ ``` batch
924
+ SET GCM_AZREPOS_MANAGEDIDENTITY="id://11111111-1111-1111-1111-111111111111"
925
+ ```
926
+
927
+ #### macOS/Linux
928
+
929
+ ``` bash
930
+ export GCM_AZREPOS_MANAGEDIDENTITY=" id://11111111-1111-1111-1111-111111111111"
931
+ ```
932
+
933
+ ** Also see: [ credential.azreposManagedIdentity] [ credential-azrepos-managedidentity ] **
934
+
935
+ ---
936
+
937
+ ### GCM_AZREPOS_SERVICE_PRINCIPAL
938
+
939
+ Specify the client and tenant IDs of a [ service principal] [ service-principal ]
940
+ to use when performing Microsoft authentication for Azure Repos.
941
+
942
+ The value of this setting should be in the format: ` {tenantId}/{clientId} ` .
943
+
944
+ You must also set at least one authentication mechanism if you set this value:
945
+
946
+ - [ GCM_AZREPOS_SP_SECRET] [ gcm-azrepos-sp-secret ]
947
+ - [ GCM_AZREPOS_SP_CERT_THUMBPRINT] [ gcm-azrepos-sp-cert-thumbprint ]
948
+
949
+ For more information about service principals, see the Azure DevOps
950
+ [ documentation] [ azrepos-sp-mid ] .
951
+
952
+ #### Windows
953
+
954
+ ``` batch
955
+ SET GCM_AZREPOS_SERVICE_PRINCIPAL="11111111-1111-1111-1111-111111111111/22222222-2222-2222-2222-222222222222"
956
+ ```
957
+
958
+ #### macOS/Linux
959
+
960
+ ``` bash
961
+ export GCM_AZREPOS_SERVICE_PRINCIPAL=" 11111111-1111-1111-1111-111111111111/22222222-2222-2222-2222-222222222222"
962
+ ```
963
+
964
+ ** Also see: [ credential.azreposServicePrincipal] [ credential-azrepos-sp ] **
965
+
966
+ ---
967
+
968
+ ### GCM_AZREPOS_SP_SECRET
969
+
970
+ Specifies the client secret for the [ service principal] [ service-principal ] when
971
+ performing Microsoft authentication for Azure Repos with
972
+ [ GCM_AZREPOS_SERVICE_PRINCIPAL] [ gcm-azrepos-sp ] set.
973
+
974
+ #### Windows
975
+
976
+ ``` batch
977
+ SET GCM_AZREPOS_SP_SECRET="da39a3ee5e6b4b0d3255bfef95601890afd80709"
978
+ ```
979
+
980
+ #### macOS/Linux
981
+
982
+ ``` bash
983
+ export GCM_AZREPOS_SP_SECRET=" da39a3ee5e6b4b0d3255bfef95601890afd80709"
984
+ ```
985
+
986
+ ** Also see: [ credential.azreposServicePrincipalSecret] [ credential-azrepos-sp-secret ] **
987
+
988
+ ---
989
+
990
+ ### GCM_AZREPOS_SP_CERT_THUMBPRINT
991
+
992
+ Specifies the thumbprint of a certificate to use when authenticating as a
993
+ [ service principal] [ service-principal ] for Azure Repos when
994
+ [ GCM_AZREPOS_SERVICE_PRINCIPAL] [ gcm-azrepos-sp ] is set.
995
+
996
+ #### Windows
997
+
998
+ ``` batch
999
+ SET GCM_AZREPOS_SP_CERT_THUMBPRINT="9b6555292e4ea21cbc2ebd23e66e2f91ebbe92dc"
1000
+ ```
1001
+
1002
+ #### macOS/Linux
1003
+
1004
+ ``` bash
1005
+ export GCM_AZREPOS_SP_CERT_THUMBPRINT=" 9b6555292e4ea21cbc2ebd23e66e2f91ebbe92dc"
1006
+ ```
1007
+
1008
+ ** Also see: [ credential.azreposServicePrincipalCertificateThumbprint] [ credential-azrepos-sp-cert-thumbprint ] **
1009
+
1010
+ ---
1011
+
897
1012
### GIT_TRACE2
898
1013
899
1014
Turns on Trace2 Normal Format tracing - see [ Git's Trace2 Normal Format
@@ -985,7 +1100,8 @@ Defaults to disabled.
985
1100
[ credential-allowwindowsauth ] : environment.md#credentialallowWindowsAuth
986
1101
[ credential-authority ] : configuration.md#credentialauthority-deprecated
987
1102
[ credential-autodetecttimeout ] : configuration.md#credentialautodetecttimeout
988
- [ credential-azrepos-credential-type ] : configuration.md#azreposcredentialtype
1103
+ [ credential-azrepos-credential-type ] : configuration.md#credentialazreposcredentialtype
1104
+ [ credential-azrepos-managedidentity ] : configuration.md#credentialazreposmanagedidentity
989
1105
[ credential-bitbucketauthmodes ] : configuration.md#credentialbitbucketAuthModes
990
1106
[ credential-cacheoptions ] : configuration.md#credentialcacheoptions
991
1107
[ credential-credentialstore ] : configuration.md#credentialcredentialstore
@@ -1022,6 +1138,7 @@ Defaults to disabled.
1022
1138
[ github-emu ] : https://docs.github.com/en/enterprise-cloud@latest/admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users
1023
1139
[ network-http-proxy ] : netconfig.md#http-proxy
1024
1140
[ libsecret ] : https://wiki.gnome.org/Projects/Libsecret
1141
+ [ managed-identity ] : https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview
1025
1142
[ migration-guide ] : migration.md#gcm_authority
1026
1143
[ passwordstore ] : https://www.passwordstore.org/
1027
1144
[ trace2-normal-docs ] : https://git-scm.com/docs/api-trace2#_the_normal_format_target
@@ -1031,3 +1148,11 @@ Defaults to disabled.
1031
1148
[ trace2-performance-docs ] : https://git-scm.com/docs/api-trace2#_the_performance_format_target
1032
1149
[ trace2-performance-config ] : configuration.md#trace2perfTarget
1033
1150
[ windows-broker ] : windows-broker.md
1151
+ [ service-principal ] : https://docs.microsoft.com/en-us/azure/active-directory/develop/app-objects-and-service-principals
1152
+ [ azrepos-sp-mid ] : https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/service-principal-managed-identity
1153
+ [ gcm-azrepos-sp ] : #gcm_azrepos_service_principal
1154
+ [ gcm-azrepos-sp-secret ] : #gcm_azrepos_sp_secret
1155
+ [ gcm-azrepos-sp-cert-thumbprint ] : #gcm_azrepos_sp_cert_thumbprint
1156
+ [ credential-azrepos-sp ] : configuration.md#credentialazreposserviceprincipal
1157
+ [ credential-azrepos-sp-secret ] : configuration.md#credentialazreposserviceprincipalsecret
1158
+ [ credential-azrepos-sp-cert-thumbprint ] : configuration.md#credentialazreposserviceprincipalcertificatethumbprint
0 commit comments