keypin 0.15.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -5
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -20,8 +20,14 @@ keypin runs your apps with keys from your vault, and keeps one map of every key
|
|
|
20
20
|
paste in a chat, or leave on a laptop.
|
|
21
21
|
|
|
22
22
|
Each project lists its keys in a `keypin.toml`: names, vault items and destinations, never values. keypin runs your
|
|
23
|
-
commands with the dev keys and publishes the prod keys
|
|
24
|
-
|
|
23
|
+
commands with the dev keys and publishes the prod keys. It reads a value only while a command runs.
|
|
24
|
+
|
|
25
|
+
| Vaults | Destinations | Rotation |
|
|
26
|
+
| --------- | ------------------ | -------- |
|
|
27
|
+
| 1Password | GitHub Actions | Resend |
|
|
28
|
+
| Infisical | Cloudflare Workers | Neon |
|
|
29
|
+
|
|
30
|
+
Want another? Vote for it on the [roadmap](https://github.com/caiopizzol/keypin/issues/138).
|
|
25
31
|
|
|
26
32
|
## Install
|
|
27
33
|
|
|
@@ -90,8 +96,11 @@ Then publish:
|
|
|
90
96
|
keypin publish --all
|
|
91
97
|
```
|
|
92
98
|
|
|
93
|
-
`publish` shows what it will write where and waits for you to answer `y`.
|
|
94
|
-
|
|
99
|
+
`publish` shows what it will write where and waits for you to answer `y`.
|
|
100
|
+
|
|
101
|
+
To rotate a key, give it an
|
|
102
|
+
[issuer](https://github.com/caiopizzol/keypin/blob/main/docs/configuration.md#rotating-a-key) and run `keypin rotate
|
|
103
|
+
RESEND_API_KEY`. keypin creates the new key, saves and publishes it, and asks before it revokes the old one.
|
|
95
104
|
|
|
96
105
|
## Commands
|
|
97
106
|
|
|
@@ -102,6 +111,7 @@ keypin import <env-file> [NAME...] [--env <name>] --vault <vault>
|
|
|
102
111
|
# move an env file's values into 1Password and map them
|
|
103
112
|
keypin run [--only NAME] -- <command> # run a command with the dev keys, or only the named ones
|
|
104
113
|
keypin publish <VARIABLE> | --all # write prod keys to their destinations
|
|
114
|
+
keypin rotate <VARIABLE> # replace a key at its provider, then publish it
|
|
105
115
|
keypin status # every project's keys, and when each is due for rotation
|
|
106
116
|
keypin unregister [folder] # stop listing a project
|
|
107
117
|
```
|
|
@@ -121,8 +131,9 @@ npx skills add caiopizzol/keypin -g # all your projects
|
|
|
121
131
|
## Docs
|
|
122
132
|
|
|
123
133
|
- [Configuration](https://github.com/caiopizzol/keypin/blob/main/docs/configuration.md): every field in
|
|
124
|
-
`keypin.toml
|
|
134
|
+
`keypin.toml`
|
|
125
135
|
- [Import](https://github.com/caiopizzol/keypin/blob/main/docs/import.md): moving an env file's values into 1Password
|
|
136
|
+
- [Infisical](https://github.com/caiopizzol/keypin/blob/main/docs/infisical.md): reading keys from Infisical instead
|
|
126
137
|
- [Publishing](https://github.com/caiopizzol/keypin/blob/main/docs/publishing.md): destinations, approvals and
|
|
127
138
|
`--plan`
|
|
128
139
|
- [Notes](https://github.com/caiopizzol/keypin/blob/main/docs/notes.md): `wrangler dev`, the wrangler login, and the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keypin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/caiopizzol/keypin#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"x64"
|
|
27
27
|
],
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@keypin/cli-darwin-arm64": "0.
|
|
30
|
-
"@keypin/cli-darwin-x64": "0.
|
|
31
|
-
"@keypin/cli-linux-x64": "0.
|
|
32
|
-
"@keypin/cli-linux-arm64": "0.
|
|
29
|
+
"@keypin/cli-darwin-arm64": "0.20.0",
|
|
30
|
+
"@keypin/cli-darwin-x64": "0.20.0",
|
|
31
|
+
"@keypin/cli-linux-x64": "0.20.0",
|
|
32
|
+
"@keypin/cli-linux-arm64": "0.20.0"
|
|
33
33
|
}
|
|
34
34
|
}
|