Skip to content

Commit 42d76f8

Browse files
DavidObandoCopilot
andauthored
Switch ESRP service connection to wif2 to fix npm publish (#672)
The TypeScript build-and-publish pipeline fails in the EsrpRelease task while acquiring a token: AADSTS700213: No matching federated identity record found for presented assertion subject The 'Devtunnels-esrp-ame-msi' service connection's federated identity credential no longer matches the assertion subject presented by the ADO v5 agent, so the release gateway is never reached and no package is published. dev-tunnels-ssh hit the same failure and resolved it by moving to the 'Devtunnels-esrp-ame-msi-wif2' connection in microsoft/dev-tunnels-ssh@d8a9ff1. This applies the equivalent change here; everything else about the ESRP configuration (tenant, client id, key vault, signing certificate, task version) is unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 60c66cf commit 42d76f8

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.pipelines/typescript-build-and-publish.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,21 @@ variables:
1717

1818
# ESRP Code Signing
1919
# ESRP Registration: https://portal.esrp.microsoft.com/Onboarding/AccountDetails?clientId=142047f4-eda8-4853-8776-c2e81803ea13
20-
# Service connection in devdiv Azure DevOps: Devtunnels-esrp-ame-msi (https://devdiv.visualstudio.com/OnlineServices/_settings/adminservices?resourceId=702454c9-77bd-4750-820e-5ce2e483f9f5)
20+
# Service connection in devdiv Azure DevOps: Devtunnels-esrp-ame-msi-wif2
21+
# (listed under https://devdiv.visualstudio.com/OnlineServices/_settings/adminservices)
22+
# This replaces the earlier 'Devtunnels-esrp-ame-msi' connection (resourceId 702454c9-77bd-4750-820e-5ce2e483f9f5).
23+
# That connection's federated identity credential no longer matches the assertion subject presented by the
24+
# ADO v5 agent, so EsrpRelease fails to acquire a token with 'AADSTS700213: No matching federated identity
25+
# record found for presented assertion subject'. dev-tunnels-ssh made the same switch in
26+
# microsoft/dev-tunnels-ssh@d8a9ff1.
2127
# Managed identity that this service connection has federated access to: tunnels-ppe-esrp-id (client id 01ee3ff5-3b24-4b62-996e-6217f7cf3487) in AME tenant (33e01921-4d64-4f8c-a055-5bdaffd5e33d).
2228
# Signing certificate: esrp-sign in tunnels-ppe-esrp-kv
2329
# ESRP used to use a cert to authenticate as app in Microsoft tenant, but now it uses a managed identity in AME tenant.
2430
# The migration was done following these TSGs:
2531
# https://eng.ms/docs/microsoft-security/identity/trust-and-security-services/tss-high-security-environments/tss-esrp-fabric-and-platform-services/esrp-documentation/tsgs/sfi/tsg501-eliminate-access-to-codesigning-from-corp-tenants
2632
# https://eng.ms/docs/microsoft-security/identity/trust-and-security-services/tss-high-security-environments/tss-esrp-fabric-and-platform-services/esrp-documentation/tsgs/sfi/tsg506-integrating-esrp-release-ado-extension
2733

28-
EsrpConnectedServiceName: 'Devtunnels-esrp-ame-msi' # Service connection with ESRP MSI based authentication
34+
EsrpConnectedServiceName: 'Devtunnels-esrp-ame-msi-wif2' # Service connection with ESRP MSI based authentication
2935
EsrpClientId: '142047f4-eda8-4853-8776-c2e81803ea13' # ESRP Client Id, the Old App Registration Id to which we mapped our Managed Identity Id to
3036
EsrpAuthAKVName: 'tunnels-ppe-esrp-kv' # Key Vault name where the signing certificate is stored
3137
EsrpAuthSignCertName: 'esrp-sign' # Code signing certificate name in the Key Vault

0 commit comments

Comments
 (0)