Commit Graph

235 Commits (master)

Author SHA1 Message Date
Josh Rabinowitz ac0f720a39
fix for #918, use OSX stat, not brew's gnu version(#920) 2 years ago
Ochan Kwon b0378617e2
bug fix for 'reveal' in a subdir (#903) (#905) 2 years ago
Josh Rabinowitz 6ff4d00bcd
fix links to bats docs about descriptor 3 (#892) 2 years ago
Josh Rabinowitz 77c0b27006
have hide -v show output from gnupg (#888)
* also document bug #834 and improve comments
2 years ago
Josh Rabinowitz 8345e526cd
Issue 874 locate git repo (#886)
* first step in improving error message for #874
* possible doc fix for #851
* improve comment
* update changelog
2 years ago
Josh Rabinowitz c7751afad8
temp removal alpine releases for #881; build fixes (#884)
* temp removal alpine releases for #881; build fixes
* update CHANGELOG for next release
* update archlinux base image
2 years ago
sobolevn 666691de88
Version 0.5.0 release 2 years ago
joshr 5d659a1602 bump dev version to 0.5.0-alpha2 2 years ago
Josh Rabinowitz 73288eb3f0
don't try to decrypt non-existent files, update man pages 2 years ago
Josh Rabinowitz 5175651816
add MSYS support 2 years ago
Josh Rabinowitz 549cd9aa24
Issue 706 decrypt errors (#831)
* check for encrypted version of file before decrypting, for #706
* improve error messages, verbose output and non-verbose output
* in tests, prefix output from git init with 'git: '
* 'clean' options only remove added files, for #833
* update changelog
2 years ago
Josh Rabinowitz 084a5256e1
for #811: allow some perm warnings in non-verbose mode (#825) 2 years ago
Josh Rabinowitz 120edded4f
Cleanups 2022 04 (#824)
* change file desc we use to pass gnupg info
* improve content and phrasing in docs
* improve docs about locations of private/public keys
* update changelog
2 years ago
Nikita Sobolev a97dd7ffa8
`SECRETS_TEST_VERBOSE` can be `0` (#816)
* `SECRETS_TEST_VERBOSE` can be `0`

* Update _git_secret_tools.sh
2 years ago
Josh Rabinowitz db03c638d5
in verbose mode, show some gnupg perm warnings (#812)
* set git-secret keys dir to 700 perms, for #811
* update changelog
* test improvements
* clean up comments
* remove unused code
* update git-secret-init man page
* document change to git-secret-init
2 years ago
Josh Rabinowitz eefa10623a
changes to .gitignore usage and testing in response to #789 (#791)
* test .gitignore has expected line count, for #792
* let 'add' append filenames to .gitignore in tests
* add comments related to #789
* fix test to allow for more output from 'add'
* improve error message output
* allow for extra output from 'add' in test
* tweaks as per shellcheck lint
* improve comments, cleanup code
* update changelog
* describe test better
2 years ago
Josh Rabinowitz 92d47c218d
use file descriptor to pass passphrase to gnupg, for #781 2 years ago
Josh Rabinowitz 50734fd364
cleanups and renames (#784)
* rename _append_* functions to _prepend_*
* improve code flow
* be more standard with shellcheck disables
2 years ago
Bryan Howard 898d9ae53c
call usage() with expected parameter list (#782) 2 years ago
Josh Rabinowitz ba1dc04f3d
show and fix 'style' complaints from shellcheck (#779) 2 years ago
Josh Rabinowitz ef5a1e5235
revert unexplained changes from previous merge (#780) 2 years ago
Bryan Howard 66541e8937
remove trailing whitespace
* don't use _incorrect_usage() function as much
2 years ago
Josh Rabinowitz b6711e2ac5
re-creation of #638 fix, removing dup email keys (#700)
* re-creation of #638 fix, removing dup email keys
* Update CHANGELOG.md
2 years ago
Josh Rabinowitz 84d1f85c56
fix for #710, using cat from a subdir (#751)
* fix for #710, using cat from a subdir
* also fix using reveal with named files from a subdir
2 years ago
Josh Rabinowitz 23acae1265
Issue 630 hide armored2 (#661)
* use gpg --armor when hiding/encrypting files

* update changelog

* Adds SECRETS_GPG_ARMOR env variable

* Fixes lint

* One more test

* Addresses review

Co-authored-by: sobolevn <mail@sobolevn.me>
3 years ago
Josh Rabinowitz bcf1e4fa6b
bump version to 0.4.1-alpha1 (#689) 3 years ago
Pedro Sobota ac3b77a5bc
Newline not added to .gitignore entry on add (#645)
* Fix Newline not added to .gitignore entry on add (#643)
* Updates to CHANGELOG.md
* Add tests
3 years ago
Jeppe Fihl-Pearson fae00fac3d
Rename `killperson` to `removeperson` (#685)
* Rename the "killperson" command to "removeperson"

"killperson" is unnecessarily hostile so change the command name to
"removeperson".

Fixes #684.

* Re-generate man pages

* Update contribution guide

There's no longer any pre-commit hooks so don't mention them.

* Add alias from `killperson` pointing at `removeperson`

* Update git_secret_removeperson.sh

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
3 years ago
Josh Rabinowitz 85084b8aa0 fix for hide -P 3 years ago
Nikita Sobolev 37a28389d2
Adds new installation instructions for deb and rpm (#662)
* Adds new installation instructions for deb and rpm

* Fixes CI
3 years ago
sobolevn 28dbdf3fde Adds fedora testing 3 years ago
sobolevn 8f7b9c51de [WIP] New CI 3 years ago
Josh Rabinowitz ee592b8ede
Issue 634 tell duplicate emails (#637)
* support asserting named keyring is missing email(s)
* improve error if git-secret keyring missing email
* new test for telling same email twice
* update tell manpage regarding duplicate emails
* regenerate man pages
* update changelog
3 years ago
Sasha Friedenberg 39ab72f866
add bash string escaping to _add_ignored_file (#626) 4 years ago
Josh Rabinowitz 5bcaf40c4c update version to 0.3.3 4 years ago
Bertjan Broeksema fc51d6f15f
More precise feedback about added files (#614)
* More precise feedback about added files

This adapts the output of the add command in order to report exactly
how many files have been added. Specially with wildcard patterns, this
makes it easier to verify that expected files are added.

With the verbose option, the add command will also tell which files
have been added.

By @bbroeksema bbroeksema
4 years ago
Elisei Roca 282c36d5eb
make "usage" message easier to read (#617) 4 years ago
Isen 17b5c424f9
Add cygwin support (#601) 4 years ago
Josh Rabinowitz a0a176fa5d
Issue 552 508 revoked keys (#553)
* warn about 'tell' on expired/revoked/invalid keys
* error if 'tell' used on email with multiple keys
* improve test of 'tell' with subdirs
4 years ago
Josh Rabinowitz 2830ce2ff7
Issue 579 reveal clobbers (#580)
* Don't let reveal clobber secret files, for #579
4 years ago
Josh Rabinowitz 9348cd32e2
Revert "Issue 554 show gpg commands (#556)" (#559)
This reverts commit 9e8438236c.
5 years ago
Josh Rabinowitz 9e8438236c
Issue 554 show gpg commands (#556)
* show most gpg commands used for 'hide', 'reveal', 'tell' and 'killperson (#554)
* fix hang when using ctrl-c during tests (#558)
5 years ago
Josh Rabinowitz c5b815c7db bump to v0.3.2 5 years ago
Josh Rabinowitz e4447e02a7 version bump to 0.3.1 5 years ago
Josh Rabinowitz df192b8fd7
version bump to 0.3.0 (#539) 5 years ago
Josh Rabinowitz 2a1600f2f6
cleanup output when we clean up tmp files (#532)
* cleanup output when we clean up tmp files
5 years ago
Josh Rabinowitz 525305d985
Issue 527 key with comment (#528)
* add key fixture with no email, and 2 word comment
* tests for key without email and with comment
* handle comments in public key uids
* fix tests, you have to use email address
* fix text
* confirm that email addresses contain an @ symbol
* improve comments about keys/fixtures
5 years ago
Josh Rabinowitz fe2232305d
don't cleanup tempfile unless it exists (#531) 5 years ago
Josh Rabinowitz 9ff559ca8c
Issue 478 tests in busybox (#523)
* use busybox by not installing coreutils on alpine
* changes for busybox version of ps and stat
* add function to check if exe is from busybox
* update changelog
* cleanup comments, code, and commented out code
* improve comment in alpine Dockerfile
* include platform-specific funcs so we can test perms
5 years ago
Josh Rabinowitz 95b5b320fc
Issue 516 verbose on errors (#518)
* add error info on errors listing keys
* move bash $TMPDIR initialization earlier
* show gpg output if hide encryption fails
* update changelog
* fix typos
* improve messaging when reveal and tell are done
* simplify logic, fix typo in error message
5 years ago