-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Container image signing for windows and linux images (#570)
* Removing duplicate alerts from ci recommended alerts * Remove test branch * Add label limits for pod annotations default config * Test image signing with test keycode * change service name * test * update esrp name * add oras * update * update * update dotnet version * test * test only linux build * upgrade to dotnet 6 * update * update * update esrp version * test * remove use dotnet and use esrp 3 * remove use dotnet and use esrp 2 * remove use dotnet and use esrp 2 * remove use dotnet and use esrp 3 , test only esrp * install oras cli * correct bug * change branch name * update dockerfile * Use oras instead of azcu wrapper to attach signature * test * Update windows image signing * fix the payload powershell command windows * changes to payload step * reorder * test reorder * testing reorder * change step of payload inside build image step * update ps script * test commit * test commit only windows * see payload content * correct powershell oras commands * remove quotes from ps command for oras attach * use powershell script in same block * Container image signing for windows and linux images * Add doc with details on signing * remove personal branch * add personal branch * test * update build condition
- Loading branch information
1 parent
f7360f1
commit 6b9a004
Showing
2 changed files
with
109 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
I have followed this [doc](https://eng.ms/docs/more/containers-secure-supply-chain/signing). | ||
[This](https://ms.portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Overview/quickStartType~/null/sourceType/Microsoft_AAD_IAM/appId/73f8d5f9-b507-497f-b698-4ed00fcba5a3/objectId/cd14f76f-2797-4192-927e-65b7e37e9c26/isMSAApp~/false/defaultBlade/Overview/appSignInAudience/AzureADMyOrg/servicePrincipalCreated~/true) is the ESRP app registration created for ESRP connection, [it](https://ms.portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Credentials/quickStartType~/null/sourceType/Microsoft_AAD_IAM/appId/73f8d5f9-b507-497f-b698-4ed00fcba5a3/objectId/cd14f76f-2797-4192-927e-65b7e37e9c26/isMSAApp~/false/defaultBlade/Overview/appSignInAudience/AzureADMyOrg/servicePrincipalCreated~/true) has the client secret authentication key for the AAD App ID which is used by the ADO task. | ||
|
||
[This](https://github-private.visualstudio.com/azure/_settings/adminservices?resourceId=91213571-9b46-4675-91d5-fd997630bda6) is the service connection created for ESRP. All these steps are given [here](https://microsoft.sharepoint.com/teams/prss/Codesign/SitePages/ESRP%20ADO.aspx). | ||
|
||
[This](https://portal.esrp.microsoft.com/Onboarding/AccountDetails?clientId=73f8d5f9-b507-497f-b698-4ed00fcba5a3) is the ESRP registration client created for signing Prometheus images. The approved ESRP sign key code CP-469451 is used for signing as mentioned in [doc](https://eng.ms/docs/more/containers-secure-supply-chain/signing). | ||
|
||
For verification of signing we can do through 2 ways. | ||
|
||
1. Locally through the doc https://eng.ms/docs/more/containers-secure-supply-chain/signing under validation section using notation. We have to use our own [certificate](https://ms.portal.azure.com/#view/Microsoft_Azure_KeyVault/ListObjectVersionsRBACBlade/~/overview/objectType/certificates/objectId/https%3A%2F%2Fesrpprometheuskv.vault.azure.net%2Fcertificates%2FESRPReqPrometheusCert/vaultResourceUri/%2Fsubscriptions%2F9b96ebbd-c57a-42d1-bbe9-b69296e4c7fb%2FresourceGroups%2FESRPPrometheus%2Fproviders%2FMicrosoft.KeyVault%2Fvaults%2FESRPPrometheusKV/vaultId/%2Fsubscriptions%2F9b96ebbd-c57a-42d1-bbe9-b69296e4c7fb%2FresourceGroups%2FESRPPrometheus%2Fproviders%2FMicrosoft.KeyVault%2Fvaults%2FESRPPrometheusKV) instead of the one in the example. | ||
2. We can do a docker pull on the signed images and it will not have the following error message - "manifest verification failed for digest sha256..." |