Skip to content

Preserve YAML types in secret-values.yaml #80

@distorhead

Description

@distorhead

Before proceeding

  • I didn't find a similar issue

Problem

The original type of the value in the secret-values.yaml is not preserved after encrypting (or editing) the file. For example yaml specification allow to define several scalar types: boolean, integer, float, string, null, timestamp or binary.

Current secrets implementation in the werf forces original value to be either converted to string or null.

Solution (if you have one)

Save original yaml scalar type to the encoded value string in encryption procedure. Restore original yaml scalar type in decryption procedure.

For example SOPS editor keeps original value type.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions