Skip to content

Commit 70a3180

Browse files
authored
Merge branch 'master' into insiya-key
2 parents 32dfbe9 + 747a4ff commit 70a3180

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed
Binary file not shown.
Binary file not shown.

README.md

+26-5
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,30 @@ Hosted on GitHub Pages at http://ucladevx.com/BMaps-Backend/
2626

2727
## Repo Breakdown
2828

29-
- Database config/data in `/database`
30-
- Backend source code in `src/`
31-
- tkinter GUIs in `tkinter/`
32-
- Autodocumentation in `docs/`
33-
- Beautiful Soup Scraping in `scraping/`
29+
- Database config/data is in `/database`
30+
- Backend source code is in `src/`
31+
- tkinter GUIs is in `tkinter/`
32+
- Autodocumentation is in `docs/`
33+
- Beautiful Soup Scraping is in `scraping/`
34+
35+
## Using git crypt to get access to .env files
36+
37+
- Generate a rsa2048 gpg key using the gpg tool
38+
- `gpg full-generate-key`
39+
- Make sure to record your passphrase in a secure location, and also to generate a revocation certificate for the key in case it gets compromised or lost
40+
- `gpg --output revocation-cert.asc --gen-revoke <PUB-KEY-SIG>`
41+
- Convey your gpg key through a keyfile securely to a project member, either using a pub key server, or through another clandestine channel
42+
- To generate the key file:
43+
- `gpg --output <YOUR_NAME>.gpg --export <PUB-KEY-SIG>`
44+
- The team member will then add your pub-key to their gpg key-chain using
45+
- `gpg --import <keyfile>`
46+
- Note that keyfile in this step is the same as the <YOUR_NAME>.gpg file generated in the previous step
47+
- They may also choose to sign the key if they trust you.
48+
- Finally, the team member will run:
49+
- `git-crypt --add-gpg-user <team member to be added's email or any other identifier of key>`
50+
- Then they must push their changes (adding your pub key) made to the repository to the remote, and those changes pulled by you
51+
- Note that their changes will not appear when `git status` is run, so it may be necessary to make some other change in the repository to successfully push the newly added pub key within git crypt
52+
- Finally, once you have the updated repository they pushed, run
53+
- `git-crypt unlock`
54+
- you will not need to run git-crypt unlock again, since git-crypt will automatically encrypt your .envs as you push them within this repo, and decrypt them as they are pulled from the remote. GLHF.
3455

0 commit comments

Comments
 (0)