Skip to content

Commit

Permalink
[KeyVault] Add hsmplatform readonly property (#23990)
Browse files Browse the repository at this point in the history
* add hsmplatform readonly property

* Update ChangeLog.md

* Update CosmosDB.csproj

* Update ChangeLog.md

---------

Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>
  • Loading branch information
NoriZC and msJinLei authored Feb 18, 2024
1 parent bea8ec5 commit b6f85ca
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/CosmosDB/CosmosDB/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->

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

## Version 1.14.0
Expand Down
2 changes: 1 addition & 1 deletion src/CosmosDB/CosmosDB/CosmosDB.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" />
<ItemGroup>
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="4.3.0" />
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="4.6.0-beta.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CosmosDB.Sdk\CosmosDB.Sdk.csproj" />
Expand Down
1 change: 1 addition & 0 deletions src/KeyVault/KeyVault/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Supported `HsmPlatform` in `KeyAttributes`.

## Version 5.2.0
* Supported authentication via User Managed Identity by adding parameter `UseUserManagedIdentity` and making `SasToken` optional.
Expand Down
2 changes: 1 addition & 1 deletion src/KeyVault/KeyVault/KeyVault.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<ItemGroup>
<PackageReference Include="Azure.Security.KeyVault.Administration" Version="4.4.0-beta.1" />
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="4.3.0" />
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="4.6.0-beta.1" />
<PackageReference Include="Azure.Security.KeyVault.Certificates" Version="4.3.0" />
<PackageReference Include="Portable.BouncyCastle" Version="1.8.8" />
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.1" />
Expand Down
6 changes: 6 additions & 0 deletions src/KeyVault/KeyVault/Models/Key/PSKeyVaultKeyAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ internal PSKeyVaultKeyAttributes(Track2Sdk.KeyVaultKey key)
ReleasePolicy = key.Properties.ReleasePolicy?.ToPSKeyReleasePolicy();
RecoverableDays = key.Properties.RecoverableDays;
Managed = key.Properties.Managed;
HsmPlatform = key.Properties.HsmPlatform;
}

internal PSKeyVaultKeyAttributes(bool? enabled, DateTime? expires, DateTime? notBefore, string keyType, string[] keyOps, Hashtable tags) {
Expand Down Expand Up @@ -111,6 +112,11 @@ internal PSKeyVaultKeyAttributes(bool? enabled, DateTime? expires, DateTime? not
// Gets a value indicating whether the key's lifetime is managed by Key Vault. If
// this key is backing a Key Vault certificate, the value will be true.
public bool? Managed { get; internal set; }

/// <summary>
/// Gets the underlying HSM platform.
/// </summary>
public string HsmPlatform { get; internal set; }

public bool? Exportable { get; internal set; }

Expand Down

0 comments on commit b6f85ca

Please sign in to comment.