Skip to content

Commit b6f85ca

Browse files
NoriZCmsJinLei
andauthored
[KeyVault] Add hsmplatform readonly property (#23990)
* add hsmplatform readonly property * Update ChangeLog.md * Update CosmosDB.csproj * Update ChangeLog.md --------- Co-authored-by: Jin Lei <[email protected]>
1 parent bea8ec5 commit b6f85ca

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

src/CosmosDB/CosmosDB/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Upgraded SDK `Azure.Security.KeyVault.Keys` TO 4.6.0-beta.1.
2223
* Added breaking change message for ListConnectionStrings changes
2324

2425
## Version 1.14.0

src/CosmosDB/CosmosDB/CosmosDB.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" />
88
<ItemGroup>
9-
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="4.3.0" />
9+
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="4.6.0-beta.1" />
1010
</ItemGroup>
1111
<ItemGroup>
1212
<ProjectReference Include="..\CosmosDB.Sdk\CosmosDB.Sdk.csproj" />

src/KeyVault/KeyVault/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Supported `HsmPlatform` in `KeyAttributes`.
2122

2223
## Version 5.2.0
2324
* Supported authentication via User Managed Identity by adding parameter `UseUserManagedIdentity` and making `SasToken` optional.

src/KeyVault/KeyVault/KeyVault.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<ItemGroup>
1515
<PackageReference Include="Azure.Security.KeyVault.Administration" Version="4.4.0-beta.1" />
16-
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="4.3.0" />
16+
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="4.6.0-beta.1" />
1717
<PackageReference Include="Azure.Security.KeyVault.Certificates" Version="4.3.0" />
1818
<PackageReference Include="Portable.BouncyCastle" Version="1.8.8" />
1919
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.1" />

src/KeyVault/KeyVault/Models/Key/PSKeyVaultKeyAttributes.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ internal PSKeyVaultKeyAttributes(Track2Sdk.KeyVaultKey key)
6161
ReleasePolicy = key.Properties.ReleasePolicy?.ToPSKeyReleasePolicy();
6262
RecoverableDays = key.Properties.RecoverableDays;
6363
Managed = key.Properties.Managed;
64+
HsmPlatform = key.Properties.HsmPlatform;
6465
}
6566

6667
internal PSKeyVaultKeyAttributes(bool? enabled, DateTime? expires, DateTime? notBefore, string keyType, string[] keyOps, Hashtable tags) {
@@ -111,6 +112,11 @@ internal PSKeyVaultKeyAttributes(bool? enabled, DateTime? expires, DateTime? not
111112
// Gets a value indicating whether the key's lifetime is managed by Key Vault. If
112113
// this key is backing a Key Vault certificate, the value will be true.
113114
public bool? Managed { get; internal set; }
115+
116+
/// <summary>
117+
/// Gets the underlying HSM platform.
118+
/// </summary>
119+
public string HsmPlatform { get; internal set; }
114120

115121
public bool? Exportable { get; internal set; }
116122

0 commit comments

Comments
 (0)