Commit Graph

38 Commits (b0378617e291070a1196e357949059f366c363f0)

Author SHA1 Message Date
Ochan Kwon b0378617e2
bug fix for 'reveal' in a subdir (#903) (#905) 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 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 2830ce2ff7
Issue 579 reveal clobbers (#580)
* Don't let reveal clobber secret files, for #579
4 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 8334d7beef
Reveal verbose (#447)
* add -v option to reveal, for #395
* update reveal man page
* shellcheck exception
* changelog update for 'reveal -v'
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 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
krufab dc564d90ce Removed unneded redirection of path_mappings (#326) 5 years ago
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
6 years ago
joshr 5d5392232b remove debug code 6 years ago
joshr 645fc2370e change preserve option from -C to -P 6 years ago
joshr 835fe80d8f set permissions when hiding files. change option to -C. 6 years ago
joshr cfdca85469 fixes, use _get_encrypted_filename, show TAP diag output 6 years ago
joshr d73e1081be cleanup 6 years ago
joshr fda5a0ad21 fixes and debug for 'reveal -c' option 6 years ago
joshr 2e7d6a12a5 add -c (preserve permission) option to reveal. For #172 6 years ago
joshr 1d32cd0650 check that gpg -n --list-keys reported no error 6 years ago
joshr 4661b725df abort if unable to decrypt hidden file 6 years ago
Carlos Hernandez fc5940840b Handle invalid flags better: SC2220 7 years ago
Carlos Hernandez d71c27f9a2 Fix ShellCheck lint issue id 2220, drop gawk inplace. Add centos
support.
7 years ago
Carlos Hernandez 4160c2a05d Getting path from fsdb 7 years ago
sobolevn 763e130b8d
Adds new strategy on working with the relative paths.
Changes:
1. When adding new file path is normalized in respect to both CWD and repo root
2. All commands now know about that
3. Tests are fixed

Refs #86, #85, #83
7 years ago
sobolevn 9d0a2ac1c1
Adds fixes to subdirectories bug.
Changes:
1. Fixes #86, now all variables are accessed as functions
2. Fixes #85, now these use cases are working correctly
3. Fixes #83, now init works relative to `.git` folder
4. Closes #77, zsh-plugin is deprecated
5. Refs #53, done some refactoring to tests
6. Closes #82, added additional information to pull-request template
7. Refs #22, plugins are deprecated
8. Also made a lot of improvments into both code and tests
7 years ago
sobolevn 728371912e
Version 0.2.2 pre-release
There are a lot of changes, multiple things were refactored: tests,
some commands, building and meta.

Several critical bugs fixed.

Changes:
1. Fixed #74, when `_user_required` was not working after reimporting keys
2. Closes #73, now it is possible to provide multiple emails to the `killperson` command
3. Closes #72, now it is possible to provide multiple emails to the `tell` command
4. Closes #71, now every doc in this project refer to `git-secret.io` instead of old `gh-pages` website
5. Closes #70, now installation section is removed from main `man` file
6. Closes #69, now "See also" section in the `man`s are clickable
7. Closes #61, added "Manual" section to the manuals
8. Refs #38, added `centos` Dockerfile, but `ci` testing is still failing
9. Refs #52, tests are refactored. Added `clean` command tests, removed a lot of hardcoded things, moved tests execution from `./temp` folder to `/tmp`, added a lot of new check in old tests, and some new test cases
10. Refactored `hide` and `clean` commands to be shorter
11. `shellcheck` is now supported with `make lint`

Additional features are not comming to 0.2.2 after this commit.
7 years ago
sobolevn 67218994f3
refactored all src folder 8 years ago
sobolevn b5bdec9673 Added `git-secret-changes` and changed the way `decryption` worked.
Now there's a separate function `_decrypt` which handles `gpg`-decryption.
It is convinient, since both `changes` and `reveal` use it.

Also I have updated manuals to match new features. Also new `brew` repo is now officialy supported.
Added tests for the `changes` command.
8 years ago
sobolevn 8206de7ebb Added '-f' option to the `reveal` command.
This option allows to easily overwite existing giles with no prompt.
Also added documentation for the new option.

Closes #24
8 years ago
sobolevn d523d8b8a9 There was a bug with `sed` command, when trying to `remove` filename with slashes.
Now it is fixed. See `_delete_line` function.
Closes #23
8 years ago
elinamorits 73a6e041fa fixed .deb package creation 8 years ago
sobolevn bf6fdac0b2 manuals finished, new help based on man, zsh plugin 8 years ago
sobolevn 6278d2e597 somehow git repo fucked up 8 years ago
sobolevn 8d16a0e679 manuals, help text, style fixes 8 years ago
sobolevn b370149e18 fixes after makefile crash 8 years ago
sobolevn bdc3dbda18 manuals started 8 years ago
sobolevn 634de90bae pre-reliase 8 years ago