Commit Graph

235 Commits (master)

Author SHA1 Message Date
joshr d73e1081be cleanup 6 years ago
joshr a86e6ec552 remove unused code 6 years ago
joshr 505428f837 quoting fixes 6 years ago
joshr 2a1a8cb58b fixes for lint and typo 6 years ago
joshr fda5a0ad21 fixes and debug for 'reveal -c' option 6 years ago
joshr ffc50acd6a add os-based versions of get_octal_perms 6 years ago
joshr 2e7d6a12a5 add -c (preserve permission) option to reveal. For #172 6 years ago
Josh Rabinowitz 246825c658
fix for keys with only emails, and no usernames. Closes #227 (#240)
* test and fix for keys with only emails, and no usernames. Closes #227
6 years ago
joshr 5c639cf8e7 fixes for filenames with spaces
_list_all_added_files() now sets 'filenames' var, and
fixed quoting when updating hashes.
6 years ago
joshr bb2253af8a remove debug code, see #237 6 years ago
joshr b2f00fd32c fixes for filenames with spaces
quoting improvements, and
_list_all_added_files() now sets a global 'filenames' array.
6 years ago
joshr 826dfeb5d4 remove unneeded code 6 years ago
joshr a7eaa6013c fix for issue #230, when git-secret is run in subdir of repo 6 years ago
joshr 4b847298ef restore unquoted variable and comment about it. shellcheck tweak. 6 years ago
joshr 65a7118d25 restore small optimizations. quote variable for shellcheck. 6 years ago
joshr adc522a9d3 allow spaces in path
for issue #135, regarding spaces in pathnames
6 years ago
Simon Massey 1f2fb99a0a
Full stop changed to comma 6 years ago
Josh Rabinowitz 99f2229038 mention 'add' has an option, and that each command has options 6 years ago
Josh Rabinowitz 31e5528fac Clarify that 'git-secret-add' doesn't alter .gitignore by default 6 years ago
Josh Rabinowitz 28377b138c fix typos 6 years ago
Josh Rabinowitz 1552e22a11 more consistent error messages 6 years ago
Josh Rabinowitz 73c81747cc fix indentation 6 years ago
joshr 332aa1f5d5 fix typo 6 years ago
Josh Rabinowitz ab58461f8e more error checking around decryption 6 years ago
Josh Rabinowitz b268ddf226 more careful error checking running gpg 6 years ago
joshr 75c5ea168c fix 6 years ago
joshr 5ab26e6707 improve messaging, add comment 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
Josh Rabinowitz c2081514d6 fixes for git secret changes (#160)
* fixes for git secret changes

check that we can find filenames passed on command line, and that
we can find the unencrypted versions of hidden files.

* new test

* add tests
6 years ago
Josh Rabinowitz deae0d1cd5 'git secret hide' without source files gives appropriate error (#158)
* don't hide files that don't exist decrypted.

and change related error message to 'file not found: filename'.

* ensure all source files are present before hiding

* test for 'add' while unencrypted file missing
6 years ago
Josh Rabinowitz 52bbc20162
Merge branch 'master' into add-tracked-file-126 6 years ago
joshr 13170c313f check if file is tracked before adding
and tell user useful information in case they want to
hide a file that's tracked.
6 years ago
joshr ffa89ceaa2 fix 6 years ago
joshr a78e0172bc check that added files are not tracked by git 6 years ago
Josh Rabinowitz 97fa9e6e7b fix quoting and phrasing 6 years ago
Josh Rabinowitz 114f4c7c6c document git secret --version 6 years ago
joshr 2bc42f2655 mention 'git secret list' not mapping.cfg in usage 6 years ago
joshr 55f2b83320 fix typo 6 years ago
joshr 8b2a1eab1d Merge branch 'master' into improve-docs 6 years ago
joshr 4766df2110 improve error messages
in add, killperson, remove, tell, and main
6 years ago
joshr 0dc00367f9 improve message when .git exists but not .gitsecret 6 years ago
joshr a4a8ea62ed better error messages 6 years ago
joshr e7abd660bc improve git secret usage output 6 years ago
Josh Rabinowitz 4a2f34c791 remove commented-out code 6 years ago
Josh Rabinowitz 50b23c9739 fix 6 years ago
Josh Rabinowitz 900717707b TEMP Merge branch 'git-secret-cat' of github.com:joshrabinowitz/git-secret into git-secret-cat 6 years ago
Josh Rabinowitz c760513e35 small grammar change, update,
fixes for linter errors about 'which'
For example:
    in utils/deb/deb-ci.sh line 27: 'which git-secret':
    SC2230: which is non-standard. Use builtin 'command -v' instead.
remove inoperative links
reflect code review input
add test for 'git secret cat'
restore sponsor links
6 years ago
Josh Rabinowitz 612e34cce8 add git secret cat filename [filename2] feature.
ronn file for manpage
cleanup. Remove -f option.
bump version to 0.2.4
remove unused variable
add references to git secret cat in ronn docs.
git-secret-cat man page
6 years ago
Josh Rabinowitz 02e4bde64e better error checking 6 years ago
Josh Rabinowitz da55b56565 reflect code review input 6 years ago
Josh Rabinowitz badb0938d9 remove unused variable 6 years ago
Josh Rabinowitz dc4c8d7284 bump version to 0.2.4 6 years ago
Josh Rabinowitz 85854df8fd cleanup. Remove -f option. 6 years ago
Josh Rabinowitz 40c63e9960 add git secret cat filename [filename2] feature 6 years ago
Julien Lucca 86fd972a67
Update version.sh
Version was not bumped after 0.2.3 release
6 years ago
ilovezfs 91d2876d23 Make checksum command operating system based 7 years ago
NIKHILY 2f67e3efef Add support to run on Git Bash for Windows (MINGW) system. 7 years ago
Carlos Hernandez 9001cc397b
Fix SC1126 7 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 d6ea1f0b5f Fix and Ignore ShellCheck (0.4.6) 2001,111 7 years ago
Carlos Hernandez 8760cafd36 Refactor awk script to drop ENDFILE feature from 4.1.1
Signed-off-by: Carlos Hernandez <carlos@techbyte.ca>
7 years ago
Carlos Hernandez b6852910dd Modified ignore check, fixes #105. 7 years ago
pǝɯɐɥoɯ 674a880882 Fixed issue when initializing git-secret with an existing .gitignore 7 years ago
sobolevn e3fe3b4222 Adds documentation update
Documentation:
1. Adds security note, closes #78
2. Adds a tweak about `random_seed` and `.gitsecret/`, closes #93
3. Adds `git --version` into issue tamplate, closes #95
4. Improves `README.md`, refs #79
7 years ago
Carlos Hernandez fb29858dae doc encrypt on change option for hide cmd 7 years ago
Carlos Hernandez 41f9a004c4 Fix lint issues, disable false positives 7 years ago
Carlos Hernandez b78afdeff9 Adding gpg version check to modify encrypt cmd 7 years ago
Carlos Hernandez d10c63c67f Ensuring hide is compat with gnupg2.1 7 years ago
Carlos Hernandez 2c478f879d Simplify how ignore patterns are to gitignore during init 7 years ago
Carlos Hernandez 7897730955 Supply fsdb path when clearing hashes 7 years ago
Carlos Hernandez dcaf08e501 Get key counts from right function 7 years ago
Carlos Hernandez 5b1993abc8 Telling secrets need to invalidate file hashes 7 years ago
Carlos Hernandez 4160c2a05d Getting path from fsdb 7 years ago
Carlos Hernandez 6279fe2125 Migrate to new fsdb remove 7 years ago
Carlos Hernandez 8407b505bb Ensure random seed is ignored 7 years ago
Carlos Hernandez b75884e3f0 File checksum hash of secrets kept in path_mappings (fsdb) 7 years ago
Carlos Hernandez 638b67e155 Migrating to new fsdb(:) format. 7 years ago
Carlos Hernandez da3e6d2cac Adding checksum, and fsdb functions, making path mappings file colon
delimited fsdb.
7 years ago
sobolevn c85d482ec6
Merges develop, removes staging, refs #76 7 years ago
Christoph Tavan 078729a0c6
Make hide -d work with secrets in subdirectories
When searching for files to be removed after being hidden we must use
find with -path instead of -name if we want to remove files in
subdirectories as well.
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 8a1fe788f8
Adds fix to the `changes` command
Changes:
1. Fixes #80, there was a pipe to null, which broke the output
2. Also changed the `diff` formating
3. Also added test case to test deletions
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 21d8c7af3e
Version 0.2.2 release 7 years ago
sobolevn 5c25233b89
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
Miguel Silvestre 19030e9cd0
Clean code using shellspeck 7 years ago
Miguel Silvestre 83709ec170
Fix bug when passing more than one file to changes 7 years ago
Tim Churchard 221fd88efc
Add -d option to hide command to remove unencrypted files. 7 years ago
sobolevn c1fa611f4d
Adds an attempt to fix the CI
Changes:
1. Fixes the licence information in the `plugin.zsh` to be MIT
2. Fixes link in the README
3. Fixes some tests

Closes #54
7 years ago
Tim Churchard d7be9f92b1
Allow git-secret to run from any directory in the work tree 7 years ago
Anton Maklakov c6a13cf405
A simpler implementation of "usage" 7 years ago
sobolevn c7ac7ad211
Fixed several issues
Changes:
1. Fixed typo in tests_base
2. Fixed `--no-index` issue
3. Refactored `add` test to be more strict

Closes #50
Refernces #46
7 years ago
sobolevn e1a627d36a
Added test to cover #50
Changes:
1. Fixed typo in `add -h`
2. Removed unused function from `usage`
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
Miguel Silvestre 5a2049bd47 Clean code using shellspeck 7 years ago
Miguel Silvestre b8b2609ec2 Fix bug when passing more than one file to changes 7 years ago
Tim Churchard 1f8a9809a2 Add -d option to hide command to remove unencrypted files. 7 years ago
sobolevn 73526644e0
Adds an attempt to fix the CI
Changes:
1. Fixes the licence information in the `plugin.zsh` to be MIT
2. Fixes link in the README
3. Fixes some tests

Closes #54
7 years ago
Tim Churchard 4bf48da281 Allow git-secret to run from any directory in the work tree 8 years ago
sobolevn 2dab341abd
Merge branch 'develop' of https://github.com/sobolevn/git-secret into develop 8 years ago
sobolevn f099802324
Fixed several issues
Changes:
1. Fixed typo in tests_base
2. Fixed `--no-index` issue
3. Refactored `add` test to be more strict

Closes #50
Refernces #46
8 years ago
Sobolev Nikita b07a931a05 Merge pull request #48 from antmak/develop
A simpler implementation of "usage"
8 years ago
sobolevn 904ce02cfc
Added test to cover #50
Changes:
1. Fixed typo in `add -h`
2. Removed unused function from `usage`
8 years ago
Anton Maklakov a9e4f8f111 A simpler implementation of "usage" 8 years ago
sobolevn 2e9e374acb
Version 0.2.1 release 8 years ago
sobolevn 67218994f3
refactored all src folder 8 years ago
sobolevn a1cd887101
refactoring started, shellcheck is now supported 8 years ago
sobolevn 8b1a01f1f6
This commit is pretty large. A lot of changes.
The full list of changes:
1. Added `.docker/` folder with Dockerfiles
2. Now `travis` runs integrational tests inside these containers
3. Now `travis` runs tests with `mac os x`
4. Now there are new ways to autodeploy `deb` and `rpm` packages
5. Fixed some issues
6. Also added `.ci/` folder, where utility scripts for travis are stored
7. Moved `git-hooks` into the separate folder: `utils/hooks/`
8. Added new target to the `Makefile`
9. `.gitignore` is updated to ignore `build/` folder and inner files
8 years ago
sobolevn 691efef167 version 0.2.0 prelease 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 a8c244b319 Merge branch 'master' into develop 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
sobolevn a5abefba90 release v0.1.2 8 years ago
sobolevn 66f9b63872 Merge branch 'develop' into staging 8 years ago
sobolevn 3577c165ec Added `-i` flag to the `git-secret-add` command, which now auto-ignores unignored files.
Also added a test case for this feature.
Other changes:
1. refactored `Makefile` to have `.PHONY` marks
2. added install target to the `Makefile`, now one can run `make install` (with optional `$PREFIX` variable)
3. updated docs for `git-secret.7`, `git-secret-add.1`
4. refactored some commands to `shift` arguments
5. added a test case to the 'other-file-extension' situation
5. added `.github` folder to store templates

Closed #18
8 years ago
sobolevn 70ce25c899 Solved the issue with gpg2 >= 2.1
The reason was with the `_user_required` function. It was checking for the `pubring.gpg` file, which was renamed in the `gpg2` >= 2.1
So I have removed this check, leaving other things in place.

Closes #6
8 years ago
sobolevn a9cea588bb version 0.1.1 8 years ago
sobolevn b285eb91ed Merge branch 'develop' of https://github.com/sobolevn/git-secret into develop 8 years ago
sobolevn 1161098f12 Fixes the `gpg2` issue by changing the way fixture installation and uninstallation were handled.
Also `--dry-run` option was added to the `git-secret` command.
8 years ago
Julio Sueiras 60c849acef Typo fix
Typo fix from `git congig user.email` to `git config user.email`
8 years ago
elinamorits 73a6e041fa fixed .deb package creation 8 years ago
elinamorits 86a214574d debian/ubuntu packages 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 d0f6a7c3c1 small style fixes 8 years ago
sobolevn 2b48137287 list and whoknows commands added 8 years ago
sobolevn d6cb27b5dd bug for linux fixed 8 years ago
sobolevn cd97ba1cc2 tests for remove 8 years ago
sobolevn bdc3dbda18 manuals started 8 years ago
sobolevn 634de90bae pre-reliase 8 years ago