Skip to content

Backstage fails to parse the gitea password: Unexpected flow-seq-end token in YAML stream: "]" #283

@cmoulliard

Description

@cmoulliard

Issue

Backstage fails to parse the gitea password containing some special chars and raises such an error within the backend log Unexpected flow-seq-end token in YAML stream: "]"

YAMLParseError: Unexpected flow-seq-end token in YAML stream: "]" at line 82, column 31:
       password: *e=sUnx)4Eu-2]k$j~cX-]l$,8EZ"4m7tC!?+C9q

Remark: The export of the secrets using json output could be an issue too as special chars are converted into unicode chars

./idpbuilder get secrets -o json
[
  {
    "name": "gitea-credential",
    "namespace": "gitea",
    "data": {
      "password": "-f!F[-g\u0026V\u0026|\u003e\\7e5[%E7\u003e\\x\u0026(K~,Zjwa3Z8*JHQ~",
      "username": "giteaAdmin"
    }
  },
...
---------------------------
Name: gitea-credential
Namespace: gitea
Data:
  password : -f!F[-g&V&|>\7e5[%E7>\x&(K~,Zjwa3Z8*JHQ~
  username : giteaAdmin

Originally posted by @cmoulliard in #276 (comment)

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