forked from withoutboats/bpb
-
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 #4 from pkgxdev/deprefixify
remove pkgx_ prefixes
- Loading branch information
Showing
27 changed files
with
62 additions
and
30 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 |
---|---|---|
|
@@ -69,6 +69,7 @@ jobs: | |
- uses: nosborn/[email protected] | ||
with: | ||
files: . | ||
ignore_files: ./README.md | ||
|
||
test: | ||
name: Test | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,4 +1,4 @@ | ||
[workspace] | ||
members = ["bpb-pkgx-cli", "pbp-pkgx-lib"] | ||
default-members = ["bpb-pkgx-cli"] | ||
members = ["bpb", "pbp"] | ||
default-members = ["bpb"] | ||
resolver = "2" |
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 |
---|---|---|
|
@@ -13,9 +13,9 @@ do. | |
## How to Install | ||
|
||
```sh | ||
git clone https://github.com/pkgxdev/bpb-pkgx | ||
cd bpb-pkgx | ||
cargo install --path bpb-pkgx-cli | ||
git clone https://github.com/pkgxdev/bpb | ||
cd bpb | ||
cargo install --path bpb | ||
``` | ||
|
||
## How to Set Up | ||
|
@@ -31,8 +31,8 @@ bpb init "withoutboats <[email protected]>" | |
You can pass any string you want as your userid, but `"$NAME <$EMAIL>"` is the | ||
conventional standard for OpenPGP userids. | ||
|
||
This will create a file at ~/.bpb_keys.toml. This file contains your public | ||
key. | ||
This will create a file at `~/.config/pkgx/bpb.toml`. This file contains your | ||
public key. | ||
|
||
The private and public keys are output as JSON. This is the only time this | ||
tool will expose your private key publicly. | ||
|
@@ -47,13 +47,43 @@ If you want to use it to sign git commits, you also need to inform git to call | |
it instead of gpg. You can do this with this command: | ||
|
||
```sh | ||
git config --global gpg.program bpb_pkgx | ||
git config --global gpg.program bpb | ||
``` | ||
|
||
You should also provide the public key to people who want to verify your | ||
commits. Personally, I just upload the public key to GitHub; you may have | ||
other requirements. | ||
|
||
You can print your private key with: | ||
|
||
```sh | ||
security find-generic-password -s "xyz.tea.BASE.bpb" -w | ||
# ^^ prompts for your login password | ||
``` | ||
|
||
|
||
## Security Considerations | ||
|
||
Our mechanism is pretty damn secure. But! We depend on: | ||
|
||
> [!IMPORTANT] | ||
> * The strength of your login password. | ||
> * The strength of your iCloud password. | ||
Someone desiring your GPG private key would need to steal your computer and | ||
then brute force your login password. So you should check how long that would | ||
take. | ||
|
||
Your macOS Keychain *may* sync to iCloud. In which case your security also | ||
depends on the security of your iCloud password. Apple encrypt your keychain | ||
remotely but that is obviously decrypted by your iCloud password. | ||
|
||
Realistically your iCloud password is more important as physical theft is an | ||
order of magnitude less likely than a remote attack. That can be mitigated by | ||
preventing iCloud Keychain sync but that’s pretty useful so maybe just have a | ||
secure iCloud password. | ||
|
||
|
||
## How it Replaces GPG | ||
|
||
If this program receives a `-s` argument, it reads from stdin and then writes | ||
|
@@ -64,6 +94,7 @@ This means that this program can be used to replace gpg as a signing tool, but | |
it does not replace any other functionality. For example, if you want to | ||
verify the signatures on other peoples' git commits, it will shell out to gpg. | ||
|
||
|
||
## TODO | ||
|
||
- [ ] Move keychain identifiers out to build variables in `main.rs` |
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
4 changes: 2 additions & 2 deletions
4
pbp-pkgx-lib/examples/round_trip.rs → pbp/examples/round_trip.rs
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
4 changes: 2 additions & 2 deletions
4
pbp-pkgx-lib/examples/verify_sig.rs → pbp/examples/verify_sig.rs
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.