Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates for #813 #814

Merged
merged 3 commits into from
Apr 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion man/man1/git-secret-add.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/man1/git-secret-cat.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/man1/git-secret-changes.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/man1/git-secret-clean.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/man1/git-secret-hide.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions man/man1/git-secret-init.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/man1/git-secret-list.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/man1/git-secret-remove.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/man1/git-secret-removeperson.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/man1/git-secret-reveal.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/man1/git-secret-tell.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/man1/git-secret-usage.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/man1/git-secret-whoknows.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 18 additions & 11 deletions man/man7/git-secret.7

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions man/man7/git-secret.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,17 @@ And you're done!
2. Import this key into your `gpg` keyring (in `~/.gnupg` or similar) by running `gpg --import KEY_NAME.txt`

3. Now add this person to your secrets repo by running `git secret tell [email protected]`
(this will be the email address associated with the public key)
(this will be the email address associated with their public key)

4. The newly added user cannot yet read the encrypted files. Now, re-encrypt the files using
4. Now remove the other user's public key from your personal keychain with `gpg --delete-keys [email protected]`

5. The newly added user cannot yet read the encrypted files. Now, re-encrypt the files using
`git secret reveal; git secret hide -d`, and then commit and push the newly encrypted files.
(The -d options deletes the unencrypted file after re-encrypting it).
Now the newly added user will be able to decrypt the files in the repo using `git-secret reveal`.

Note that it is possible to add yourself to the git-secret repo without decrypting existing files.
It will be possible to decrypt them after re-encrypting them with the new keyring. So, if you don't
Note that it is possible to add yourself to the git-secret repo without being able decrypting existing files.
It will be possible to decrypt them after re-encrypting them with the new keyring. If you do not
want unexpected keys added, you can configure some server-side security policy with the `pre-receive` hook.

### Using gpg
Expand Down
1 change: 1 addition & 0 deletions utils/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ chmod 0700 "${TEST_DIR}"
# (IE, like: `echo '# message here' >&3`).
# bats ... 3>&1 shows diagnostic output
bats "${SECRETS_PROJECT_ROOT}/tests" 3>&1
# bats "${SECRETS_PROJECT_ROOT}/tests/test_tell.bats" 3>&1
)

rm -rf "${TEST_DIR}"