azure-keyvault-keys_4.5.0
4.5.0 (2022-03-28)
Features Added
- Key Vault API version 7.3 is now the default
- Added support for multi-tenant authentication when using
azure-identity
1.8.0 or newer (#20698) - (From 4.5.0b1)
KeyClienthas aget_random_bytesmethod for getting a requested number of
random bytes from a managed HSM - (From 4.5.0b2) Added support for secure key release from a Managed HSM
(#19588)- Added
release_keymethod toKeyClientfor releasing the private component of a key - Added
exportableandrelease_policykeyword-only arguments to key creation and import
methods - Added
KeyExportEncryptionAlgorithmenum for specifying an encryption algorithm to be used
in key release
- Added
- (From 4.5.0b4) Added
KeyClient.get_cryptography_client, which provides a simple way to
create aCryptographyClientfor a key, given its name and optionally a version
(#20621) - (From 4.5.0b4) Added support for automated and on-demand key rotation in Azure Key Vault
(#19840)- Added
KeyClient.rotate_keyto rotate a key on-demand - Added
KeyClient.update_key_rotation_policyto update a key's automated rotation policy
- Added
- (From 4.5.0b6) Added
immutablekeyword-only argument and property toKeyReleasePolicyto
support immutable release policies. Once a release policy is marked as immutable, it can no
longer be modified.
Breaking Changes
These changes do not impact the API of stable versions such as 4.4.0.
Only code written against a beta version such as 4.5.0b1 may be affected.
KeyClient.update_key_rotation_policyaccepts a requiredpolicyargument
(#22981)- The optional
versionparameter inKeyClient.release_keyis now a keyword-only argument
(#22981) - Renamed the
nameparameter inKeyClient.get_key_rotation_policyand
KeyClient.update_key_rotation_policytokey_name
(#22981) - Enum values in
azure-keyvault-keysare now uniformly lower-cased
(#22981)
Bugs Fixed
KeyTypenow ignores casing during declaration, which resolves a scenario where Key Vault
keys created with non-standard casing could not be fetched with the SDK
(#22797)
Other Changes
- (From 4.5.0b6) Python 2.7 is no longer supported. Please use Python version 3.6 or later.
- (From 4.5.0b6) Updated minimum
azure-coreversion to 1.20.0 - (From 4.5.0b3) Updated type hints to fix mypy errors
(#19158) - (From 4.5.0b4)
CryptographyClientno longer requires a key version when providing a key ID to its constructor
(though providing a version is still recommended) - (From 4.5.0b5) To support multi-tenant authentication,
get_tokencalls during challenge
authentication requests now pass in atenant_idkeyword argument
(#20698). See
https://aka.ms/azsdk/python/identity/tokencredential for more details on how to integrate
this parameter ifget_tokenis implemented by a custom credential. - (From 4.5.0b6) Updated type hints for
KeyPropertiesmodel'smanaged,exportable, and
release_policyproperties (#22368)