-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from MaddyGuthridge/rewrite
Rewrite to add API
- Loading branch information
Showing
197 changed files
with
11,664 additions
and
6,725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
HOST=localhost # the hostname to use | ||
PORT=5096 # the port number to use | ||
DATA_REPO_PATH="./data" # the path to the data repository | ||
AUTH_SECRET="CHANGE ME" # the secret key to validate tokens |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ yarn.lock | |
|
||
# Ignore config files | ||
svelte.config.js | ||
vitest.config.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Repo secrets | ||
|
||
This directory contains secrets used during CI. | ||
|
||
## `id_ed25519` | ||
|
||
SSH key. Since the app has Git integration, this SSH key is used to access a | ||
small number of repos used for testing purposes. | ||
|
||
### Granting access to a GitHub repo | ||
|
||
1. Copy the public key from `.github/workflows/secrets/id_ed25519.pub` | ||
2. Visit the "Deploy keys" settings for the repo you wish to grant access to. | ||
3. Choose to add a new key, and paste the public key. Ensure you allow write | ||
access. | ||
|
||
The test suite should then be able to clone and push to the repo in CI. | ||
|
||
### Regenerating the key | ||
|
||
```sh | ||
# Generate SSH key | ||
ssh-keygen -t ed25519 -f .github/workflows/secrets/id_ed25519 -C "maddy-portfolio" -N "" | ||
# Generate encryption password | ||
export PASSWORD=$(pwgen 32 1) | ||
# And encrypt it | ||
gpg --passphrase $PASSWORD --cipher-algo AES256 --output .github/workflows/secrets/id_ed25519.enc --symmetric --batch .github/workflows/secrets/id_ed25519C | ||
# Copy the password to your clipboard | ||
echo $PASSWORD | ||
``` | ||
|
||
Make sure to update the `SSH_ENCRYPTION_KEY` in the repo's GitHub Actions | ||
secrets settings. Its value should be set to the password you copied. | ||
|
||
### Decrypting the key | ||
|
||
```sh | ||
gpg --batch --passphrase $PASSWORD --output .github/workflows/secrets/id_ed25519.new --decrypt .github/workflows/secrets/id_ed25519.enc | ||
``` | ||
|
||
### Sources | ||
|
||
* [GitHub actions](https://stackoverflow.com/a/76888551/6335363) | ||
* [Encrypting the keys](https://stackoverflow.com/a/31552829/6335363) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHOIa0tsZl13SrOUC73Krg/UJlBJjlgO3b3PlWujcfW+ maddy-portfolio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"cSpell.words": [ | ||
"Asciinema", | ||
"firstrun", | ||
"superstruct" | ||
] | ||
} |
Oops, something went wrong.