Commit Graph

473 Commits

Author SHA1 Message Date
Josh Rabinowitz
14eea46cc9 CHANGELOG.md updates in prep of 0.2.5 release (#278) 2018-12-16 20:49:19 +03:00
Josh Rabinowitz
9cccf162c6 WIP: test with expired key, add 'whoknows -l' (#287)
* test with expired key, add 'whoknows -l'

    * 'whoknows -l' shows key expiration dates
    * also added docs and tests for `whoknows -l`,
    * tests for expired keys,
    * epoch_to_date functions

* update man pages

* fix epoch-to-date conversion on OSX

* test output of 'whoknows -l'

* fix for lint/shellcheck

* fix for osx

* lint fix

* use date as found in $PATH

* disable 'set -e' as little as possible
2018-12-05 09:43:48 +03:00
Josh Rabinowitz
74f8a07166
improve testing regarding expired keys and keys with only email addresses (#262)
* test that hiding secret with expired key fails
* add test of user key without username.
* revert to performing most tests with 'user1'.
* move user4 private/public key fixtures
* factor code fetching emails from keyrings, add comments.
* use factored _warn_or_abort()
* add to, clean up, and clarify comments.
2018-12-01 08:48:09 -05:00
Josh Rabinowitz
337010c625
only increment count of hidden files for hidden files (#282) 2018-11-30 18:09:02 -05:00
Tyler
7dd6177e28 small word fix. (#273) 2018-10-27 09:53:16 +03:00
Josh Rabinowitz
4a3877b486
WIP: Force mode for hide and reveal (#263)
* -F (force even if gpg fails) option for hide and reveal
* allow 'reveal' to decrypt a subset of files.
* update and regen man pages
* man pages update and improvements
* text about why all files should be hidden at once
* add _warn() and _warn_or_abort()
* tests for -F option
* glob source .sh files in Makefile better
* add comment about issue #238. cleanup error msg.
* test exact case in #253
* disable gnupg doc building on ubuntu-rolling
2018-10-10 21:21:58 -04:00
Nikita Sobolev
239c2b63dc
Fixes GNUPG doc links 2018-09-28 11:20:40 +03:00
Nikita Sobolev
d8eff64a0b
Oops, one more fix to the default branch docs
Refs #254
2018-09-28 11:19:39 +03:00
Nikita Sobolev
19a4928580
Fixes default branch misuse
Refs #254

We still need to update the release process information.
2018-09-28 11:18:10 +03:00
Josh Rabinowitz
9e975e4eed make sure email addresses used with 'tell' and 'killperson' exist in keyring (#267)
* name keys after emails, not usernames

* use emails to specify users

* rename and add function to get emails from keyrings
* rename directories holding gpg test fixtures

* deny emails that aren't in the keyring, and test.

* require 'killperson' emails to exist in keyring

* change test to reflect killperson must use email

* remove no-longer-needed test function

* factor function _assert_keychain_contains_emais()

* fix/make lint happy
2018-09-26 00:08:44 +03:00
Josh Rabinowitz
6251fae396 support FreeBSD (#260)
* start FreeBSD support

* permissions change

* improve command to fetch permissions.

* note we use 'shasum' and not 'sha256sum' on osx and freebsd
2018-09-22 23:08:21 +03:00
Josh Rabinowitz
168fe8cd9b
Merge pull request #256 from joshrabinowitz/remove-extra-debug-output
remove diagnostic debug output
2018-09-07 15:28:05 -07:00
Josh Rabinowitz
2adc7dd609
Merge branch 'master' into remove-extra-debug-output 2018-09-07 14:02:21 -07:00
Josh Rabinowitz
898b93b864
Merge pull request #257 from joshrabinowitz/shellcheck-fix
Fixes for new shellcheck error SC2236
2018-09-07 14:02:06 -07:00
joshr
2383e1fe67 use '-n', not '! -z', as per shellcheck SC2236 2018-09-07 16:09:08 -04:00
joshr
4c2c9a9719 remove diagnostic debug output 2018-09-07 15:48:19 -04:00
Josh Rabinowitz
f334b9bd34
Merge pull request #251 from joshrabinowitz/secrets-dir-docs-tests-250
Secrets dir docs and tests for #250
2018-08-26 17:05:51 -04:00
joshr
9e7bc916a6 fix typo 2018-08-26 13:29:15 -04:00
joshr
0696a7621b Merge branch 'secrets-dir-docs-tests-250' of github.com:joshrabinowitz/git-secret into secrets-dir-docs-tests-250 2018-08-26 13:27:41 -04:00
joshr
6d5f01d3f3 update man pages 2018-08-26 13:26:15 -04:00
joshr
1bf031448f update ronn pages to mention SECRETS_DIR env var. 2018-08-26 13:26:07 -04:00
joshr
4e35af2fce set non-default SECRETS_DIR 2018-08-25 10:12:48 -04:00
joshr
6eedaab489 rename test to show SECRETS_DIR. add debug output. 2018-08-25 10:05:48 -04:00
joshr
d670178150 export SECRETS_DIR to default value 2018-08-25 10:05:17 -04:00
joshr
2287b3e54e test that $_SECRETS_DIR is set as expected 2018-08-25 09:58:12 -04:00
joshr
d3e120e9a6 set SECRETS_DIR env var to non-default value 2018-08-25 08:16:54 -04:00
joshr
4dd04a06e0 comment out old debug code 2018-08-25 08:14:14 -04:00
joshr
481d750af4 comment about SECRETS_DIR 2018-08-24 11:19:15 -04:00
joshr
5a00250da9 add comments about SECRETS_DIR environment variable 2018-08-24 11:18:40 -04:00
Josh Rabinowitz
a085d2d9c5
Merge pull request #245 from joshrabinowitz/file-perms-172
add -P (preserve permission) option to reveal and hide. For #172
2018-08-21 12:27:05 -04:00
joshr
1ea3b3139d clarify comment for devs regarding bats TAP diagnostic output 2018-08-18 10:34:48 -04:00
joshr
5d5392232b remove debug code 2018-08-18 10:31:57 -04:00
joshr
41fdf8b2e4 update man pages 2018-08-18 10:27:55 -04:00
joshr
645fc2370e change preserve option from -C to -P 2018-08-18 10:09:58 -04:00
joshr
fc9f4878a1 document -C in .ronn files and fix synopsis of 'git secret hide' 2018-08-18 09:58:51 -04:00
joshr
afec23fb17 add test for -C option. fix typos in comments. 2018-08-18 09:17:05 -04:00
joshr
835fe80d8f set permissions when hiding files. change option to -C. 2018-08-18 09:16:50 -04:00
joshr
84c9502015 Merge branch 'master' into file-perms-172 2018-08-18 08:43:47 -04:00
Luis Rascão
80e4908471 Allow per-command configuration of custom secrets dir (#247)
Typical use case is when you want different people to have access
to some files and other people access to other different files.
2018-08-18 12:59:07 +03:00
Josh Rabinowitz
6e216072fb
Merge branch 'master' into file-perms-172 2018-07-27 10:33:04 -04:00
Simon Massey
b504facc5d
Build fixes for Alpine latest (#246)
* trying alpine

* Make directory /usr/local/src/ for Alpine based distros

* fixes some alpine issue

* move gem install etc to its own task

* moved gem install etc for alphine into dependencies

* reenabling all ci tests

* typo fix as per review

* clarity around doc build disable being gnupg docs

* commit about ignoring non-zero return value
2018-07-24 17:51:02 +01:00
joshr
a090bbddac fix 2018-07-22 23:16:01 -04:00
joshr
cfdca85469 fixes, use _get_encrypted_filename, show TAP diag output 2018-07-22 23:13:12 -04:00
joshr
eb528df301 test permissions 2018-07-22 22:43:37 -04:00
joshr
d73e1081be cleanup 2018-07-22 22:43:06 -04:00
joshr
a86e6ec552 remove unused code 2018-07-22 22:41:57 -04:00
joshr
505428f837 quoting fixes 2018-07-22 22:41:32 -04:00
joshr
2a1a8cb58b fixes for lint and typo 2018-07-22 21:41:04 -04:00
joshr
fda5a0ad21 fixes and debug for 'reveal -c' option 2018-07-22 21:29:01 -04:00
joshr
ffc50acd6a add os-based versions of get_octal_perms 2018-07-22 21:28:33 -04:00