You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-5
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,30 @@ Hosted on GitHub Pages at http://ucladevx.com/BMaps-Backend/
26
26
27
27
## Repo Breakdown
28
28
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
- 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.
0 commit comments