Commit Graph

121 Commits (master)

Author SHA1 Message Date
Josh Rabinowitz ac0f720a39
fix for #918, use OSX stat, not brew's gnu version(#920) 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 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 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
Josh Rabinowitz ba1dc04f3d
show and fix 'style' complaints from shellcheck (#779) 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
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
Josh Rabinowitz 85084b8aa0 fix for hide -P 3 years ago
sobolevn 28dbdf3fde Adds fedora testing 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
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 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 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
Josh Rabinowitz 701497df9d
Fix hangs when interrupting tests on OSX (#522)
* close fd 3 on gnupg subprocesses, for bats-core
* update changelog
5 years ago
Josh Rabinowitz a3d21d2e15
Revert "don't use revoked gpg uid" (#514)
* Revert "don't use revoked gpg uid (#492)"

This reverts commit ae38e0242d.

* revert changelog
5 years ago
bricewge ae38e0242d don't use revoked gpg uid (#492)
Checks gnupg validity value doesn't show key as revoked.
5 years ago
Josh Rabinowitz 49fa952e68
Always use OSX's mktemp on OSX. (#486) 5 years ago
Josh Rabinowitz baf6c4113b
Add SECRETS_PINENTRY env var and docs (#490)
* Add SECRETS_PINENTRY env var 

* add docs and tests for SECRETS_PINENTRY

* improve diagnostic output

* fix regex example for bats-core diagnostics
5 years ago
Josh Rabinowitz f2c398f037
fix for busybox mktemp (#480)
* fix for busybox mktemp, issue #475
5 years ago
Josh Rabinowitz 10fa2a7be2
Tempfile and temp directory cleanups (#473)
* Tempfile and temp directory cleanups
    Add comments about mktemp on different platforms
    Be more careful about tempfile cleanups
    Don't use find to locate files to cleanup
    Use shorter SECRETS_EXTENSION and SECRETS_DIR env settings in tests
    Set TMPDIR in tests again
    Show DESTDIR used when testing git-secret install
    Change filename passed to mktemp -t in tests
5 years ago
Josh Rabinowitz c20e61313b
Issue 454 freebsd (#474)
* freebsd test fix
5 years ago
Simon Massey 57903b9e75
replace grep+cut+sed pipe with awk regex (#462) 5 years ago
Simon Massey 2164e822d2
remove dead code for keys/mapping.cfg (#464) 5 years ago
Simon Massey 0e4e432727 break loop when email found in keyrig 5 years ago
Josh Rabinowitz bbb4d9d3e5
Tmp cleanups (#457)
* Only show 'cleaning up temp file' messages if one
  of SECRETS_VERBOSE or SECRETS_TEST_VERBOSE is set.
* Adjust tests to reflect the change.
* Add note about suppressing 'cleaning up' msgs to CHANGELOG.md and reorder entries
* add comments showing examples of tmpfiles returned
5 years ago
Josh Rabinowitz cb1636a6dc
experimental SECRETS_TEST_VERBOSE shows debug info during tests (#446)
* add a travis target using SECRETS_TEST_VERBOSE=1
* Document SECRETS_TEST_VERBOSE as experimental
* note experimental feature may change or be removed
5 years ago
Josh Rabinowitz f6d4de1adf
Use git check-ignore (#440)
* improve how we check for ignored files using 'git check-ignore'
* mention use of git check-ignore in changelog
* don't mkdir/rmdir when testing for ignored files
5 years ago
Josh Rabinowitz 07af0c19b6
Varnames output and typos (#441)
* rename variable, fix typo, improve comments and output
* fix directory removal after testing
* mention improved user messaging in CHANGELOG.md
5 years ago
Josh Rabinowitz ce8c6b3ae0
Change 'add' to add to .gitignore by default. (#429)
* Change 'add' to add to .gitignore by default.
Also add _message() function and improve output from 'git-secret-add',
alter tests for new code behavior, and update docs.
* change tests since 'add' always adds to .gitignore
* improve output: prepend more message with 'git-secret:'.
* update man page for git-secret-add
5 years ago
Josh Rabinowitz 71f3d3a4ac
Make sure we name temp files 'git-secret-*' (#428)
* pass mktemp a template on linux
* name tempfiles git_secret, not gitsecrets
5 years ago
Josh Rabinowitz f68a56ecd8
Add to changelog, rename function, add comment. (#408) 5 years ago
Jonas Karlsson 54f74ede6a Fix for windows (#375)
* add test for travis-ci windows support
* Make 'ps' command options platform specific *nix/windows
* Add _clean_path for windows,  apply to all homedir input arguments
* export GITSECRET_DIST="windows" in git hook if running windows
* Bash lint fixes
5 years ago