envshed 0.14.0 → 0.17.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/dist/bin/envshed-linux-x64 +4 -0
- package/dist/bundle.cjs +48909 -0
- package/dist/commands/forward-signals.test.d.ts +2 -0
- package/dist/commands/forward-signals.test.d.ts.map +1 -0
- package/dist/commands/forward-signals.test.js +94 -0
- package/dist/commands/forward-signals.test.js.map +1 -0
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +200 -54
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/pull.d.ts.map +1 -1
- package/dist/commands/pull.js +4 -0
- package/dist/commands/pull.js.map +1 -1
- package/dist/commands/run.d.ts +21 -0
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +68 -5
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/secret.d.ts.map +1 -1
- package/dist/commands/secret.js +73 -0
- package/dist/commands/secret.js.map +1 -1
- package/dist/commands/share.d.ts +3 -0
- package/dist/commands/share.d.ts.map +1 -0
- package/dist/commands/share.js +367 -0
- package/dist/commands/share.js.map +1 -0
- package/dist/commands/share.test.d.ts +2 -0
- package/dist/commands/share.test.d.ts.map +1 -0
- package/dist/commands/share.test.js +532 -0
- package/dist/commands/share.test.js.map +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +50 -6
- package/dist/config.js.map +1 -1
- package/dist/config.test.d.ts +2 -0
- package/dist/config.test.d.ts.map +1 -0
- package/dist/config.test.js +114 -0
- package/dist/config.test.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/importers/doppler.d.ts +46 -0
- package/dist/lib/importers/doppler.d.ts.map +1 -0
- package/dist/lib/importers/doppler.js +156 -0
- package/dist/lib/importers/doppler.js.map +1 -0
- package/dist/lib/importers/doppler.test.d.ts +2 -0
- package/dist/lib/importers/doppler.test.d.ts.map +1 -0
- package/dist/lib/importers/doppler.test.js +162 -0
- package/dist/lib/importers/doppler.test.js.map +1 -0
- package/dist/locales/en.json +110 -5
- package/dist/locales/es.json +110 -5
- package/dist/locales/pt-BR.json +143 -50
- package/dist/utils.d.ts +15 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +46 -0
- package/dist/utils.js.map +1 -1
- package/package.json +11 -13
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest";
|
|
2
|
+
import { DopplerClient, parseConfigMap, planMigration, toEnvshedSlug, isValidSlug, } from "./doppler.js";
|
|
3
|
+
function mockFetch(handler) {
|
|
4
|
+
return ((input, init) => {
|
|
5
|
+
const url = typeof input === "string" ? input : input.toString();
|
|
6
|
+
const headers = (init?.headers ?? {});
|
|
7
|
+
return Promise.resolve(handler({ url, headers }));
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
describe("toEnvshedSlug", () => {
|
|
11
|
+
it("lowercases and replaces underscores with hyphens", () => {
|
|
12
|
+
expect(toEnvshedSlug("Dev_Personal_Alice")).toBe("dev-personal-alice");
|
|
13
|
+
});
|
|
14
|
+
it("strips invalid characters", () => {
|
|
15
|
+
expect(toEnvshedSlug("My App!")).toBe("my-app");
|
|
16
|
+
});
|
|
17
|
+
it("collapses repeated separators", () => {
|
|
18
|
+
expect(toEnvshedSlug("a__b c")).toBe("a-b-c");
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
describe("isValidSlug", () => {
|
|
22
|
+
it("accepts lowercase-hyphen slugs", () => {
|
|
23
|
+
expect(isValidSlug("my-project")).toBe(true);
|
|
24
|
+
expect(isValidSlug("api")).toBe(true);
|
|
25
|
+
});
|
|
26
|
+
it("rejects uppercase or invalid patterns", () => {
|
|
27
|
+
expect(isValidSlug("My-Project")).toBe(false);
|
|
28
|
+
expect(isValidSlug("-leading")).toBe(false);
|
|
29
|
+
expect(isValidSlug("trailing-")).toBe(false);
|
|
30
|
+
expect(isValidSlug("double--hyphen")).toBe(false);
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
describe("parseConfigMap", () => {
|
|
34
|
+
it("returns empty map for undefined", () => {
|
|
35
|
+
expect(parseConfigMap(undefined)).toEqual({});
|
|
36
|
+
});
|
|
37
|
+
it("parses comma-separated pairs", () => {
|
|
38
|
+
expect(parseConfigMap("prd=production,stg=staging")).toEqual({
|
|
39
|
+
prd: "production",
|
|
40
|
+
stg: "staging",
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
it("ignores malformed segments", () => {
|
|
44
|
+
expect(parseConfigMap("prd=production,badsegment, =nokey")).toEqual({ prd: "production" });
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
describe("DopplerClient", () => {
|
|
48
|
+
it("sends bearer token and parses projects list", async () => {
|
|
49
|
+
let seenAuth = "";
|
|
50
|
+
const client = new DopplerClient({
|
|
51
|
+
token: "dp.sa.TESTTOKEN",
|
|
52
|
+
fetchImpl: mockFetch(({ headers }) => {
|
|
53
|
+
seenAuth = headers["Authorization"] ?? headers["authorization"] ?? "";
|
|
54
|
+
return new Response(JSON.stringify({ projects: [{ name: "api", slug: "api" }, { name: "web", slug: "web" }] }), { status: 200, headers: { "content-type": "application/json" } });
|
|
55
|
+
}),
|
|
56
|
+
});
|
|
57
|
+
const projects = await client.listProjects();
|
|
58
|
+
expect(seenAuth).toBe("Bearer dp.sa.TESTTOKEN");
|
|
59
|
+
expect(projects).toEqual([{ name: "api", slug: "api" }, { name: "web", slug: "web" }]);
|
|
60
|
+
});
|
|
61
|
+
it("surfaces API errors with status and message", async () => {
|
|
62
|
+
const client = new DopplerClient({
|
|
63
|
+
token: "bad",
|
|
64
|
+
fetchImpl: mockFetch(() => new Response(JSON.stringify({ messages: ["Invalid token"] }), {
|
|
65
|
+
status: 401,
|
|
66
|
+
headers: { "content-type": "application/json" },
|
|
67
|
+
})),
|
|
68
|
+
});
|
|
69
|
+
await expect(client.listProjects()).rejects.toThrow(/Doppler 401.*Invalid token/);
|
|
70
|
+
});
|
|
71
|
+
it("extracts computed secrets", async () => {
|
|
72
|
+
const client = new DopplerClient({
|
|
73
|
+
token: "ok",
|
|
74
|
+
fetchImpl: mockFetch(() => new Response(JSON.stringify({
|
|
75
|
+
secrets: {
|
|
76
|
+
DATABASE_URL: { raw: "${project.DB}", computed: "postgres://prd" },
|
|
77
|
+
FOO: { raw: "bar", computed: "bar" },
|
|
78
|
+
},
|
|
79
|
+
}), { status: 200, headers: { "content-type": "application/json" } })),
|
|
80
|
+
});
|
|
81
|
+
const out = await client.fetchSecrets("api", "prd");
|
|
82
|
+
expect(out).toEqual({ DATABASE_URL: "postgres://prd", FOO: "bar" });
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
describe("planMigration", () => {
|
|
86
|
+
it("maps Doppler projects+configs to Envshed slugs and collects secrets", async () => {
|
|
87
|
+
const client = new DopplerClient({
|
|
88
|
+
token: "ok",
|
|
89
|
+
fetchImpl: mockFetch(({ url }) => {
|
|
90
|
+
if (url.includes("/v3/projects")) {
|
|
91
|
+
return new Response(JSON.stringify({ projects: [{ name: "api", slug: "api" }, { name: "Web_App", slug: "web-app" }] }), { status: 200 });
|
|
92
|
+
}
|
|
93
|
+
if (url.includes("/v3/configs/config/secrets")) {
|
|
94
|
+
const u = new URL(url);
|
|
95
|
+
const cfg = u.searchParams.get("config");
|
|
96
|
+
return new Response(JSON.stringify({ secrets: { K: { computed: `${cfg}-value` } } }), { status: 200 });
|
|
97
|
+
}
|
|
98
|
+
if (url.includes("/v3/configs")) {
|
|
99
|
+
const u = new URL(url);
|
|
100
|
+
const project = u.searchParams.get("project");
|
|
101
|
+
return new Response(JSON.stringify({
|
|
102
|
+
configs: [
|
|
103
|
+
{ name: "dev", project },
|
|
104
|
+
{ name: "prd_personal_alice", project },
|
|
105
|
+
],
|
|
106
|
+
}), { status: 200 });
|
|
107
|
+
}
|
|
108
|
+
return new Response("{}", { status: 500 });
|
|
109
|
+
}),
|
|
110
|
+
});
|
|
111
|
+
const { targets, secrets } = await planMigration(client, {});
|
|
112
|
+
expect(targets).toHaveLength(4);
|
|
113
|
+
expect(targets[0]).toMatchObject({ envshedProject: "api", envshedEnv: "dev" });
|
|
114
|
+
expect(targets[1]).toMatchObject({ envshedProject: "api", envshedEnv: "prd-personal-alice" });
|
|
115
|
+
expect(targets[2]).toMatchObject({ envshedProject: "web-app", envshedEnv: "dev" });
|
|
116
|
+
expect(secrets.get("api/dev")).toEqual({ K: "dev-value" });
|
|
117
|
+
expect(secrets.get("web-app/prd-personal-alice")).toEqual({ K: "prd_personal_alice-value" });
|
|
118
|
+
});
|
|
119
|
+
it("honors configMap renaming", async () => {
|
|
120
|
+
const client = new DopplerClient({
|
|
121
|
+
token: "ok",
|
|
122
|
+
fetchImpl: mockFetch(({ url }) => {
|
|
123
|
+
if (url.includes("/v3/projects")) {
|
|
124
|
+
return new Response(JSON.stringify({ projects: [{ name: "api", slug: "api" }] }), { status: 200 });
|
|
125
|
+
}
|
|
126
|
+
if (url.includes("/v3/configs/config/secrets")) {
|
|
127
|
+
return new Response(JSON.stringify({ secrets: {} }), { status: 200 });
|
|
128
|
+
}
|
|
129
|
+
if (url.includes("/v3/configs")) {
|
|
130
|
+
return new Response(JSON.stringify({ configs: [{ name: "prd", project: "api" }] }), { status: 200 });
|
|
131
|
+
}
|
|
132
|
+
return new Response("{}", { status: 500 });
|
|
133
|
+
}),
|
|
134
|
+
});
|
|
135
|
+
const { targets } = await planMigration(client, { configMap: { prd: "production" } });
|
|
136
|
+
expect(targets[0]).toMatchObject({ envshedEnv: "production", dopplerConfig: "prd" });
|
|
137
|
+
});
|
|
138
|
+
it("filters by doppler project", async () => {
|
|
139
|
+
let listedProjects = false;
|
|
140
|
+
const client = new DopplerClient({
|
|
141
|
+
token: "ok",
|
|
142
|
+
fetchImpl: mockFetch(({ url }) => {
|
|
143
|
+
if (url.includes("/v3/projects")) {
|
|
144
|
+
listedProjects = true;
|
|
145
|
+
return new Response(JSON.stringify({ projects: [] }), { status: 200 });
|
|
146
|
+
}
|
|
147
|
+
if (url.includes("/v3/configs/config/secrets")) {
|
|
148
|
+
return new Response(JSON.stringify({ secrets: {} }), { status: 200 });
|
|
149
|
+
}
|
|
150
|
+
if (url.includes("/v3/configs")) {
|
|
151
|
+
return new Response(JSON.stringify({ configs: [{ name: "prd", project: "api" }] }), { status: 200 });
|
|
152
|
+
}
|
|
153
|
+
return new Response("{}", { status: 500 });
|
|
154
|
+
}),
|
|
155
|
+
});
|
|
156
|
+
const { targets } = await planMigration(client, { dopplerProjectFilter: "api" });
|
|
157
|
+
expect(listedProjects).toBe(false);
|
|
158
|
+
expect(targets).toHaveLength(1);
|
|
159
|
+
expect(targets[0].dopplerProject).toBe("api");
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
//# sourceMappingURL=doppler.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doppler.test.js","sourceRoot":"","sources":["../../../src/lib/importers/doppler.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACL,aAAa,EACb,cAAc,EACd,aAAa,EACb,aAAa,EACb,WAAW,GACZ,MAAM,cAAc,CAAC;AAItB,SAAS,SAAS,CAAC,OAA0D;IAC3E,OAAO,CAAC,CAAC,KAAmB,EAAE,IAAkB,EAAE,EAAE;QAClD,MAAM,GAAG,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QACjE,MAAM,OAAO,GAAG,CAAC,IAAI,EAAE,OAAO,IAAI,EAAE,CAA2B,CAAC;QAChE,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IACpD,CAAC,CAAiB,CAAC;AACrB,CAAC;AAED,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;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Aa,CAAC,EAAE,CAAC;oBAChC,OAAO,IAAI,QAAQ,CACjB,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAC9D,EAAE,MAAM,EAAE,GAAG,EAAE,CAChB,CAAC;gBACJ,CAAC;gBACD,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;YAC7C,CAAC,CAAC;SACH,CAAC,CAAC;QAEH,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,aAAa,CAAC,MAAM,EAAE,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAAC,CAAC;QACjF,MAAM,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnC,MAAM,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAChC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/locales/en.json
CHANGED
|
@@ -96,7 +96,9 @@
|
|
|
96
96
|
"placeholderConfigHint_other": "Click the link below to configure each value in the dashboard.",
|
|
97
97
|
"setOverride": "Set override",
|
|
98
98
|
"placeholderPullAgain": "After setting your values, run envshed pull again to update your local env file.",
|
|
99
|
-
"envChanged": "Environment changed: {{count}} update(s) since your last pull (v{{from}} → v{{to}})"
|
|
99
|
+
"envChanged": "Environment changed: {{count}} update(s) since your last pull (v{{from}} → v{{to}})",
|
|
100
|
+
"disabledSkipped_one": "{{count}} disabled secret skipped",
|
|
101
|
+
"disabledSkipped_other": "{{count}} disabled secrets skipped"
|
|
100
102
|
},
|
|
101
103
|
"push": {
|
|
102
104
|
"description": "Push secrets from a .env file",
|
|
@@ -156,7 +158,9 @@
|
|
|
156
158
|
"watchRestarting": "Secret version {{version}} detected — restarting...",
|
|
157
159
|
"watchRateLimit": "Rate limited — backing off for {{nextSec}}s",
|
|
158
160
|
"watchPollError": "Poll error ({{status}}) — will retry",
|
|
159
|
-
"watchPollFailed": "Poll failed: {{message}} — will retry"
|
|
161
|
+
"watchPollFailed": "Poll failed: {{message}} — will retry",
|
|
162
|
+
"disabledSkipped_one": "{{count}} disabled secret skipped",
|
|
163
|
+
"disabledSkipped_other": "{{count}} disabled secrets skipped"
|
|
160
164
|
},
|
|
161
165
|
"orgs": {
|
|
162
166
|
"description": "List organizations",
|
|
@@ -220,6 +224,7 @@
|
|
|
220
224
|
"cleared": "Token cleared.",
|
|
221
225
|
"showDescription": "Show current token (masked)",
|
|
222
226
|
"noToken": "No token set.",
|
|
227
|
+
"ignoredProjectApiUrl": "Ignoring apiUrl \"{{url}}\" from project config: only loopback URLs are allowed there. Set a remote API URL in ~/.envshed/config.json or ENVSHED_API_URL instead.",
|
|
223
228
|
"createServiceDesc": "Create a service token for an organization",
|
|
224
229
|
"listServiceDesc": "List service tokens for an organization",
|
|
225
230
|
"revokeServiceDesc": "Revoke a service token",
|
|
@@ -471,6 +476,8 @@
|
|
|
471
476
|
"getDescription": "Get the value of a secret by key",
|
|
472
477
|
"setDescription": "Set or update a secret value",
|
|
473
478
|
"deleteDescription": "Delete a secret by key",
|
|
479
|
+
"disableDescription": "Disable a secret (hide it from consumption without deleting it)",
|
|
480
|
+
"enableDescription": "Re-enable a previously disabled secret",
|
|
474
481
|
"keyArg": "Secret key name",
|
|
475
482
|
"placeholderOption": "Mark the secret as a placeholder",
|
|
476
483
|
"ttyWarning": "Tip: pipe to clipboard or file to avoid terminal history exposure",
|
|
@@ -482,6 +489,12 @@
|
|
|
482
489
|
"deleted": "Secret {{key}} deleted",
|
|
483
490
|
"deleteConfirm": "Delete secret {{key}}?",
|
|
484
491
|
"deleteCancelled": "Delete cancelled",
|
|
492
|
+
"disabling": "Disabling secret...",
|
|
493
|
+
"enabling": "Enabling secret...",
|
|
494
|
+
"disabled": "Secret {{key}} disabled",
|
|
495
|
+
"enabled": "Secret {{key}} enabled",
|
|
496
|
+
"disableConfirm": "Disable secret {{key}}? It will be hidden from consumption until re-enabled.",
|
|
497
|
+
"disableCancelled": "Disable cancelled",
|
|
485
498
|
"failed": "Failed: {{message}}",
|
|
486
499
|
"override": {
|
|
487
500
|
"description": "Manage personal secret overrides",
|
|
@@ -587,11 +600,19 @@
|
|
|
587
600
|
"headActive": "Active"
|
|
588
601
|
},
|
|
589
602
|
"import": {
|
|
590
|
-
"description": "Import secrets from a file (.env, JSON, YAML, CSV)",
|
|
591
|
-
"fileArg": "File to import (.env, .json, .yaml, .yml, .csv)",
|
|
603
|
+
"description": "Import secrets from a file (.env, JSON, YAML, CSV) or a source like Doppler",
|
|
604
|
+
"fileArg": "File to import (.env, .json, .yaml, .yml, .csv). Omit when using --from.",
|
|
592
605
|
"formatOption": "File format: env, json, yaml, csv (auto-detected from extension if omitted)",
|
|
593
606
|
"forceOption": "Overwrite without confirmation",
|
|
607
|
+
"fromOption": "Migrate from an external source (currently: doppler)",
|
|
608
|
+
"tokenOption": "API token for the --from source (Doppler service account token)",
|
|
609
|
+
"dopplerProjectOption": "Doppler project to migrate (omit to migrate every accessible project)",
|
|
610
|
+
"dopplerConfigOption": "Doppler config to migrate (requires --doppler-project)",
|
|
611
|
+
"dopplerApiUrlOption": "Override the Doppler API base URL (defaults to https://api.doppler.com)",
|
|
612
|
+
"configMapOption": "Rename Doppler configs during import (e.g. \"prd=production,stg=staging\")",
|
|
613
|
+
"dryRunOption": "Print the migration plan without writing anything",
|
|
594
614
|
"reading": "Reading {{file}}...",
|
|
615
|
+
"fileRequired": "Missing <file>. Pass a file path or use --from <source>.",
|
|
595
616
|
"fileNotFound": "File not found: {{file}}",
|
|
596
617
|
"noSecrets": "No secrets found in {{file}}.",
|
|
597
618
|
"detectFailed": "Cannot detect format for \"{{file}}\". Use --format env|json|yaml|csv.",
|
|
@@ -604,6 +625,90 @@
|
|
|
604
625
|
"importing": "Importing secrets...",
|
|
605
626
|
"imported": "Imported {{total}} secrets to {{target}}: {{new}} new, {{modified}} modified, {{unchanged}} unchanged.",
|
|
606
627
|
"importFailed": "Import failed: {{message}}",
|
|
607
|
-
"forceWarning": "Warning: --force flag active. Overwriting existing secrets without confirmation."
|
|
628
|
+
"forceWarning": "Warning: --force flag active. Overwriting existing secrets without confirmation.",
|
|
629
|
+
"unsupportedSource": "Unsupported import source \"{{source}}\". Supported: doppler.",
|
|
630
|
+
"tokenRequired": "Missing --token. Pass a Doppler service account token or set DOPPLER_TOKEN.",
|
|
631
|
+
"dopplerConfigNeedsProject": "--doppler-config requires --doppler-project.",
|
|
632
|
+
"dopplerPlanning": "Planning Doppler migration...",
|
|
633
|
+
"dopplerFetchFailed": "Doppler API request failed: {{message}}",
|
|
634
|
+
"dopplerNoConfigs": "No Doppler configs matched the filters. Nothing to import.",
|
|
635
|
+
"dopplerPlanned": "Planned: {{projects}} project(s), {{envs}} environment(s), {{secrets}} secret(s).",
|
|
636
|
+
"dopplerDryRun": "Dry run — no changes written.",
|
|
637
|
+
"dopplerPushing": "Migrating {{target}}...",
|
|
638
|
+
"dopplerCreatedProject": "Created Envshed project \"{{project}}\"...",
|
|
639
|
+
"dopplerCreatedEnv": "Created Envshed environment \"{{env}}\"...",
|
|
640
|
+
"dopplerPushed": "Migrated {{count}} secrets into {{target}}.",
|
|
641
|
+
"dopplerTargetFailed": "Failed to migrate {{target}}: {{message}}",
|
|
642
|
+
"dopplerDone": "Doppler migration complete: {{envs}} environment(s), {{new}} new, {{modified}} modified, {{unchanged}} unchanged."
|
|
643
|
+
},
|
|
644
|
+
"share": {
|
|
645
|
+
"description": "Share secrets through expiring, encrypted links",
|
|
646
|
+
"createDescription": "Create a share link for secrets in an environment (all secrets when no keys are given)",
|
|
647
|
+
"listDescription": "List share links in an organization",
|
|
648
|
+
"revokeDescription": "Revoke a share link",
|
|
649
|
+
"openDescription": "Open a share link and print its secrets (no login required)",
|
|
650
|
+
"keysArg": "Secret keys to share (default: every secret in the environment)",
|
|
651
|
+
"urlArg": "Share link URL (or <id>#<key>)",
|
|
652
|
+
"idArg": "Share link ID",
|
|
653
|
+
"expiresOption": "Lifetime, e.g. 15m, 1h, 24h, 7d (max 30d)",
|
|
654
|
+
"burnOption": "One-time link: self-destructs after the first open",
|
|
655
|
+
"maxViewsOption": "Maximum number of opens",
|
|
656
|
+
"passwordOption": "Protect the link with a password (prompted, or read from stdin when piped)",
|
|
657
|
+
"noteOption": "Note shown to the recipient",
|
|
658
|
+
"fileOption": "Write the secrets to a file (mode 0600) instead of stdout",
|
|
659
|
+
"invalidDuration": "Invalid duration \"{{value}}\". Use minutes or a suffix: 15m, 2h, 7d.",
|
|
660
|
+
"invalidMaxViews": "Invalid --max-views value. Use a whole number of at least 1.",
|
|
661
|
+
"invalidUrl": "Not a share link. Expected https://app.envshed.com/s/<id>#<key>.",
|
|
662
|
+
"confirmAll": "Share ALL secrets in {{env}}?",
|
|
663
|
+
"confirmBurn": "This is a one-time link. Opening it destroys it. Continue?",
|
|
664
|
+
"cancelled": "Cancelled.",
|
|
665
|
+
"passwordPrompt": "Link password:",
|
|
666
|
+
"creating": "Creating share link...",
|
|
667
|
+
"created": "Share link created",
|
|
668
|
+
"urlLabel": "URL",
|
|
669
|
+
"expiresLabel": "Expires",
|
|
670
|
+
"viewsLabel": "Views",
|
|
671
|
+
"viewsOneTime": "one-time (destroyed after the first open)",
|
|
672
|
+
"viewsUnlimited": "unlimited until expiry",
|
|
673
|
+
"viewsMax": "max {{count}}",
|
|
674
|
+
"passwordLabel": "Password",
|
|
675
|
+
"passwordYes": "required",
|
|
676
|
+
"passwordNo": "none",
|
|
677
|
+
"skipped": "Skipped (no shareable value): {{keys}}",
|
|
678
|
+
"copyHint": "Copy the URL now: it cannot be shown again.",
|
|
679
|
+
"openHint": "Recipients without a browser can run: envshed share open \"{{url}}\"",
|
|
680
|
+
"fetching": "Fetching share links...",
|
|
681
|
+
"noLinks": "No share links found.",
|
|
682
|
+
"headId": "ID",
|
|
683
|
+
"headSecrets": "Secrets",
|
|
684
|
+
"headStatus": "Status",
|
|
685
|
+
"headViews": "Views",
|
|
686
|
+
"headExpires": "Expires",
|
|
687
|
+
"headBy": "Created by",
|
|
688
|
+
"statusActive": "active",
|
|
689
|
+
"statusExpired": "expired",
|
|
690
|
+
"statusExhausted": "used up",
|
|
691
|
+
"statusRevoked": "revoked",
|
|
692
|
+
"confirmRevoke": "Revoke share link {{id}}? Anyone holding it loses access immediately.",
|
|
693
|
+
"revoking": "Revoking share link...",
|
|
694
|
+
"revoked": "Share link revoked.",
|
|
695
|
+
"checking": "Checking share link...",
|
|
696
|
+
"opening": "Opening share link...",
|
|
697
|
+
"savedToFile_one": "Saved 1 secret to {{file}}",
|
|
698
|
+
"savedToFile_other": "Saved {{count}} secrets to {{file}}",
|
|
699
|
+
"ttyWarning": "Tip: use --file or pipe the output to keep secrets out of your terminal history",
|
|
700
|
+
"burnedNotice": "This one-time link has now been destroyed.",
|
|
701
|
+
"remainingViews_one": "{{count}} view left on this link.",
|
|
702
|
+
"remainingViews_other": "{{count}} views left on this link.",
|
|
703
|
+
"errorNotFound": "This share link is invalid or has been removed.",
|
|
704
|
+
"errorExpired": "This share link has expired.",
|
|
705
|
+
"errorExhausted": "This share link has already been opened the maximum number of times.",
|
|
706
|
+
"errorRevoked": "This share link was revoked by its owner.",
|
|
707
|
+
"errorLocked": "This share link was locked after too many wrong password attempts.",
|
|
708
|
+
"errorInvalidPassword": "Wrong password.",
|
|
709
|
+
"errorPasswordRequired": "This share link requires a password.",
|
|
710
|
+
"errorRateLimited": "Too many attempts. Wait a minute and try again.",
|
|
711
|
+
"errorGeneric": "Could not open the share link.",
|
|
712
|
+
"failed": "Failed: {{message}}"
|
|
608
713
|
}
|
|
609
714
|
}
|
package/dist/locales/es.json
CHANGED
|
@@ -96,7 +96,9 @@
|
|
|
96
96
|
"placeholderConfigHint_other": "Haz clic en el enlace para configurar cada valor en el panel.",
|
|
97
97
|
"setOverride": "Establecer valor",
|
|
98
98
|
"placeholderPullAgain": "Después de establecer tus valores, ejecuta envshed pull de nuevo para actualizar tu archivo env local.",
|
|
99
|
-
"envChanged": "Entorno modificado: {{count}} actualización(es) desde tu último pull (v{{from}} → v{{to}})"
|
|
99
|
+
"envChanged": "Entorno modificado: {{count}} actualización(es) desde tu último pull (v{{from}} → v{{to}})",
|
|
100
|
+
"disabledSkipped_one": "{{count}} secreto deshabilitado omitido",
|
|
101
|
+
"disabledSkipped_other": "{{count}} secretos deshabilitados omitidos"
|
|
100
102
|
},
|
|
101
103
|
"push": {
|
|
102
104
|
"description": "Subir secretos desde un archivo .env",
|
|
@@ -156,7 +158,9 @@
|
|
|
156
158
|
"watchRestarting": "Versión {{version}} de secretos detectada — reiniciando...",
|
|
157
159
|
"watchRateLimit": "Límite de tasa alcanzado — esperando {{nextSec}}s",
|
|
158
160
|
"watchPollError": "Error de sondeo ({{status}}) — reintentando",
|
|
159
|
-
"watchPollFailed": "Sondeo fallido: {{message}} — reintentando"
|
|
161
|
+
"watchPollFailed": "Sondeo fallido: {{message}} — reintentando",
|
|
162
|
+
"disabledSkipped_one": "{{count}} secreto deshabilitado omitido",
|
|
163
|
+
"disabledSkipped_other": "{{count}} secretos deshabilitados omitidos"
|
|
160
164
|
},
|
|
161
165
|
"orgs": {
|
|
162
166
|
"description": "Listar organizaciones",
|
|
@@ -220,6 +224,7 @@
|
|
|
220
224
|
"cleared": "Token borrado.",
|
|
221
225
|
"showDescription": "Mostrar token actual (enmascarado)",
|
|
222
226
|
"noToken": "No hay token establecido.",
|
|
227
|
+
"ignoredProjectApiUrl": "Ignorando apiUrl \"{{url}}\" de la config del proyecto: solo se permiten URLs de loopback ahí. Define una URL de API remota en ~/.envshed/config.json o ENVSHED_API_URL.",
|
|
223
228
|
"createServiceDesc": "Crear un token de servicio para una organización",
|
|
224
229
|
"listServiceDesc": "Listar tokens de servicio de una organización",
|
|
225
230
|
"revokeServiceDesc": "Revocar un token de servicio",
|
|
@@ -557,11 +562,19 @@
|
|
|
557
562
|
"headActive": "Activo"
|
|
558
563
|
},
|
|
559
564
|
"import": {
|
|
560
|
-
"description": "Importar secretos desde un archivo (.env, JSON, YAML, CSV)",
|
|
561
|
-
"fileArg": "Archivo a importar (.env, .json, .yaml, .yml, .csv)",
|
|
565
|
+
"description": "Importar secretos desde un archivo (.env, JSON, YAML, CSV) o una fuente externa como Doppler",
|
|
566
|
+
"fileArg": "Archivo a importar (.env, .json, .yaml, .yml, .csv). Omítelo al usar --from.",
|
|
562
567
|
"formatOption": "Formato del archivo: env, json, yaml, csv (detectado automáticamente si se omite)",
|
|
563
568
|
"forceOption": "Sobrescribir sin confirmación",
|
|
569
|
+
"fromOption": "Migrar desde una fuente externa (actualmente: doppler)",
|
|
570
|
+
"tokenOption": "Token para la fuente de --from (token de cuenta de servicio de Doppler)",
|
|
571
|
+
"dopplerProjectOption": "Proyecto de Doppler a migrar (omite para migrar todos los accesibles)",
|
|
572
|
+
"dopplerConfigOption": "Config de Doppler a migrar (requiere --doppler-project)",
|
|
573
|
+
"dopplerApiUrlOption": "URL base de la API de Doppler (por defecto https://api.doppler.com)",
|
|
574
|
+
"configMapOption": "Renombrar configs de Doppler al importar (ej. \"prd=production,stg=staging\")",
|
|
575
|
+
"dryRunOption": "Mostrar el plan de migración sin escribir nada",
|
|
564
576
|
"reading": "Leyendo {{file}}...",
|
|
577
|
+
"fileRequired": "Falta <archivo>. Pasa una ruta o usa --from <fuente>.",
|
|
565
578
|
"fileNotFound": "Archivo no encontrado: {{file}}",
|
|
566
579
|
"noSecrets": "No se encontraron secretos en {{file}}.",
|
|
567
580
|
"detectFailed": "No se puede detectar el formato de \"{{file}}\". Usa --format env|json|yaml|csv.",
|
|
@@ -574,13 +587,29 @@
|
|
|
574
587
|
"importing": "Importando secretos...",
|
|
575
588
|
"imported": "Importados {{total}} secretos a {{target}}: {{new}} nuevos, {{modified}} modificados, {{unchanged}} sin cambios.",
|
|
576
589
|
"importFailed": "Error al importar: {{message}}",
|
|
577
|
-
"forceWarning": "Advertencia: --force activo. Sobrescribiendo secretos existentes sin confirmación."
|
|
590
|
+
"forceWarning": "Advertencia: --force activo. Sobrescribiendo secretos existentes sin confirmación.",
|
|
591
|
+
"unsupportedSource": "Fuente de importación no soportada \"{{source}}\". Soportadas: doppler.",
|
|
592
|
+
"tokenRequired": "Falta --token. Pasa un token de cuenta de servicio de Doppler o define DOPPLER_TOKEN.",
|
|
593
|
+
"dopplerConfigNeedsProject": "--doppler-config requiere --doppler-project.",
|
|
594
|
+
"dopplerPlanning": "Planeando migración desde Doppler...",
|
|
595
|
+
"dopplerFetchFailed": "Error al llamar a la API de Doppler: {{message}}",
|
|
596
|
+
"dopplerNoConfigs": "Ningún config de Doppler coincide con los filtros. Nada que importar.",
|
|
597
|
+
"dopplerPlanned": "Plan: {{projects}} proyecto(s), {{envs}} entorno(s), {{secrets}} secreto(s).",
|
|
598
|
+
"dopplerDryRun": "Simulación — no se escribió nada.",
|
|
599
|
+
"dopplerPushing": "Migrando {{target}}...",
|
|
600
|
+
"dopplerCreatedProject": "Proyecto de Envshed creado \"{{project}}\"...",
|
|
601
|
+
"dopplerCreatedEnv": "Entorno de Envshed creado \"{{env}}\"...",
|
|
602
|
+
"dopplerPushed": "Migrados {{count}} secretos a {{target}}.",
|
|
603
|
+
"dopplerTargetFailed": "Error al migrar {{target}}: {{message}}",
|
|
604
|
+
"dopplerDone": "Migración de Doppler completada: {{envs}} entorno(s), {{new}} nuevos, {{modified}} modificados, {{unchanged}} sin cambios."
|
|
578
605
|
},
|
|
579
606
|
"secret": {
|
|
580
607
|
"description": "Gestionar secretos individuales",
|
|
581
608
|
"getDescription": "Obtener el valor de un secreto por clave",
|
|
582
609
|
"setDescription": "Establecer o actualizar el valor de un secreto",
|
|
583
610
|
"deleteDescription": "Eliminar un secreto por clave",
|
|
611
|
+
"disableDescription": "Deshabilitar un secreto (ocultarlo del consumo sin eliminarlo)",
|
|
612
|
+
"enableDescription": "Volver a habilitar un secreto deshabilitado",
|
|
584
613
|
"keyArg": "Nombre de la clave del secreto",
|
|
585
614
|
"placeholderOption": "Marcar el secreto como marcador de posición",
|
|
586
615
|
"ttyWarning": "Consejo: redirige a portapapeles o archivo para evitar exposición en el historial del terminal",
|
|
@@ -592,6 +621,12 @@
|
|
|
592
621
|
"deleted": "Secreto {{key}} eliminado",
|
|
593
622
|
"deleteConfirm": "¿Eliminar secreto {{key}}?",
|
|
594
623
|
"deleteCancelled": "Eliminación cancelada",
|
|
624
|
+
"disabling": "Deshabilitando secreto...",
|
|
625
|
+
"enabling": "Habilitando secreto...",
|
|
626
|
+
"disabled": "Secreto {{key}} deshabilitado",
|
|
627
|
+
"enabled": "Secreto {{key}} habilitado",
|
|
628
|
+
"disableConfirm": "¿Deshabilitar secreto {{key}}? Se ocultará del consumo hasta volver a habilitarlo.",
|
|
629
|
+
"disableCancelled": "Deshabilitación cancelada",
|
|
595
630
|
"failed": "Falló: {{message}}",
|
|
596
631
|
"override": {
|
|
597
632
|
"description": "Gestionar anulaciones personales de secretos",
|
|
@@ -605,5 +640,75 @@
|
|
|
605
640
|
"removeConfirm": "¿Eliminar anulación para {{key}}?",
|
|
606
641
|
"removeCancelled": "Eliminación cancelada"
|
|
607
642
|
}
|
|
643
|
+
},
|
|
644
|
+
"share": {
|
|
645
|
+
"description": "Compartir secretos mediante enlaces cifrados con caducidad",
|
|
646
|
+
"createDescription": "Crear un enlace compartido para secretos de un entorno (todos los secretos si no se indican claves)",
|
|
647
|
+
"listDescription": "Listar enlaces compartidos de una organización",
|
|
648
|
+
"revokeDescription": "Revocar un enlace compartido",
|
|
649
|
+
"openDescription": "Abrir un enlace compartido e imprimir sus secretos (no requiere inicio de sesión)",
|
|
650
|
+
"keysArg": "Claves de secretos a compartir (por defecto: todos los secretos del entorno)",
|
|
651
|
+
"urlArg": "URL del enlace compartido (o <id>#<key>)",
|
|
652
|
+
"idArg": "ID del enlace compartido",
|
|
653
|
+
"expiresOption": "Duración, p. ej. 15m, 1h, 24h, 7d (máx. 30d)",
|
|
654
|
+
"burnOption": "Enlace de un solo uso: se autodestruye tras la primera apertura",
|
|
655
|
+
"maxViewsOption": "Número máximo de aperturas",
|
|
656
|
+
"passwordOption": "Proteger el enlace con contraseña (se solicita, o se lee de stdin si viene por tubería)",
|
|
657
|
+
"noteOption": "Nota que se muestra al destinatario",
|
|
658
|
+
"fileOption": "Escribir los secretos en un archivo (modo 0600) en lugar de stdout",
|
|
659
|
+
"invalidDuration": "Duración inválida \"{{value}}\". Usa minutos o un sufijo: 15m, 2h, 7d.",
|
|
660
|
+
"invalidMaxViews": "Valor de --max-views inválido. Usa un número entero de al menos 1.",
|
|
661
|
+
"invalidUrl": "No es un enlace compartido. Se esperaba https://app.envshed.com/s/<id>#<key>.",
|
|
662
|
+
"confirmAll": "¿Compartir TODOS los secretos de {{env}}?",
|
|
663
|
+
"confirmBurn": "Este enlace es de un solo uso. Abrirlo lo destruye. ¿Continuar?",
|
|
664
|
+
"cancelled": "Cancelado.",
|
|
665
|
+
"passwordPrompt": "Contraseña del enlace:",
|
|
666
|
+
"creating": "Creando enlace compartido...",
|
|
667
|
+
"created": "Enlace compartido creado",
|
|
668
|
+
"urlLabel": "URL",
|
|
669
|
+
"expiresLabel": "Caduca",
|
|
670
|
+
"viewsLabel": "Aperturas",
|
|
671
|
+
"viewsOneTime": "un solo uso (se destruye tras la primera apertura)",
|
|
672
|
+
"viewsUnlimited": "ilimitadas hasta la caducidad",
|
|
673
|
+
"viewsMax": "máx. {{count}}",
|
|
674
|
+
"passwordLabel": "Contraseña",
|
|
675
|
+
"passwordYes": "requerida",
|
|
676
|
+
"passwordNo": "ninguna",
|
|
677
|
+
"skipped": "Omitidos (sin valor compartible): {{keys}}",
|
|
678
|
+
"copyHint": "Copia la URL ahora: no se puede mostrar de nuevo.",
|
|
679
|
+
"openHint": "Los destinatarios sin navegador pueden ejecutar: envshed share open \"{{url}}\"",
|
|
680
|
+
"fetching": "Obteniendo enlaces compartidos...",
|
|
681
|
+
"noLinks": "No se encontraron enlaces compartidos.",
|
|
682
|
+
"headId": "ID",
|
|
683
|
+
"headSecrets": "Secretos",
|
|
684
|
+
"headStatus": "Estado",
|
|
685
|
+
"headViews": "Aperturas",
|
|
686
|
+
"headExpires": "Caduca",
|
|
687
|
+
"headBy": "Creado por",
|
|
688
|
+
"statusActive": "activo",
|
|
689
|
+
"statusExpired": "caducado",
|
|
690
|
+
"statusExhausted": "agotado",
|
|
691
|
+
"statusRevoked": "revocado",
|
|
692
|
+
"confirmRevoke": "¿Revocar el enlace compartido {{id}}? Quien lo tenga perderá el acceso de inmediato.",
|
|
693
|
+
"revoking": "Revocando enlace compartido...",
|
|
694
|
+
"revoked": "Enlace compartido revocado.",
|
|
695
|
+
"checking": "Comprobando enlace compartido...",
|
|
696
|
+
"opening": "Abriendo enlace compartido...",
|
|
697
|
+
"savedToFile_one": "Se guardó 1 secreto en {{file}}",
|
|
698
|
+
"savedToFile_other": "Se guardaron {{count}} secretos en {{file}}",
|
|
699
|
+
"ttyWarning": "Consejo: usa --file o redirige la salida para que los secretos no queden en el historial de la terminal",
|
|
700
|
+
"burnedNotice": "Este enlace de un solo uso ya se ha destruido.",
|
|
701
|
+
"remainingViews_one": "Queda {{count}} apertura en este enlace.",
|
|
702
|
+
"remainingViews_other": "Quedan {{count}} aperturas en este enlace.",
|
|
703
|
+
"errorNotFound": "Este enlace compartido no es válido o se ha eliminado.",
|
|
704
|
+
"errorExpired": "Este enlace compartido ha caducado.",
|
|
705
|
+
"errorExhausted": "Este enlace compartido ya se abrió el número máximo de veces.",
|
|
706
|
+
"errorRevoked": "El propietario revocó este enlace compartido.",
|
|
707
|
+
"errorLocked": "Este enlace compartido se bloqueó tras demasiados intentos de contraseña incorrectos.",
|
|
708
|
+
"errorInvalidPassword": "Contraseña incorrecta.",
|
|
709
|
+
"errorPasswordRequired": "Este enlace compartido requiere contraseña.",
|
|
710
|
+
"errorRateLimited": "Demasiados intentos. Espera un minuto e inténtalo de nuevo.",
|
|
711
|
+
"errorGeneric": "No se pudo abrir el enlace compartido.",
|
|
712
|
+
"failed": "Falló: {{message}}"
|
|
608
713
|
}
|
|
609
714
|
}
|