Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebrand Az.Codesigning -> Az.TrustedSigning #27093

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions src/CodeSigning/CodeSigning/ChangeLog.md

This file was deleted.

22 changes: 0 additions & 22 deletions src/CodeSigning/CodeSigning/help/Az.CodeSigning.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
using Microsoft.Azure.Commands.TestFx;
using Xunit.Abstractions;

namespace Microsoft.Azure.Commands.CodeSigning.Test.ScenarioTests
namespace Microsoft.Azure.Commands.TrustedSigning.Test.ScenarioTests
{
public class CodeSigningTestRunner
public class TrustedSigningTestRunner
{
protected readonly ITestRunner TestRunner;

protected CodeSigningTestRunner(ITestOutputHelper output)
protected TrustedSigningTestRunner(ITestOutputHelper output)
{
TestRunner = TestManager.CreateInstance(output)
.WithNewPsScriptFilename($"{GetType().Name}.ps1")
Expand All @@ -33,7 +33,7 @@ protected CodeSigningTestRunner(ITestOutputHelper output)
.WithNewRmModules(helper => new[]
{
helper.RMProfileModule,
helper.GetRMModulePath("Az.CodeSigning.psd1"),
helper.GetRMModulePath("Az.TrustedSigning.psd1"),
})
.Build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;

namespace Microsoft.Azure.Commands.CodeSigning.Test.ScenarioTests
namespace Microsoft.Azure.Commands.TrustedSigning.Test.ScenarioTests
{
public class CodeSigningTests: CodeSigningTestRunner
public class TrustedSigningTests: TrustedSigningTestRunner
{
public CodeSigningTests(Xunit.Abstractions.ITestOutputHelper output) : base(output)
public TrustedSigningTests(Xunit.Abstractions.ITestOutputHelper output) : base(output)
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Test-CodeSigningEku {

try {
# Test Get CodeSigning Eku
$eku = Get-AzCodeSigningCustomerEku -AccountName $accountName -ProfileName $profileName -EndpointUrl $endPointUrl
$eku = Get-AzTrustedSigningCertificateProfileEku -AccountName $accountName -ProfileName $profileName -EndpointUrl $endPointUrl
Assert-AreEqual $eku $expectedEku
}

Expand All @@ -46,7 +46,7 @@ function Test-GetCodeSigningRootCert {

try {
# Test Get CodeSigning Root Cert
$cert = Get-AzCodeSigningRootCert -AccountName $accountName -ProfileName $profileName -EndpointUrl $endPointUrl -Destination $destination
$cert = Get-AzTrustedSigningCertificateProfileCertificateRoot -AccountName $accountName -ProfileName $profileName -EndpointUrl $endPointUrl -Destination $destination
Assert-NotNullOrEmpty $cert
}

Expand All @@ -67,7 +67,7 @@ function Test-GetCodeSigningCertChain {

try {
# Test Get CodeSigning Certificate Chain
$chain = Get-AzCodeSigningCertChain -AccountName $accountName -ProfileName $profileName -EndpointUrl $endPointUrl -Destination $destination
$chain = Get-AzTrustedSigningCertificateProfileCertificateChain -AccountName $accountName -ProfileName $profileName -EndpointUrl $endPointUrl -Destination $destination
Assert-NotNullOrEmpty $chain
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PsModuleName>CodeSigning</PsModuleName>
<PsModuleName>TrustedSigning</PsModuleName>
</PropertyGroup>

<Import Project="$(MSBuildThisFileDirectory)..\..\Az.Test.props" />
Expand All @@ -26,7 +26,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\CodeSigning\CodeSigning.csproj" />
<ProjectReference Include="..\TrustedSigning\TrustedSigning.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
Microsoft Visual Studio Solution File, Format Version 12.00

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32901.215
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CodeSigning", "CodeSigning\CodeSigning.csproj", "{9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}"
Expand All @@ -14,26 +13,24 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceMana
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestFx\TestFx.csproj", "{BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CodeSigning.Test", "CodeSigning.Test\CodeSigning.Test.csproj", "{1F35D6C0-5310-43F9-A320-193A2C1AEEC8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{1F6E85D8-6920-4F62-B378-F4948BF8DF2D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "..\Accounts\Accounts", "..\Accounts\Accounts", "{A0FF9ABD-FC90-4D57-8E97-1F14BB07BDBD}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Accounts", "Accounts", "{D325ACB5-919A-4BD5-9811-ED3DC2237039}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Accounts (2)", "Accounts (2)", "{D325ACB5-919A-4BD5-9811-ED3DC2237039}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{DACA957F-AAFE-4DDF-B325-36F995DC41BE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrustedSigning", "TrustedSigning\TrustedSigning.csproj", "{34BC694B-D991-4A35-8AE6-318032BD61FF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrustedSigning.Test", "TrustedSigning.Test\TrustedSigning.Test.csproj", "{A87F6731-17EE-49E5-AE56-85809E3ACA2B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}.Release|Any CPU.Build.0 = Release|Any CPU
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -54,10 +51,6 @@ Global
{BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Release|Any CPU.Build.0 = Release|Any CPU
{1F35D6C0-5310-43F9-A320-193A2C1AEEC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1F35D6C0-5310-43F9-A320-193A2C1AEEC8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1F35D6C0-5310-43F9-A320-193A2C1AEEC8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1F35D6C0-5310-43F9-A320-193A2C1AEEC8}.Release|Any CPU.Build.0 = Release|Any CPU
{1F6E85D8-6920-4F62-B378-F4948BF8DF2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1F6E85D8-6920-4F62-B378-F4948BF8DF2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1F6E85D8-6920-4F62-B378-F4948BF8DF2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -66,15 +59,23 @@ Global
{DACA957F-AAFE-4DDF-B325-36F995DC41BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DACA957F-AAFE-4DDF-B325-36F995DC41BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DACA957F-AAFE-4DDF-B325-36F995DC41BE}.Release|Any CPU.Build.0 = Release|Any CPU
{34BC694B-D991-4A35-8AE6-318032BD61FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{34BC694B-D991-4A35-8AE6-318032BD61FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{34BC694B-D991-4A35-8AE6-318032BD61FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{34BC694B-D991-4A35-8AE6-318032BD61FF}.Release|Any CPU.Build.0 = Release|Any CPU
{A87F6731-17EE-49E5-AE56-85809E3ACA2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A87F6731-17EE-49E5-AE56-85809E3ACA2B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A87F6731-17EE-49E5-AE56-85809E3ACA2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A87F6731-17EE-49E5-AE56-85809E3ACA2B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5E85B4CC-D1A9-466B-98AC-E0AD0C5AE585}
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E} = {A0FF9ABD-FC90-4D57-8E97-1F14BB07BDBD}
{DACA957F-AAFE-4DDF-B325-36F995DC41BE} = {D325ACB5-919A-4BD5-9811-ED3DC2237039}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5E85B4CC-D1A9-466B-98AC-E0AD0C5AE585}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.CodeSigning.dll')
FunctionsToExport = @()

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = 'Get-AzCodeSigningCustomerEku', 'Get-AzCodeSigningRootCert',
'Get-AzCodeSigningCertChain', 'Invoke-AzCodeSigningCIPolicySigning'
CmdletsToExport = 'Get-AzTrustedSigningCertificateProfileEku', 'Get-AzTrustedSigningCertificateProfileCertificateRoot',
'Get-AzTrustedSigningCertificateProfileCertificateChain', 'Invoke-AzTrustedSigningCodeIntegrityPolicySigning'

# Variables to export from this module
# VariablesToExport = @()
Expand All @@ -97,7 +97,7 @@ PrivateData = @{
PSData = @{

# Tags applied to this module. These help with module discovery in online galleries.
Tags = 'Azure','CodeSigning'
Tags = 'Azure', 'TrustedSigning','CodeSigning'

# A URL to the license for this module.
LicenseUri = 'https://aka.ms/azps-license'
Expand All @@ -109,10 +109,7 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '* Upgraded nuget package to signed package.
* Upgraded Azure.Core to 1.44.1.
* Upgraded to rebranded package Azure.Developer.TrustedSigning.CryptoProvider.
* Upgraded to updated Azure.Codesigning.Sdk.'
ReleaseNotes = ''

# Prerelease string of this module
# Prerelease = ''
Expand Down
22 changes: 22 additions & 0 deletions src/TrustedSigning/TrustedSigning/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--
Please leave this section at the top of the change log.

Changes for the upcoming release should go under the section titled "Upcoming Release", and should adhere to the following format:

## Upcoming Release
* Overview of change #1
- Additional information about change #1
* Overview of change #2
- Additional information about change #2
- Additional information about change #2
* Overview of change #3
* Overview of change #4
- Additional information about change #4

## YYYY.MM.DD - Version X.Y.Z (Previous Release)
* Overview of change #1
- Additional information about change #1
-->
## Upcoming Release
* Renamed from `Az.Codesigning` 0.2.1

Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Commands.CodeSigning.Models;
using Microsoft.Azure.Commands.TrustedSigning.Models;
using System.Collections.Generic;
using System.IO;
using System.Management.Automation;
using System.Security.Cryptography.X509Certificates;

namespace Microsoft.Azure.Commands.CodeSigning
namespace Microsoft.Azure.Commands.TrustedSigning
{
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "CodeSigningCertChain", DefaultParameterSetName = ByAccountProfileNameParameterSet)]
[Alias("Get-AzCodeSigningCertChain")]
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "TrustedSigningCertificateProfileCertificateChain", DefaultParameterSetName = ByAccountProfileNameParameterSet)]
[OutputType(typeof(IEnumerable<PSSigningCertificate>))]
public class GetAzureCodeSigningCertChain : CodeSigningCmdletBase
public class GetAzureTrustedSigningCertificateProfileCertificateChain : CodeSigningCmdletBase
{
#region Parameter Set Names

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Commands.CodeSigning.Models;
using Microsoft.Azure.Commands.TrustedSigning.Models;
using System.IO;
using System.Management.Automation;
using System.Security.Cryptography.X509Certificates;

namespace Microsoft.Azure.Commands.CodeSigning
namespace Microsoft.Azure.Commands.TrustedSigning
{
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "CodeSigningRootCert", DefaultParameterSetName = ByAccountProfileNameParameterSet)]
[Alias("Get-AzCodeSigningRootCert")]
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "TrustedSigningCertificateProfileCertificateRoot", DefaultParameterSetName = ByAccountProfileNameParameterSet)]
[OutputType(typeof(PSSigningCertificate))]
public class GetAzureCodeSigningRootCert : CodeSigningCmdletBase
public class GetAzureTrustedSigningCertificateProfileCertificateRoot : CodeSigningCmdletBase
{
#region Parameter Set Names

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Commands.CodeSigning.Models;
using Microsoft.Azure.Commands.TrustedSigning.Models;
using System;
using System.Management.Automation;

namespace Microsoft.Azure.Commands.CodeSigning
namespace Microsoft.Azure.Commands.TrustedSigning
{
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "CodeSigningCustomerEku", DefaultParameterSetName = ByAccountProfileNameParameterSet)]
[Alias("Get-AzCodeSigningCustomerEku")]
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "TrustedSigningCertificateProfileEku", DefaultParameterSetName = ByAccountProfileNameParameterSet)]
[OutputType(typeof(string[]))]
public class GetAzureCodeSigningCustomerEku : CodeSigningCmdletBase
public class GetAzureTrustedSigningCertificateProfileEku : CodeSigningCmdletBase
{
#region Parameter Set Names

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Commands.CodeSigning.Helpers;
using Microsoft.Azure.Commands.CodeSigning.Models;
using Microsoft.Azure.Commands.TrustedSigning.Helpers;
using Microsoft.Azure.Commands.TrustedSigning.Models;
using System;
using System.IO;
using System.Management.Automation;
using System.Xml.Linq;

namespace Microsoft.Azure.Commands.CodeSigning
namespace Microsoft.Azure.Commands.TrustedSigning
{
[Cmdlet(VerbsLifecycle.Invoke, ResourceManager.Common.AzureRMConstants.AzurePrefix + "CodeSigningCIPolicySigning", DefaultParameterSetName = ByAccountProfileNameParameterSet)]
[Alias("Invoke-AzCodeSigningCIPolicySigning", "Invoke-AzTrustedSigningCIPolicySigning")]
[Cmdlet(VerbsLifecycle.Invoke, ResourceManager.Common.AzureRMConstants.AzurePrefix + "TrustedSigningCodeIntegrityPolicySigning", DefaultParameterSetName = ByAccountProfileNameParameterSet)]
[OutputType(typeof(string))]
public class InvokeCIPolicySigning : CodeSigningCmdletBase
public class InvokeCodeIntegrityPolicySigning : CodeSigningCmdletBase
{
#region Parameter Set Names

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
using System.Security.Cryptography;
using System.Security.Cryptography.Pkcs;

namespace Microsoft.Azure.Commands.CodeSigning.Helpers
namespace Microsoft.Azure.Commands.TrustedSigning.Helpers
{
internal class CmsSigner
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
using System.Security;
using System.Runtime.CompilerServices;

namespace Microsoft.Azure.Commands.CodeSigning.Helpers
namespace Microsoft.Azure.Commands.TrustedSigning.Helpers
{
[SuppressUnmanagedCodeSecurity]
internal unsafe static class NativeMethod
Expand Down
Loading