-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using 1Password Operator with documentation
- Loading branch information
Showing
2 changed files
with
79 additions
and
1 deletion.
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,37 @@ | ||
## How to use this flake | ||
|
||
Build an output specified in `flake.nix` like so (not all outputs are impure): | ||
|
||
``` | ||
nix build -o ./result .#tailscale-operator --impure | ||
kubectl apply -f ./result | ||
``` | ||
|
||
## 1Password usage with Kubernetes Operator | ||
|
||
Create a 1Password entry with the CLI: | ||
|
||
``` | ||
op item create --category=login --title='some-secret' --vault='Kubernetes' \ | ||
'somefield=somevalue' \ | ||
'someotherfield=someothervalue' | ||
``` | ||
|
||
Alternatively, inject arbitrary fields into an existing 1Password entry with the 1Password CLI: | ||
|
||
``` | ||
op item edit 'UUID' 'somefield=somevalue' | ||
``` | ||
|
||
### Generate a OnePasswordItem: | ||
|
||
If I had a 1Password entry with the following criteria: | ||
- Desired secret name: `cloudflared` | ||
- Desired namespace: `default` | ||
- Item path: `vaults/Kubernetes/items/m4i7whzvm5amrmxntpoleuaxxe` | ||
|
||
I would use the following command to generate a OnePasswordItem: | ||
|
||
``` | ||
nix run .#1password-item -- --name cloudflared --namespace default --itemPath "vaults/Kubernetes/items/m4i7whzvm5amrmxntpoleuaxxe" | ||
``` |
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