@theholocron/holocron-plugin-doppler 5.0.0-alpha.422 → 5.0.0-alpha.424
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 +9 -9
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +4 -4
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Doppler plugin for [Holocron](../cli). Implements the `vault`
|
|
6
6
|
capability against [Doppler's REST API](https://docs.doppler.com/reference/api),
|
|
7
|
-
plus exports `verifyToken` + `AUTH_HINT` for use by `holocron
|
|
7
|
+
plus exports `verifyToken` + `AUTH_HINT` for use by `holocron check token`.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -22,7 +22,7 @@ Token resolution order:
|
|
|
22
22
|
2. `HOLOCRON_DOPPLER_TOKEN` env var (preferred — explicit intent)
|
|
23
23
|
3. `DOPPLER_TOKEN` env var (Doppler-native, works in CI)
|
|
24
24
|
4. Keyring `doppler.<org>` — tried first when an org is active via `--org`, `HOLOCRON_ORG`, or `org` in `holocron.config.ts`
|
|
25
|
-
5. Keyring `doppler` — unnamespaced fallback; set via `holocron
|
|
25
|
+
5. Keyring `doppler` — unnamespaced fallback; set via `holocron new token doppler <token>`
|
|
26
26
|
6. `AuthError` naming all five options + the bootstrap hint
|
|
27
27
|
|
|
28
28
|
## Manual setup (one-time, per operator)
|
|
@@ -42,10 +42,10 @@ doppler login
|
|
|
42
42
|
# 3. Hand the token off to holocron's keyring (one-shot). After this,
|
|
43
43
|
# every plugin call reads the token from the keyring — no env vars
|
|
44
44
|
# to remember, no dotfiles to sync.
|
|
45
|
-
holocron
|
|
45
|
+
holocron new token doppler $(doppler configure get token --plain)
|
|
46
46
|
|
|
47
47
|
# 4. Verify:
|
|
48
|
-
holocron
|
|
48
|
+
holocron check token doppler
|
|
49
49
|
|
|
50
50
|
```
|
|
51
51
|
|
|
@@ -91,17 +91,17 @@ reference doesn't make sense.
|
|
|
91
91
|
| `write` | `POST /v3/configs/config/secrets` with `{ project, config, secrets: {name: value} }`. Doppler's native upsert — no probe. |
|
|
92
92
|
| `list` | `GET /v3/configs/config/secrets` on the default project + config. |
|
|
93
93
|
| `environments` | `GET /v3/environments?project`. Returns environment slugs (`dev`/`stg`/`prd`). |
|
|
94
|
-
| `readEnvironment` | `GET /v3/configs/config/secrets/download?format=json` — bulk KEY=VALUE dump for `holocron secrets
|
|
94
|
+
| `readEnvironment` | `GET /v3/configs/config/secrets/download?format=json` — bulk KEY=VALUE dump for `holocron sync secrets`. |
|
|
95
95
|
| `ensureProject` | `POST /v3/projects`, treats 409/422 "already exists" as idempotent no-op. |
|
|
96
96
|
| `ensureEnvironment` | `POST /v3/environments`, same idempotency semantics. |
|
|
97
97
|
|
|
98
98
|
Plugin-level exports (not capability methods, per the auth-bootstrap
|
|
99
99
|
convention):
|
|
100
100
|
|
|
101
|
-
| Export | Purpose
|
|
102
|
-
| ------------- |
|
|
103
|
-
| `verifyToken` | `GET /v3/me` — returns `{ok: true, subject: "personal @ acme"}` or `{ok: false, message}`.
|
|
104
|
-
| `AUTH_HINT` | One-line hint printed by `holocron
|
|
101
|
+
| Export | Purpose |
|
|
102
|
+
| ------------- | -------------------------------------------------------------------------------------------- |
|
|
103
|
+
| `verifyToken` | `GET /v3/me` — returns `{ok: true, subject: "personal @ acme"}` or `{ok: false, message}`. |
|
|
104
|
+
| `AUTH_HINT` | One-line hint printed by `holocron new token` when no token is supplied or the token is bad. |
|
|
105
105
|
|
|
106
106
|
## Status
|
|
107
107
|
|
package/dist/index.d.mts
CHANGED
|
@@ -64,7 +64,7 @@ export declare function createPlugin(options: DopplerPluginOptions): {
|
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
/**
|
|
67
|
-
* One-line hint shown by `holocron
|
|
67
|
+
* One-line hint shown by `holocron new token doppler` when no token is
|
|
68
68
|
* supplied or when the supplied token is rejected.
|
|
69
69
|
*/
|
|
70
70
|
export declare const AUTH_HINT: string;
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ const resolveToken = createResolveToken({
|
|
|
7
7
|
envName: "HOLOCRON_DOPPLER_TOKEN",
|
|
8
8
|
vendorEnvName: "DOPPLER_TOKEN",
|
|
9
9
|
keyringService: "doppler",
|
|
10
|
-
errorMessage: "no Doppler token found. Pass --token <TOKEN>, set HOLOCRON_DOPPLER_TOKEN / DOPPLER_TOKEN, or run: holocron
|
|
10
|
+
errorMessage: "no Doppler token found. Pass --token <TOKEN>, set HOLOCRON_DOPPLER_TOKEN / DOPPLER_TOKEN, or run: holocron new token doppler $(doppler configure get token --plain)"
|
|
11
11
|
});
|
|
12
12
|
/** Every token this plugin takes, for `holocron doctor tokens`. */
|
|
13
13
|
const tokens = [resolveToken.token];
|
|
@@ -16,7 +16,7 @@ const tokens = [resolveToken.token];
|
|
|
16
16
|
* Doppler auto-injects these into every config's secrets download —
|
|
17
17
|
* bookkeeping about the config itself, not something any caller
|
|
18
18
|
* defined. `readEnvironment()` fans its result out to real destinations
|
|
19
|
-
* (`holocron secrets
|
|
19
|
+
* (`holocron sync secrets` → CI secrets, deploy env vars); shipping
|
|
20
20
|
* these alongside real secrets is pure noise there (theholocron/holocron#742
|
|
21
21
|
* — found via Sentinel's deploy picking them up as if they were its own
|
|
22
22
|
* env). Confirmed stable, documented Doppler behavior — not
|
|
@@ -187,8 +187,8 @@ function createPlugin(options) {
|
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
190
|
-
* One-line hint shown by `holocron
|
|
190
|
+
* One-line hint shown by `holocron new token doppler` when no token is
|
|
191
191
|
* supplied or when the supplied token is rejected.
|
|
192
192
|
*/
|
|
193
|
-
const AUTH_HINT = "install the Doppler CLI (`brew install dopplerhq/cli/doppler`), run `doppler login`, then `holocron
|
|
193
|
+
const AUTH_HINT = "install the Doppler CLI (`brew install dopplerhq/cli/doppler`), run `doppler login`, then `holocron new token doppler $(doppler configure get token --plain)`";
|
|
194
194
|
export { AUTH_HINT, AuthError, DopplerVault, createContext, createDopplerClient, createPlugin, resolveToken, tokens, vault, verifyToken };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-doppler",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.424",
|
|
4
4
|
"description": "Holocron plugin for Doppler. Implements the vault capability against Doppler's REST API — projects, configs, secrets, plus verifyToken + AUTH_HINT for `holocron auth`.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"doppler",
|
|
@@ -40,19 +40,19 @@
|
|
|
40
40
|
"tsx": "4.23.15",
|
|
41
41
|
"typescript": "^5.9.3",
|
|
42
42
|
"vitest": "^5.1.0",
|
|
43
|
-
"@theholocron/
|
|
44
|
-
"@theholocron/
|
|
45
|
-
"@theholocron/
|
|
46
|
-
"@theholocron/
|
|
47
|
-
"@theholocron/
|
|
48
|
-
"@theholocron/
|
|
49
|
-
"@theholocron/
|
|
50
|
-
"@theholocron/
|
|
43
|
+
"@theholocron/cli": "5.0.0-alpha.424",
|
|
44
|
+
"@theholocron/doppler-client": "^1.58.0-alpha.29",
|
|
45
|
+
"@theholocron/http-client": "^1.58.0-alpha.29",
|
|
46
|
+
"@theholocron/misc-utils": "^1.17.0-alpha.4",
|
|
47
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.17",
|
|
48
|
+
"@theholocron/tsdown-config": "^8.9.0-alpha.17",
|
|
49
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.17",
|
|
50
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.17"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@theholocron/doppler-client": "^1.43.1",
|
|
54
54
|
"@theholocron/misc-utils": "^1.16.0",
|
|
55
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
55
|
+
"@theholocron/cli": "5.0.0-alpha.424"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": ">=22"
|