Adding file deregister tool + extrapolating code
This solves some TODOs by moving shared code out into `_blackbox_common.sh`. New VCS commands were added, `vcs_ignore` and `vcs_notice` (the opposite of ignore). Made some utility functions * `remove_filename_from_cryptlist` - The opposite of `add_file_to_cryptlist` * `remove_line` - Removes a single line from a text file
This commit is contained in:
@@ -98,6 +98,7 @@ Commands:
|
||||
| `blackbox_diff` | Diff decrypted files against their original crypted version |
|
||||
| `blackbox_initialize` | Enable blackbox for a GIT or HG repo |
|
||||
| `blackbox_register_new_file` | Encrypt a file for the first time |
|
||||
| blackbox_deregister_file | Remove a file from blackbox |
|
||||
| `blackbox_list_files` | List the files maintained by blackbox |
|
||||
| `blackbox_decrypt_all_files` | Decrypt all managed files (INTERACTIVE) |
|
||||
| `blackbox_postdeploy` | Decrypt all managed files (batch) |
|
||||
@@ -290,10 +291,9 @@ How to remove a file from the system?
|
||||
============================
|
||||
|
||||
This is a manual process. It happens quite rarely.
|
||||
|
||||
1. Remove the file ``keyrings/live/blackbox-files.txt``
|
||||
2. Remove references from ``.gitignore`` or ``.hgignore``
|
||||
3. Use ``git rm`` or ``hg rm`` as expected.
|
||||
```
|
||||
blackbox_deregister_file path/to/file.name.key
|
||||
```
|
||||
|
||||
How to indoctrinate a new user into the system?
|
||||
============================
|
||||
|
||||
Reference in New Issue
Block a user