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

Added ignore MAC option #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ownercoder
Copy link

@ownercoder ownercoder commented Jul 21, 2023

Content may be changed, without regenerating MAC. SOPS have option --ignore-mac before opening, it's allow correctly open changed config/secret

@ownercoder ownercoder force-pushed the added-ignore-mac-option branch from 4ad5e28 to ddc4ca2 Compare July 21, 2023 09:55
@ownercoder ownercoder force-pushed the added-ignore-mac-option branch from ddc4ca2 to 47258a1 Compare July 21, 2023 09:56
@td-macompta
Copy link

I Hope it will be merged.

@2fst4u
Copy link

2fst4u commented Jun 29, 2024

I've just started getting a MAC mismatch error and now I can't decrypt my files in vscode. Is this what's needed for it to work?

@td-macompta
Copy link

I've just started getting a MAC mismatch error and now I can't decrypt my files in vscode. Is this what's needed for it to work?

Now with the latest version of SOPS (3.9.0), you can use the "mac only encrypted" option during encryption. With this option, it becomes possible to modify the unencrypted values without encountering "mac" verification issues.

You can specify the option in your .sops file (mac_only_encrypted: true) or as a flag (--mac-only-encrypted) during encryption.

To resolve your current situation, however, you need to decrypt with the command line using the --ignore-mac option and then re-encrypt.

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

Successfully merging this pull request may close these issues.

3 participants