question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure.KeyVault SDK models lacks serialization methods

See original GitHub issue
  • azure_keyvault_keys:
  • 4.3.1:
  • Linux:
  • 3.8.5:

Describe the bug Latest version of Azure.Keyvault SDKs don’t have serialization in the models.

Models in this file don’t inherit msrest, so there is no easy serialization available. https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_models.py

Same goes to Secrets and Certificates.

To Reproduce Steps to reproduce the behavior: 1.

Expected behavior Azure Python SDK has consistent experience and all models have serialization available.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
logachevcommented, Mar 8, 2021

@annatisch I’ll need a few days to try this approach, but it looks promising… 😃

Also, I think part of my feedback is lack of consistency… I know Track 2 was supposed to bring unified approach to the SDKs and for some things I feel like it is amazing… However, end users don’t really follow what models are handcrafted and what models are autogenerated… It would be great if there was some baseline that is consistent across mgmt and data plane SDKs!

1reaction
logachevcommented, Mar 5, 2021

Yeah, this is an update scenario from prior azure-keyvault package… https://github.com/cloud-custodian/cloud-custodian

Primarily we need it to transform resource to the dict for further usage. The tool itself doesn’t know details about KeyVault objects, but it requires common representation for all Azure resource objects and dict suits this for out use case.

Another scenario is just saving Azure object info into a file. At the moment, json.dumps() can’t handle KeyVault objects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get-AzKeyVaultSecret : Method 'get_SerializationSettings ...
I have a script which connects to Azure cloud using 'Connect-AzAccount' and then tries to get secrets stored in a KeyVault using 'Get-AzKeyVaultSecret'....
Read more >
How to serialize and deserialize a PFX certificate in Azure ...
Here's a PowerShell script for you. Replace the file path, password, vault name, secret name. $pfxFilePath = 'C:\mycert.pfx' $pwd = '123' ...
Read more >
Azure Key Vault secret client library for .NET - Version 4.4.0
This library offers operations to create, retrieve, update, delete, purge, backup, restore, and list the secrets and its versions. Source code | ...
Read more >
Azure Key Vault REST API Error Codes
The "Authorization" header is the access token that is required with every call to the Key Vault for data-plane operations. If the header...
Read more >
Provide access to Key Vault keys, certificates, and secrets ...
Best Practices for individual keys, secrets, and certificates role ... The new Azure RBAC permission model for key vault provides ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found