Skip to content

Error saved in secrets.yml.enc blocking decryption #30851

@leopirolo

Description

@leopirolo

Steps to reproduce

Saving an error of syntax in rails secrets:edit leads to block the file forever.

Example:

login: *login # Here is the syntax error
  username: 'me@myself.andi'
  password: '1234'

development:
  <<: *login

Expected behavior

While running rails secrets:edit again, open the file without error

Actual behavior

/Users/leo/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/psych.rb:377:in 'parse': (<unknown>): did not find expected key while parsing a block mapping at line 2 column 1 (Psych::SyntaxError)

System configuration

Rails version:
5.1.2
Ruby version:
2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]

(Not sure if the issue is already reported, if so, my bad, I must have missed it)

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