Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git secret 0.2.1 reveal fails on a git secret hide 0.2.3 #182

Closed
rjcoelho opened this issue May 23, 2018 · 6 comments
Closed

Git secret 0.2.1 reveal fails on a git secret hide 0.2.3 #182

rjcoelho opened this issue May 23, 2018 · 6 comments

Comments

@rjcoelho
Copy link

If I add a new git secret file on 0.2.3, the git secret reveal fails because of the mapping, which apparently now includes

Did we change the format on 0.2.3 ? 638b67e#diff-b02a252754749c1e9180b731b39e9e3b

Can you confirm this ? and if do we have some breaking change notes ?

@sobolevn
Copy link
Owner

Yes, we did change it.
I broke the semver here. It should be a 0.3.0 release instead.

@rjcoelho
Copy link
Author

rjcoelho commented May 23, 2018

Ok, I added a formula for it on /~https://github.com/rjcoelho/homebrew-boneyard for 0.2.1

@sobolevn
Copy link
Owner

You can install it from here: /~https://github.com/sobolevn/git-secret/releases

Or you can fix your existing installation:

  1. Backup your .gitsecret/paths/mapping.cfg
  2. Empty the original file
  3. Add all files to gitsecret once again

It should be fine afterwards. We have updated how path mappings work by adding hash.
This hash is used to determine which files we actually updated. And gitsecret now will only re-encrypt only files that had changed.

I am closing this issue as a bug, that we won't fix. Sorry!

Feel free to ask any question that you might have.

@rjcoelho
Copy link
Author

Your solution doesnt work for me .. i need to git secret reveal on 0.2.1 hidden from the latest

@sobolevn
Copy link
Owner

sobolevn commented May 24, 2018

i need to git secret reveal on 0.2.1 hidden from the latest

Update would be the easiest solution.

@rjcoelho
Copy link
Author

Or honor old mapping file format if one already exists

I cannot ungrade .. it’s a Jenkins build host used to build other projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants