Skip to content

Commit 4a7ebfb

Browse files
authored
[KeyVault] Add support for 7.6 preview.2 in Certificates and Secrets (Azure#48675)
* Upgrade service version for Secrets * Upgrade service version for Keys * Added new Encryption Algorithms to Keys * Added new signature algorithms to Keys * Add KeyAttestation in Keys * Upgrade service version in Certificates * Added preserveCertOrder flag in Certificates * Update API * Make previous Create Certificate methods non browsable in Certificates * export API after making StartCreateCertificate non browsable * Remove ambiguity with old overloads * Export API * [Certificates] Add PreserveCertOrder tests * [Keys] Add tests for GetKeyAttestation * Include new versions in Keys and Certificates tests * Fix Import Certificate test * Replace expired certificates in Samples * Update recordings for Certificates * [Certificates] Fix build errors * Remove Keys package from PR * Revert changes in Admin Assets * Wrap samples tests certificates in region and !snippet * Re-record tests for Certificates and Secrets * Record Keys test that depends on Secrets with preview version * Update Certificates changelog * Update CertOder tests * Do not use abbreviation for Certificate * Push new recordings
1 parent 42cd06a commit 4a7ebfb

21 files changed

+314
-131
lines changed

sdk/keyvault/Azure.Security.KeyVault.Certificates/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@
44

55
### Features Added
66

7+
- New `preserveCertificateOrder` option when creating and importing certificates. It can be set as an optional paremeter in `StartCreateCertificate`, as an option in `ImportCertificateOptions`, and it can be retrieved from certificates of type `KeyVaultCertificateWithPolicy`
8+
79
### Breaking Changes
810

911
### Bugs Fixed
12+
1013
- Corrected a typo in the documentation for `CertificatePolicy.KeySize`, changing the RSA key length from "4092" to "4096".
1114
- Removed an extra `/` when building the request Uri for `CertificateClient.ImportCertificate` and `CertificateClient.ImportCertificateAsync`.
1215

1316
### Other Changes
1417

18+
- The default service version is now "7.6-preview.2".
19+
1520
## 4.7.0 (2024-10-14)
1621

1722
### Features Added

sdk/keyvault/Azure.Security.KeyVault.Certificates/api/Azure.Security.KeyVault.Certificates.net8.0.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ public CertificateClient(System.Uri vaultUri, Azure.Core.TokenCredential credent
5858
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy>> RestoreCertificateBackupAsync(byte[] backup, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
5959
public virtual Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>> SetContacts(System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Certificates.CertificateContact> contacts, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
6060
public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>>> SetContactsAsync(System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Certificates.CertificateContact> contacts, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
61-
public virtual Azure.Security.KeyVault.Certificates.CertificateOperation StartCreateCertificate(string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, bool? enabled = default(bool?), System.Collections.Generic.IDictionary<string, string> tags = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
62-
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Certificates.CertificateOperation> StartCreateCertificateAsync(string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, bool? enabled = default(bool?), System.Collections.Generic.IDictionary<string, string> tags = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
61+
public virtual Azure.Security.KeyVault.Certificates.CertificateOperation StartCreateCertificate(string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, bool? enabled = default(bool?), System.Collections.Generic.IDictionary<string, string> tags = null, bool? preserveCertificateOrder = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
62+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
63+
public virtual Azure.Security.KeyVault.Certificates.CertificateOperation StartCreateCertificate(string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, bool? enabled, System.Collections.Generic.IDictionary<string, string> tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
64+
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Certificates.CertificateOperation> StartCreateCertificateAsync(string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, bool? enabled = default(bool?), System.Collections.Generic.IDictionary<string, string> tags = null, bool? preserveCertificateOrder = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
65+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
66+
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Certificates.CertificateOperation> StartCreateCertificateAsync(string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, bool? enabled, System.Collections.Generic.IDictionary<string, string> tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
6367
public virtual Azure.Security.KeyVault.Certificates.DeleteCertificateOperation StartDeleteCertificate(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
6468
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Certificates.DeleteCertificateOperation> StartDeleteCertificateAsync(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
6569
public virtual Azure.Security.KeyVault.Certificates.RecoverDeletedCertificateOperation StartRecoverDeletedCertificate(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
@@ -73,7 +77,7 @@ public CertificateClient(System.Uri vaultUri, Azure.Core.TokenCredential credent
7377
}
7478
public partial class CertificateClientOptions : Azure.Core.ClientOptions
7579
{
76-
public CertificateClientOptions(Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion version = Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion.V7_5) { }
80+
public CertificateClientOptions(Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion version = Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion.V7_6_Preview_2) { }
7781
public bool DisableChallengeResourceVerification { get { throw null; } set { } }
7882
public Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion Version { get { throw null; } }
7983
public enum ServiceVersion
@@ -84,6 +88,7 @@ public enum ServiceVersion
8488
V7_3 = 3,
8589
V7_4 = 4,
8690
V7_5 = 5,
91+
V7_6_Preview_2 = 6,
8792
}
8893
}
8994
public partial class CertificateContact
@@ -242,6 +247,7 @@ internal CertificateOperationProperties() { }
242247
public System.Uri Id { get { throw null; } }
243248
public string IssuerName { get { throw null; } }
244249
public string Name { get { throw null; } }
250+
public bool? PreserveCertificateOrder { get { throw null; } }
245251
public string RequestId { get { throw null; } }
246252
public string Status { get { throw null; } }
247253
public string StatusDetails { get { throw null; } }
@@ -347,6 +353,7 @@ public ImportCertificateOptions(string name, byte[] certificate) { }
347353
public string Name { get { throw null; } }
348354
public string Password { get { throw null; } set { } }
349355
public Azure.Security.KeyVault.Certificates.CertificatePolicy Policy { get { throw null; } set { } }
356+
public bool? PreserveCertificateOrder { get { throw null; } set { } }
350357
public System.Collections.Generic.IDictionary<string, string> Tags { get { throw null; } }
351358
}
352359
public partial class IssuerProperties
@@ -389,6 +396,7 @@ public partial class KeyVaultCertificateWithPolicy : Azure.Security.KeyVault.Cer
389396
{
390397
internal KeyVaultCertificateWithPolicy() { }
391398
public Azure.Security.KeyVault.Certificates.CertificatePolicy Policy { get { throw null; } }
399+
public bool? PreserveCertificateOrder { get { throw null; } }
392400
}
393401
public partial class LifetimeAction
394402
{

sdk/keyvault/Azure.Security.KeyVault.Certificates/api/Azure.Security.KeyVault.Certificates.netstandard2.0.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ public CertificateClient(System.Uri vaultUri, Azure.Core.TokenCredential credent
5858
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy>> RestoreCertificateBackupAsync(byte[] backup, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
5959
public virtual Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>> SetContacts(System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Certificates.CertificateContact> contacts, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
6060
public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>>> SetContactsAsync(System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Certificates.CertificateContact> contacts, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
61-
public virtual Azure.Security.KeyVault.Certificates.CertificateOperation StartCreateCertificate(string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, bool? enabled = default(bool?), System.Collections.Generic.IDictionary<string, string> tags = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
62-
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Certificates.CertificateOperation> StartCreateCertificateAsync(string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, bool? enabled = default(bool?), System.Collections.Generic.IDictionary<string, string> tags = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
61+
public virtual Azure.Security.KeyVault.Certificates.CertificateOperation StartCreateCertificate(string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, bool? enabled = default(bool?), System.Collections.Generic.IDictionary<string, string> tags = null, bool? preserveCertificateOrder = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
62+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
63+
public virtual Azure.Security.KeyVault.Certificates.CertificateOperation StartCreateCertificate(string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, bool? enabled, System.Collections.Generic.IDictionary<string, string> tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
64+
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Certificates.CertificateOperation> StartCreateCertificateAsync(string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, bool? enabled = default(bool?), System.Collections.Generic.IDictionary<string, string> tags = null, bool? preserveCertificateOrder = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
65+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
66+
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Certificates.CertificateOperation> StartCreateCertificateAsync(string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, bool? enabled, System.Collections.Generic.IDictionary<string, string> tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
6367
public virtual Azure.Security.KeyVault.Certificates.DeleteCertificateOperation StartDeleteCertificate(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
6468
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Certificates.DeleteCertificateOperation> StartDeleteCertificateAsync(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
6569
public virtual Azure.Security.KeyVault.Certificates.RecoverDeletedCertificateOperation StartRecoverDeletedCertificate(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
@@ -73,7 +77,7 @@ public CertificateClient(System.Uri vaultUri, Azure.Core.TokenCredential credent
7377
}
7478
public partial class CertificateClientOptions : Azure.Core.ClientOptions
7579
{
76-
public CertificateClientOptions(Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion version = Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion.V7_5) { }
80+
public CertificateClientOptions(Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion version = Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion.V7_6_Preview_2) { }
7781
public bool DisableChallengeResourceVerification { get { throw null; } set { } }
7882
public Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion Version { get { throw null; } }
7983
public enum ServiceVersion
@@ -84,6 +88,7 @@ public enum ServiceVersion
8488
V7_3 = 3,
8589
V7_4 = 4,
8690
V7_5 = 5,
91+
V7_6_Preview_2 = 6,
8792
}
8893
}
8994
public partial class CertificateContact
@@ -242,6 +247,7 @@ internal CertificateOperationProperties() { }
242247
public System.Uri Id { get { throw null; } }
243248
public string IssuerName { get { throw null; } }
244249
public string Name { get { throw null; } }
250+
public bool? PreserveCertificateOrder { get { throw null; } }
245251
public string RequestId { get { throw null; } }
246252
public string Status { get { throw null; } }
247253
public string StatusDetails { get { throw null; } }
@@ -347,6 +353,7 @@ public ImportCertificateOptions(string name, byte[] certificate) { }
347353
public string Name { get { throw null; } }
348354
public string Password { get { throw null; } set { } }
349355
public Azure.Security.KeyVault.Certificates.CertificatePolicy Policy { get { throw null; } set { } }
356+
public bool? PreserveCertificateOrder { get { throw null; } set { } }
350357
public System.Collections.Generic.IDictionary<string, string> Tags { get { throw null; } }
351358
}
352359
public partial class IssuerProperties
@@ -389,6 +396,7 @@ public partial class KeyVaultCertificateWithPolicy : Azure.Security.KeyVault.Cer
389396
{
390397
internal KeyVaultCertificateWithPolicy() { }
391398
public Azure.Security.KeyVault.Certificates.CertificatePolicy Policy { get { throw null; } }
399+
public bool? PreserveCertificateOrder { get { throw null; } }
392400
}
393401
public partial class LifetimeAction
394402
{

sdk/keyvault/Azure.Security.KeyVault.Certificates/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/keyvault/Azure.Security.KeyVault.Certificates",
5-
"Tag": "net/keyvault/Azure.Security.KeyVault.Certificates_972b74ca11"
5+
"Tag": "net/keyvault/Azure.Security.KeyVault.Certificates_99d69ef506"
66
}

0 commit comments

Comments
 (0)