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

Add command to decrypt secrets file to stdout for git diff #475

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

elikoga
Copy link
Member

@elikoga elikoga commented Oct 15, 2024

Solves #2, which is possible since we changed the file endings of the batou secrets.

Running

git config diff.batou.textconv "./batou secrets decrypttostdout"
echo "*.gpg diff=batou" >> .gitattributes
echo "*.age diff=batou" >> .gitattributes
echo "*.age-diffable diff=batou" >> .gitattributes

within a batou deployment project gives the desired result.

@elikoga elikoga requested a review from zagy as a code owner October 15, 2024 02:55
@zagy zagy merged commit 6964b1c into main Oct 15, 2024
15 checks passed
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.

2 participants