Gopass: Did gopass recently start reordering lines within secrets?

Created on 3 Oct 2020  路  3Comments  路  Source: gopasspw/gopass

Summary

Next to login details, I like to take notes in my secret for some additional or convenience stuff. One example is that for docker auth credentials, I save the token also:

password
login: user

# Somoe note

# JSON:
{
  "auths": {
    "x": {
      "auth": "x"
    }
  }
}

But saving it, it reorders the secrets completely:

password
"auth": "x"
"auths": {
"x": {
login: user

# Somoe note

# JSON:
{
    }
  }
}

I guess it collects entries with a colon at the top. Can I prevent this from happening somehow?

Steps To Reproduce

Try storing

password
login: user

# Somoe note

# JSON:
{
  "auths": {
    "x": {
      "auth": "x"
    }
  }
}

Expected behavior

Having the order of infos I put into the store intact.

Environment

gopass 1.10.0
gentoo linux

bug

Most helpful comment

Yes, this is a known issue. I did not anticipate the impact of this change.
The change itself was intentional, the impact was not.
We're currently considering how to fix this or roll it back without causing more confusion.

All 3 comments

Yes, this is a known issue. I did not anticipate the impact of this change.
The change itself was intentional, the impact was not.
We're currently considering how to fix this or roll it back without causing more confusion.

Hi @dragetd I found that for v1.10.1 it will remove the comments after gopass edit

Closing in favour of #1600 since this is already tracked there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sudoforge picture sudoforge  路  4Comments

doronbehar picture doronbehar  路  4Comments

worldofpeace picture worldofpeace  路  4Comments

blaggacao picture blaggacao  路  5Comments

FlorinAndrei picture FlorinAndrei  路  7Comments