Skip to content

Commit 7e51c66

Browse files
authored
Added default access policies for Key Vault key as 'All but purge' (Azure#16820)
1 parent 5d9efcc commit 7e51c66

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

src/KeyVault/KeyVault.Test/KeyVault.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.1" />
1515
<PackageReference Include="Microsoft.Azure.KeyVault.WebKey" Version="3.0.1" />
16-
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="3.1.0-preview.2" />
16+
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="3.1.0" />
1717
<PackageReference Include="Microsoft.Azure.Management.Network" Version="21.0.0" />
1818
</ItemGroup>
1919

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+
* Added default access policies for Key Vault key as "All but purge"
2122
* Absorbed KeyOps from parameter when importing key from certificate on managed HSM [#16773]
2223
* Fixed a bug when updating key operations on managed HSM [#16774]
2324
* Fixed the issue when importing no-password certificate [#16742]

src/KeyVault/KeyVault/KeyVault.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<PackageReference Include="Portable.BouncyCastle" Version="1.8.8" />
1818
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.1" />
1919
<PackageReference Include="Microsoft.Azure.KeyVault.WebKey" Version="3.0.1" />
20-
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="3.1.0-preview.2" />
20+
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="3.1.0" />
2121
<PackageReference Include="System.Security.Cryptography.Cng" Version="4.5.0" />
2222
</ItemGroup>
2323

src/KeyVault/KeyVault/Models/KeyVaultManagementCmdletBase.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -357,17 +357,10 @@ protected bool IsValidObjectIdSyntax(string objectId)
357357
return DefaultProfile.DefaultContext.Environment.OnPremise || IsValidGUid(objectId);
358358
}
359359

360+
// All but purge
360361
protected readonly string[] DefaultPermissionsToKeys =
361362
{
362-
KeyPerms.Get,
363-
KeyPerms.Create,
364-
KeyPerms.Delete,
365-
KeyPerms.List,
366-
KeyPerms.Update,
367-
KeyPerms.Import,
368-
KeyPerms.Backup,
369-
KeyPerms.Restore,
370-
KeyPerms.Recover
363+
KeyPerms.All
371364
};
372365

373366
protected readonly string[] DefaultPermissionsToSecrets =

0 commit comments

Comments
 (0)