-
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.
- Loading branch information
1 parent
4ff28c9
commit f163f90
Showing
8 changed files
with
563 additions
and
348 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 |
---|---|---|
|
@@ -5,34 +5,43 @@ this manual for macOS (tested on Big Sur) | |
## installation | ||
|
||
1. install Gnu Version of GPG for macOS | ||
|
||
```shell | ||
brew install gnupg | ||
brew install pinentry-mac | ||
``` | ||
|
||
1.1. Find pinentry-mac installation path | ||
|
||
```shell | ||
% which pinentry-mac | ||
% which pinentry-mac | ||
/opt/homebrew/bin/pinentry-mac | ||
``` | ||
|
||
1.2. Setup pinentry | ||
|
||
```shell | ||
cat >> ~/.gnupg/gpg-agent.conf << EOF_ | ||
pinentry-program /opt/homebrew/bin/pinentry-mac | ||
EOF_ | ||
``` | ||
|
||
1.3. restart `gpg-agent` | ||
|
||
```shell | ||
killall -1 gpg-agent | ||
``` | ||
|
||
2. Generate private and public part of key | ||
|
||
```shell | ||
gpg --gen-key | ||
``` | ||
|
||
Enter pass phrase twice (should leave it empty in order PyCharm work) | ||
|
||
3. Print out keys list | ||
|
||
```shell | ||
gpg --list-secret-keys --keyid-format LONG | ||
``` | ||
|
@@ -47,50 +56,57 @@ ssb rsa3072/318B84706760C3D7 2021-03-04 [E] [ годен до: 2023-03-04] | |
``` | ||
|
||
4. add this key to git config | ||
`git config --global user.signingkey <key id>` | ||
`git config --global user.signingkey <key id>` | ||
|
||
```shell | ||
git config --global user.signingkey 5B34A94A1139F75E | ||
``` | ||
|
||
5. add variable GPG_TTY to your shell | ||
this variable points to your tty | ||
this variable points to your tty | ||
|
||
```shell | ||
echo 'export GPG_TTY=$(tty)' >> ~/.zshrc | ||
source ~/.zshrc | ||
env | grep GPG_TTY | ||
``` | ||
|
||
6. print out public key part | ||
|
||
```shell | ||
gpg --armor --export [email protected] | ||
``` | ||
|
||
7. add public key part to github setting | ||
* https://github.com/settings/keys | ||
* press `New GPG key` button | ||
* paste your public key and press `Add GPG key` | ||
|
||
- https://github.com/settings/keys | ||
- press `New GPG key` button | ||
- paste your public key and press `Add GPG key` | ||
|
||
## git command line usage | ||
|
||
1. use `-S` option to sing your commit explicitly | ||
|
||
```shell | ||
git commit -S -m 'Signed commit' | ||
``` | ||
|
||
2. show signature in commit log | ||
|
||
```shell | ||
git log --show-signature | ||
``` | ||
|
||
3. show signature of defined commit | ||
|
||
```shell | ||
git show <commit id> --show-signature | ||
``` | ||
|
||
## PyCharm/IntelliJ IDEA | ||
|
||
1. disable tty and activate agent daemon | ||
|
||
```shell | ||
cat >> ~/.gnupg/pgp.conf << _EOF | ||
no-tty | ||
|
@@ -99,24 +115,29 @@ git show <commit id> --show-signature | |
``` | ||
2. to cache key pass phrase run once | ||
```shell | ||
gpg --status-fd=2 -bsau <keyid> << _EOF | ||
Test message | ||
_EOF | ||
``` | ||
|
||
Enter pass phrase | ||
|
||
3. make key trustable | ||
|
||
```shell | ||
(echo 5; echo y; echo save) | gpg --command-fd 0 --no-tty --no-greeting -q --edit-key <key id> trust | ||
``` | ||
|
||
4. remove password from key | ||
|
||
```shell | ||
(echo save) | gpg --command-fd 0 --no-tty --no-greeting -q --edit-key <key id> passwd | ||
``` | ||
|
||
5. enable all commit signing | ||
|
||
```shell | ||
git config --global commit.gpgsign true | ||
``` |
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,8 +1,9 @@ | ||
# Kubernetes how-to | ||
|
||
1. [Minikube](minikube.md) | ||
2. [Kubernetes](kubectl.md) | ||
1. [Minikube](minikube.md#Contents) | ||
2. [Kubernetes](kubectl.md#kubectl) | ||
3. [Helm](helm.md) | ||
4. [Deploy RabbitMQ to Kubernetes](RabbitMQ_Kubernetes.md) | ||
5. [Deploy Redis to Kubernetes](Redis_Kubernetes.md) | ||
6. [Deploy Postgres to Kubernetes](postgres_kubernetes.md) | ||
6. [Deploy Postgres to Kubernetes](postgres_kubernetes.md) | ||
|
Oops, something went wrong.