Skip to content

File contents with multiple hyphens break YAML parser #50

Open
@DavidWittman

Description

@DavidWittman

I include some RSA keys in a few of my services, and I have found that they break the YAML parser when trying to use them with Replicated Studio.

Here's an example:

        config_files:
          - filename: /keys/key.pem
            file_mode: '0400'
            contents: |
                -----BEGIN PUBLIC KEY-----
                keystuff
                -----END PUBLIC KEY-----

Causes the following error in the studio container:

Failure parsing YAML file replicated/current.yaml:
YAMLException: end of the stream or a document separator is expected at line 12, column 7:
          - source: dockerhub
          ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions