Skip to content

Commit

Permalink
Merge branch 'ryan4yin:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
QixYuanmeng authored Aug 18, 2024
2 parents 522c1a8 + e28c756 commit 4fa7cfb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions secrets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
All my secrets are safely encrypted via agenix, and stored in a separate private GitHub repository
and referenced as a flake input in this flake.

The encryption is done by using all my host's public keys(`/etc/ssh/ssh_host_ed25519_key`), so that
they can only be decrypted on any of my configured hosts. The host keys are generated locally on
each host by openssh without passphrase, and are only readable by `root`, and will never leave the
host.
The encryption is done using the public keys of all my hosts (`/etc/ssh/ssh_host_ed25519_key`), so
that they can only be decrypted on any of my configured hosts. The host keys are generated locally
on each host by OpenSSH without a passphrase and are only readable by `root`. The host keys will
never leave the host.

In this way, all secrets is still encrypted when transmitted over the network and written to
`/nix/store`, they are decrypted only when they are finally used.
In this way, all secrets are still encrypted when transmitted over the network and written to
`/nix/store`. They are decrypted only when they are finally used.

In addition, we further improve the security of secrets files by storing them in a separate private
In addition, we further improve the security of secret files by storing them in a separate private
repository.

This directory contains this README.md, and a `nixos.nix`/`darwin.nix` that used to decrypt all my
secrets via agenix, and then I can use them in this flake.
This directory contains this `README.md`, and a `nixos.nix`/`darwin.nix` file that is used to
decrypt all my secrets via `agenix`. Then, I can use them in this flake.

## Adding or Updating Secrets

Expand Down

0 comments on commit 4fa7cfb

Please sign in to comment.