-
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
Showing
4 changed files
with
68 additions
and
8 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# Frequent Asked Questions | ||
|
||
1. rebooting deploy failed with could not found ssh private key, but it indeed just there. | ||
**Q.** Rebooting and unit failed with could not found ssh private key, but it indeed just there. | ||
|
||
Check if using `root on tmpfs`, and modify [hostKeys](https://oluceps.github.io/vaultix/nixos-option.html#hostkeys) path to Absolute path string to your REAL private key location (not bind mounted or symlinked etc.) | ||
**A.** Check if using `root on tmpfs`, and modify [hostKeys](https://oluceps.github.io/vaultix/nixos-option.html#hostkeys) path to Absolute path string to your REAL private key location (not bind mounted or symlinked etc.) | ||
|
||
--- |
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 |
---|---|---|
@@ -1,2 +1,63 @@ | ||
# TODO | ||
Common used workflow with vaultix | ||
# Workflows | ||
Common used workflow with vaultix. | ||
|
||
## Add new secret | ||
|
||
|
||
### 1. Run edit: | ||
|
||
```bash | ||
nix run .#vaultix.app.x86_64-linux.edit -- ./where/new-to-add.age | ||
``` | ||
|
||
### 2. Add a secret to nixos module: | ||
|
||
```nix | ||
secrets = { | ||
#... | ||
new-to-add.file = ./where/new-to-add.age; | ||
}; | ||
``` | ||
|
||
### 3. Run renc: | ||
|
||
|
||
```bash | ||
nix run .#vaultix.app.x86_64-linux.renc | ||
``` | ||
|
||
### 4. Add new produced stuff to git. | ||
|
||
|
||
|
||
## Modify existed secret | ||
|
||
|
||
```bash | ||
nix run .#vaultix.app.x86_64-linux.edit -- ./where/to-edit.age | ||
``` | ||
|
||
```bash | ||
nix run .#vaultix.app.x86_64-linux.renc | ||
``` | ||
|
||
Then add changes to git. | ||
|
||
## Remove secret | ||
|
||
|
||
```diff | ||
secrets = { | ||
#... | ||
- new-to-add.file = ./where/new-to-add.age; | ||
}; | ||
``` | ||
|
||
```bash | ||
rm ./where/new-to-add.age | ||
``` | ||
|
||
```bash | ||
nix run .#vaultix.app.x86_64-linux.renc | ||
``` | ||
Then add changes to git. |