Commit Graph

634 Commits

Author SHA1 Message Date
Josh Rabinowitz
711a6889c3
travis-ci changes: remove ansible v2.3, fix brew build issue
* remove ansible avm v2.3 pip install
* work around perlbrew/build issue #305 with 'brew update' before installs
2019-01-11 10:14:22 -05:00
Samar Dhwoj Acharya
2047a0f11b fix link to contributors (#304)
* fix link to contributors

* fix link to contributors
2019-01-07 12:35:36 +03:00
Josh Rabinowitz
7210865863
PR template: new branches should be from master (#299) 2019-01-06 16:08:07 -05:00
Carlos Hernandez
bcef774735
Merge pull request #303 from hurricanehrndz/master
Fixing issues with bundler
2019-01-04 16:32:21 -07:00
Carlos Hernandez
6fe8dbff2b
Disable gnupg-git test on debian strech, gpg >=2.2.12 requires libassuan
>= 2.5.0
2019-01-04 15:50:59 -07:00
Carlos Hernandez
cccaa252d7
Fix git builds 2019-01-04 14:53:13 -07:00
Carlos Hernandez
90c7126269
Disable centos test. Enable ubuntu 18.04 test 2019-01-04 12:35:25 -07:00
Carlos Hernandez
1d5fdd3031
Fixing issue #302 2019-01-04 10:08:58 -07:00
Carlos Hernandez
048040dd3c
Fix bundler 2.0 issues: https://docs.travis-ci.com/user/languages/ruby/ 2019-01-04 09:30:59 -07:00
Josh Rabinowitz
4aa7dd2896
reorder entries, add note #291 being fixed (#295) 2019-01-03 12:43:45 -05:00
Josh Rabinowitz
913d026537
Fixes for 'changes' and trailing newlines, for #291 (#293)
* tests and comments about 'changes' for #291
* add 'changes' tests, improve diagnostic 
* preserve trailing newlines in diff output
* use bash trickery to preserve trailing newlines in captured text
* test 'changes' on files without newlines and when called on a non-existant file
* improve comments and variable names
2019-01-01 09:37:11 -05:00
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