Azure-docs: Secrets as octet sequences

Created on 27 Jul 2018  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

Why does the "Working with secrets" section describe secrets as octet sequences? Secret values in the API are strings. The only client I've seen with direct support for anything else is the CLI, and it supports arbitrary data by using base64 or hex encoding.

The first paragraph also describes secrets as "limited size octet objects".


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author doc-enhancement key-vaulsvc triaged

All 5 comments

@nickwalkmsft Thanks for your feedback! We will investigate and update as appropriate.

@nickwalkmsft I believe it is mentioned as octet sequences as any type of data is accepted and stored securely without any semantics.

Thanks for getting back!

My feedback on this description is that it's not very helpful to someone using the API. Services that accept and return an unvalidated JSON string value don't typically describe the data as an octet sequence if the user is responsible for choosing a serialization format, implementing a way of specifying it, and performing the serialization/deserialization themselves if they want to store binary data.

Additionally, the primary use cases and virtually every example in the documentation uses secrets to store plaintext strings. This makes the description of secret values as octet sequences confusing.

@nickwalkmsft Thanks for you valuable inputs ! I have assigned this issue to content author to investigate and update the document as appropriate.

Hi @nickwalkmsft - thanks very much for this feedback, and apologies for the delay in getting back to you.

I would tend to agree with you, that the "octet" term doesn't add a lot of value, and as you said, might even be confusing to some folks. As such, I'm going to propose the following changes:

  • in the intro paragraph of About keys, secrets, and certificates, the 2nd "Secrets" bullet:

    • change the first sentence to Provides secure storage of secrets, such as passwords and database connection strings.
    • remove the 2nd sentence: Secrets are limited size octet objects with no specific semantics.
  • in the Working with secrets section

    • change the sentence: Secrets in Key Vault are octet sequences with a maximum size of 25k bytes each. , to: From a developer's perspective, Key Vault APIs accept and return secret values as strings. Internally, Key Vault stores and manages secrets as sequences of octets (8-bit bytes), with a maximum size of 25k bytes each.

These changes should be live later today. Thanks again for the feedback on this.

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

monteledwards picture monteledwards  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments