envilder 0.9.4 β 0.11.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 +35 -20
- package/ROADMAP.md +2 -2
- package/docs/changelogs/cli.md +43 -4
- package/docs/changelogs/gha.md +28 -0
- package/docs/changelogs/sdk-dotnet.md +70 -1
- package/docs/changelogs/sdk-nodejs.md +36 -0
- package/docs/changelogs/sdk-python.md +18 -2
- package/lib/envilder/apps/cli/Cli.js +3 -3
- package/lib/envilder/apps/cli/Cli.js.map +1 -1
- package/lib/envilder/core/infrastructure/variableStore/FileVariableStore.d.ts.map +1 -1
- package/lib/envilder/core/infrastructure/variableStore/FileVariableStore.js +7 -1
- package/lib/envilder/core/infrastructure/variableStore/FileVariableStore.js.map +1 -1
- package/lib/sdks/nodejs/src/application/envilder.d.ts +3 -3
- package/lib/sdks/nodejs/src/application/envilder.js +3 -3
- package/lib/sdks/nodejs/src/application/map-file-parser.d.ts +2 -0
- package/lib/sdks/nodejs/src/application/map-file-parser.d.ts.map +1 -1
- package/lib/sdks/nodejs/src/application/map-file-parser.js +33 -24
- package/lib/sdks/nodejs/src/application/map-file-parser.js.map +1 -1
- package/package.json +27 -36
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ them from AWS SSM or Azure Key Vault. The same mapping file works in local dev (
|
|
|
28
28
|
CI/CD (GitHub Action), and application startup (runtime SDKs).
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
envilder --map=
|
|
31
|
+
envilder --map=envilder.json --envfile=.env
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
No SaaS middleman. No vendor lock-in. Secrets stay in your cloud.
|
|
@@ -47,7 +47,7 @@ No SaaS middleman. No vendor lock-in. Secrets stay in your cloud.
|
|
|
47
47
|
|
|
48
48
|
## How Envilder solves it
|
|
49
49
|
|
|
50
|
-
- π **One mapping file for everything.** A single `
|
|
50
|
+
- π **One mapping file for everything.** A single `envilder.json` defines what secrets your app
|
|
51
51
|
needs. Git-versioned, PR-reviewable, the same across every environment.
|
|
52
52
|
- β‘ **Works everywhere your code runs.** CLI for local dev, GitHub Action for CI/CD, runtime SDKs
|
|
53
53
|
for application startup. Same file, same result.
|
|
@@ -79,10 +79,11 @@ Watch how easy it is to automate your .env management in less than 1 minute:
|
|
|
79
79
|
|
|
80
80
|
### π Get Started (2 steps)
|
|
81
81
|
|
|
82
|
-
**1. Create a mapping file** (`
|
|
82
|
+
**1. Create a mapping file** (`envilder.json`):
|
|
83
83
|
|
|
84
84
|
```json
|
|
85
85
|
{
|
|
86
|
+
"$schema": "https://envilder.com/schema/map-file.v1.json",
|
|
86
87
|
"DB_PASSWORD": "/my-app/db/password",
|
|
87
88
|
"API_KEY": "/my-app/api-key"
|
|
88
89
|
}
|
|
@@ -91,7 +92,7 @@ Watch how easy it is to automate your .env management in less than 1 minute:
|
|
|
91
92
|
**2. Generate your `.env` file:**
|
|
92
93
|
|
|
93
94
|
```bash
|
|
94
|
-
npx envilder --map=
|
|
95
|
+
npx envilder --map=envilder.json --envfile=.env
|
|
95
96
|
```
|
|
96
97
|
|
|
97
98
|
That's it. Your secrets are pulled from AWS SSM and written to `.env`.
|
|
@@ -108,7 +109,7 @@ npm install -g envilder
|
|
|
108
109
|
|
|
109
110
|
> π‘ **No install needed?** `npx envilder` works out of the box.
|
|
110
111
|
>
|
|
111
|
-
> **Requirements:** Node.js
|
|
112
|
+
> **Requirements:** Node.js v22.12+. AWS CLI or Azure CLI configured.
|
|
112
113
|
> See [full requirements](docs/requirements-installation.md).
|
|
113
114
|
|
|
114
115
|
### π€ GitHub Action
|
|
@@ -125,7 +126,7 @@ npm install -g envilder
|
|
|
125
126
|
- name: Pull secrets from AWS SSM
|
|
126
127
|
uses: macalbert/envilder/github-action@v0.8.0
|
|
127
128
|
with:
|
|
128
|
-
map-file:
|
|
129
|
+
map-file: envilder.json
|
|
129
130
|
env-file: .env
|
|
130
131
|
```
|
|
131
132
|
|
|
@@ -142,7 +143,7 @@ npm install -g envilder
|
|
|
142
143
|
- name: Pull secrets from Azure Key Vault
|
|
143
144
|
uses: macalbert/envilder/github-action@v0.8.0
|
|
144
145
|
with:
|
|
145
|
-
map-file:
|
|
146
|
+
map-file: envilder.json
|
|
146
147
|
env-file: .env
|
|
147
148
|
provider: azure
|
|
148
149
|
vault-url: ${{ secrets.AZURE_KEY_VAULT_URL }}
|
|
@@ -160,17 +161,22 @@ npm install -g envilder
|
|
|
160
161
|
|
|
161
162
|
## πΊοΈ Mapping File Format
|
|
162
163
|
|
|
163
|
-
The mapping file (`
|
|
164
|
+
The mapping file (`envilder.json`) is the core of Envilder. It's the single model that defines
|
|
164
165
|
what secrets your app needs and where they live in your cloud provider. The same file is used by
|
|
165
166
|
the CLI, the GitHub Action, and the runtime SDKs. You can optionally include a `$config` section
|
|
166
167
|
to declare which provider and settings to use.
|
|
167
168
|
|
|
169
|
+
Add `"$schema"` to enable IDE autocomplete, inline documentation, and validation for your map
|
|
170
|
+
files. The schema is published at
|
|
171
|
+
[envilder.com/schema/map-file.v1.json](https://envilder.com/schema/map-file.v1.json).
|
|
172
|
+
|
|
168
173
|
### Basic Format (AWS SSM, default)
|
|
169
174
|
|
|
170
175
|
When no `$config` is present, Envilder defaults to AWS SSM Parameter Store:
|
|
171
176
|
|
|
172
177
|
```json
|
|
173
178
|
{
|
|
179
|
+
"$schema": "https://envilder.com/schema/map-file.v1.json",
|
|
174
180
|
"API_KEY": "/myapp/prod/api-key",
|
|
175
181
|
"DB_PASSWORD": "/myapp/prod/db-password",
|
|
176
182
|
"SECRET_TOKEN": "/myapp/prod/secret-token"
|
|
@@ -188,6 +194,7 @@ and uses all other keys as secret mappings:
|
|
|
188
194
|
|
|
189
195
|
```json
|
|
190
196
|
{
|
|
197
|
+
"$schema": "https://envilder.com/schema/map-file.v1.json",
|
|
191
198
|
"$config": {
|
|
192
199
|
"provider": "aws",
|
|
193
200
|
"profile": "prod-account"
|
|
@@ -201,6 +208,7 @@ and uses all other keys as secret mappings:
|
|
|
201
208
|
|
|
202
209
|
```json
|
|
203
210
|
{
|
|
211
|
+
"$schema": "https://envilder.com/schema/map-file.v1.json",
|
|
204
212
|
"$config": {
|
|
205
213
|
"provider": "azure",
|
|
206
214
|
"vaultUrl": "https://my-vault.vault.azure.net"
|
|
@@ -234,10 +242,10 @@ This means you can set a default provider in `$config` and override it per invoc
|
|
|
234
242
|
|
|
235
243
|
```bash
|
|
236
244
|
# Uses $config from the map file
|
|
237
|
-
envilder --map=
|
|
245
|
+
envilder --map=envilder.json --envfile=.env
|
|
238
246
|
|
|
239
247
|
# Overrides provider and vault URL from the map file
|
|
240
|
-
envilder --provider=azure --vault-url=https://other-vault.vault.azure.net --map=
|
|
248
|
+
envilder --provider=azure --vault-url=https://other-vault.vault.azure.net --map=envilder.json --envfile=.env
|
|
241
249
|
```
|
|
242
250
|
|
|
243
251
|
---
|
|
@@ -261,17 +269,17 @@ Load secrets into `IConfiguration` or inject them into the process environment:
|
|
|
261
269
|
```csharp
|
|
262
270
|
// Option A: integrate with IConfiguration
|
|
263
271
|
var config = new ConfigurationBuilder()
|
|
264
|
-
.AddEnvilder("
|
|
272
|
+
.AddEnvilder("envilder.json")
|
|
265
273
|
.Build();
|
|
266
274
|
|
|
267
275
|
var dbPassword = config["DB_PASSWORD"];
|
|
268
276
|
|
|
269
277
|
// Option B: resolve + inject into environment
|
|
270
|
-
|
|
278
|
+
Env.Load("envilder.json");
|
|
271
279
|
var dbPassword = Environment.GetEnvironmentVariable("DB_PASSWORD");
|
|
272
280
|
```
|
|
273
281
|
|
|
274
|
-
π **[Full .NET SDK docs](./src/sdks/dotnet/README.md)**
|
|
282
|
+
π **[Full .NET SDK docs](./src/sdks/dotnet/README.md)** Β· π‘ **[Examples](./examples/sdk/dotnet/)**
|
|
275
283
|
|
|
276
284
|
### Python SDK
|
|
277
285
|
|
|
@@ -289,7 +297,7 @@ Load secrets into your application with a single line:
|
|
|
289
297
|
from envilder import Envilder
|
|
290
298
|
|
|
291
299
|
# Resolve + inject into os.environ
|
|
292
|
-
Envilder.load('
|
|
300
|
+
Envilder.load('envilder.json')
|
|
293
301
|
```
|
|
294
302
|
|
|
295
303
|
Or route by environment, where each environment points to its own map file:
|
|
@@ -304,7 +312,7 @@ Envilder.load('production', {
|
|
|
304
312
|
})
|
|
305
313
|
```
|
|
306
314
|
|
|
307
|
-
π **[Full Python SDK docs](./src/sdks/python/README.md)**
|
|
315
|
+
π **[Full Python SDK docs](./src/sdks/python/README.md)** Β· π‘ **[Examples](./examples/sdk/python/)**
|
|
308
316
|
|
|
309
317
|
### Node.js SDK
|
|
310
318
|
|
|
@@ -320,7 +328,7 @@ Load secrets into your application with a single line:
|
|
|
320
328
|
import { Envilder } from '@envilder/sdk';
|
|
321
329
|
|
|
322
330
|
// Resolve + inject into process.env
|
|
323
|
-
const secrets = await Envilder.load('
|
|
331
|
+
const secrets = await Envilder.load('envilder.json');
|
|
324
332
|
```
|
|
325
333
|
|
|
326
334
|
Or use the fluent builder for full control:
|
|
@@ -328,13 +336,13 @@ Or use the fluent builder for full control:
|
|
|
328
336
|
```typescript
|
|
329
337
|
import { Envilder, SecretProviderType } from '@envilder/sdk';
|
|
330
338
|
|
|
331
|
-
const secrets = await Envilder.fromMapFile('
|
|
339
|
+
const secrets = await Envilder.fromMapFile('envilder.json')
|
|
332
340
|
.withProvider(SecretProviderType.Aws)
|
|
333
341
|
.withProfile('prod-account')
|
|
334
342
|
.resolve();
|
|
335
343
|
```
|
|
336
344
|
|
|
337
|
-
π **[Full Node.js SDK docs](./src/sdks/nodejs/README.md)**
|
|
345
|
+
π **[Full Node.js SDK docs](./src/sdks/nodejs/README.md)** Β· π‘ **[Examples](./examples/sdk/nodejs/)**
|
|
338
346
|
|
|
339
347
|
---
|
|
340
348
|
|
|
@@ -342,7 +350,7 @@ const secrets = await Envilder.fromMapFile('secrets-map.json')
|
|
|
342
350
|
|
|
343
351
|
```mermaid
|
|
344
352
|
graph LR
|
|
345
|
-
A["Mapping Model (
|
|
353
|
+
A["Mapping Model (envilder.json)"] --> B[Envilder]:::core
|
|
346
354
|
B --> C["CLI β .env file"]
|
|
347
355
|
B --> D["GitHub Action β CI/CD"]
|
|
348
356
|
B --> E["SDK β app memory"]
|
|
@@ -352,7 +360,7 @@ graph LR
|
|
|
352
360
|
classDef core fill:#1f3b57,color:#fff,stroke:#ccc,stroke-width:2px;
|
|
353
361
|
```
|
|
354
362
|
|
|
355
|
-
1. **Define**: create
|
|
363
|
+
1. **Define**: create an `envilder.json` mapping env var names to cloud secret paths
|
|
356
364
|
2. **Resolve**: Envilder fetches each secret from your cloud vault
|
|
357
365
|
3. **Deliver**: secrets arrive as a `.env` file (CLI/GHA) or in-memory (SDKs)
|
|
358
366
|
4. **Push**: rotate or add secrets from your local environment back to the cloud
|
|
@@ -432,6 +440,13 @@ All help is welcome! PRs, issues, ideas.
|
|
|
432
440
|
Supported by <a href="https://localstack.cloud">LocalStack</a>.
|
|
433
441
|
</p>
|
|
434
442
|
|
|
443
|
+
<p align="center">
|
|
444
|
+
Envilder is also supported through the
|
|
445
|
+
<a href="https://aws.amazon.com/blogs/opensource/aws-cloud-credits-for-open-source-projects-affirming-our-commitment/">
|
|
446
|
+
AWS Open Source Credits Program
|
|
447
|
+
</a>.
|
|
448
|
+
</p>
|
|
449
|
+
|
|
435
450
|
---
|
|
436
451
|
|
|
437
452
|
## π License
|
package/ROADMAP.md
CHANGED
|
@@ -54,7 +54,7 @@ or directly inside application code at runtime.
|
|
|
54
54
|
|---------|----------|-------|
|
|
55
55
|
| **Auto-discovery mode** (`--auto`) | Medium | Fetch all parameters matching a given prefix (e.g., `/my-app/prod/*`) |
|
|
56
56
|
| **Exec with refresh** (`--refresh-interval`) | Low | Kill & restart child process periodically with fresh secrets (requires `--exec`) |
|
|
57
|
-
| **Hierarchical mapping** | Low | Per-environment `
|
|
57
|
+
| **Hierarchical mapping** | Low | Per-environment `envilder.json` with inheritance/overrides |
|
|
58
58
|
|
|
59
59
|
<!-- markdownlint-enable MD013 -->
|
|
60
60
|
|
|
@@ -65,7 +65,7 @@ or directly inside application code at runtime.
|
|
|
65
65
|
All tools and SDKs live in a single monorepo and share the same map-file format:
|
|
66
66
|
|
|
67
67
|
```txt
|
|
68
|
-
|
|
68
|
+
envilder.json (universal contract)
|
|
69
69
|
β
|
|
70
70
|
βββ envilder CLI β generates .env files
|
|
71
71
|
βββ envilder GitHub Action β CI/CD secret injection
|
package/docs/changelogs/cli.md
CHANGED
|
@@ -5,6 +5,45 @@ For SDK-specific changes, see `sdk-dotnet.md`, `sdk-python.md`, or `sdk-nodejs.m
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [0.11.0] - 2026-05-31
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
* **BREAKING: Require Node.js >= 22.12** β pnpm 11, testcontainers v12,
|
|
13
|
+
commander 15, and commitlint 21 require Node.js 22.12+. The `engines`
|
|
14
|
+
field now enforces `>=22.12.0`
|
|
15
|
+
([#291](https://github.com/macalbert/envilder/pull/291))
|
|
16
|
+
|
|
17
|
+
### Dependencies
|
|
18
|
+
|
|
19
|
+
* Update all devDependencies to latest (TypeScript 6.0.3, Biome 2.4.16,
|
|
20
|
+
testcontainers 12.0.1, pnpm 11.5.0)
|
|
21
|
+
* Remove `rimraf` β replaced with zero-dependency `fs.rmSync` in clean scripts
|
|
22
|
+
([#291](https://github.com/macalbert/envilder/pull/291))
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## [0.10.0] - 2026-05-03
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
* **Map-file JSON Schema** β A formal JSON Schema specification for map files,
|
|
31
|
+
published at `https://envilder.com/schema/map-file.v1.json`. Add
|
|
32
|
+
`"$schema": "https://envilder.com/schema/map-file.v1.json"` to any map file
|
|
33
|
+
for IDE autocomplete, inline documentation, and validation
|
|
34
|
+
([#218](https://github.com/macalbert/envilder/pull/218))
|
|
35
|
+
* **Schema contract tests** β 39 tests validating the JSON Schema across all
|
|
36
|
+
providers (AWS, Azure, GCP, HashiCorp Vault, file)
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
* **Reserved key filtering** β All `$`-prefixed keys (e.g. `$schema`) are now
|
|
41
|
+
excluded from variable mappings. Previously only `$config` was filtered,
|
|
42
|
+
causing `$schema` to leak into environment variables
|
|
43
|
+
([#218](https://github.com/macalbert/envilder/pull/218))
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
8
47
|
## [0.9.4] - 2026-05-03
|
|
9
48
|
|
|
10
49
|
### Fixed
|
|
@@ -23,20 +62,20 @@ For SDK-specific changes, see `sdk-dotnet.md`, `sdk-python.md`, or `sdk-nodejs.m
|
|
|
23
62
|
**.NET** ([NuGet](https://www.nuget.org/packages/Envilder)):
|
|
24
63
|
|
|
25
64
|
```csharp
|
|
26
|
-
builder.Configuration.AddEnvilder("
|
|
65
|
+
builder.Configuration.AddEnvilder("envilder.json");
|
|
27
66
|
```
|
|
28
67
|
|
|
29
68
|
**Python** ([PyPI](https://pypi.org/project/envilder)):
|
|
30
69
|
|
|
31
70
|
```python
|
|
32
71
|
from envilder import Envilder
|
|
33
|
-
Envilder.load('
|
|
72
|
+
Envilder.load('envilder.json')
|
|
34
73
|
```
|
|
35
74
|
|
|
36
75
|
**CLI** (as always):
|
|
37
76
|
|
|
38
77
|
```bash
|
|
39
|
-
npx envilder --map=
|
|
78
|
+
npx envilder --map=envilder.json --envfile=.env
|
|
40
79
|
```
|
|
41
80
|
|
|
42
81
|
**GitHub Action:**
|
|
@@ -44,7 +83,7 @@ For SDK-specific changes, see `sdk-dotnet.md`, `sdk-python.md`, or `sdk-nodejs.m
|
|
|
44
83
|
```yaml
|
|
45
84
|
- uses: macalbert/envilder/github-action@v0
|
|
46
85
|
with:
|
|
47
|
-
map-file:
|
|
86
|
+
map-file: envilder.json
|
|
48
87
|
env-file: .env
|
|
49
88
|
```
|
|
50
89
|
|
package/docs/changelogs/gha.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## [0.11.0] - 2026-05-31
|
|
2
|
+
|
|
3
|
+
### Changed
|
|
4
|
+
|
|
5
|
+
* **BREAKING: Require Node.js >= 22.12** β GitHub Actions workflows updated
|
|
6
|
+
to use `node-version: "22.x"`. The bundled CLI now requires Node.js 22.12+
|
|
7
|
+
([#291](https://github.com/macalbert/envilder/pull/291))
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
* Bundle updated with latest CLI core (all dependencies at latest)
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## [0.10.0] - 2026-05-03
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
* **Reserved key filtering** β `$schema` and other `$`-prefixed keys no longer
|
|
20
|
+
leak into environment variable mappings
|
|
21
|
+
([#218](https://github.com/macalbert/envilder/pull/218))
|
|
22
|
+
|
|
23
|
+
### Dependencies
|
|
24
|
+
|
|
25
|
+
* Bundle updated with latest CLI core (map-file schema support)
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
1
29
|
## [0.9.4] - 2026-05-03
|
|
2
30
|
|
|
3
31
|
### Fixed
|
|
@@ -1,3 +1,72 @@
|
|
|
1
|
+
## [0.4.0] - 2026-05-18
|
|
2
|
+
|
|
3
|
+
### Changed
|
|
4
|
+
|
|
5
|
+
* **BREAKING: Root namespace for public API** β All consumer-facing types
|
|
6
|
+
moved from `Envilder.Application` / `Envilder.Domain` to the root
|
|
7
|
+
`Envilder` namespace. Consumers now only need `using Envilder;`
|
|
8
|
+
* **BREAKING: Facade class renamed to `Env`** β The static facade class
|
|
9
|
+
is now `Env` instead of `Envilder` to avoid namespace/class name collision.
|
|
10
|
+
Use `Env.Load(...)`, `Env.ResolveFile(...)`, `Env.FromMapFile(...)` etc.
|
|
11
|
+
* **Extension methods follow .NET conventions** β
|
|
12
|
+
`AddEnvilder()` for `IConfigurationBuilder` moved to
|
|
13
|
+
`Microsoft.Extensions.Configuration` namespace;
|
|
14
|
+
`AddEnvilder()` for `IServiceCollection` moved to
|
|
15
|
+
`Microsoft.Extensions.DependencyInjection` namespace.
|
|
16
|
+
Both are now discoverable without any Envilder-specific using directives
|
|
17
|
+
|
|
18
|
+
### Migration
|
|
19
|
+
|
|
20
|
+
Replace:
|
|
21
|
+
|
|
22
|
+
```csharp
|
|
23
|
+
using Envilder.Application;
|
|
24
|
+
using Envilder.Domain;
|
|
25
|
+
using Envilder.Infrastructure.Configuration;
|
|
26
|
+
using Envilder.Infrastructure.DependencyInjection;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
With:
|
|
30
|
+
|
|
31
|
+
```csharp
|
|
32
|
+
using Envilder;
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Replace facade calls:
|
|
36
|
+
|
|
37
|
+
```csharp
|
|
38
|
+
// Before
|
|
39
|
+
Envilder.Load("envilder.json");
|
|
40
|
+
Envilder.FromMapFile("envilder.json").Inject();
|
|
41
|
+
|
|
42
|
+
// After
|
|
43
|
+
Env.Load("envilder.json");
|
|
44
|
+
Env.FromMapFile("envilder.json").Inject();
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
`AddEnvilder()` extension methods now live in `Microsoft.Extensions.Configuration`
|
|
48
|
+
and `Microsoft.Extensions.DependencyInjection` β no Envilder-specific import needed.
|
|
49
|
+
ASP.NET projects already include these namespaces via global usings; console apps
|
|
50
|
+
may need to add them explicitly.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## [0.3.0] - 2026-05-03
|
|
55
|
+
|
|
56
|
+
### Added
|
|
57
|
+
|
|
58
|
+
* **Map-file JSON Schema support** β Map files can now include
|
|
59
|
+
`"$schema": "https://envilder.com/schema/map-file.v1.json"` for IDE
|
|
60
|
+
autocomplete and validation without affecting secret resolution
|
|
61
|
+
|
|
62
|
+
### Fixed
|
|
63
|
+
|
|
64
|
+
* **Reserved key filtering** β All `$`-prefixed keys are now excluded from
|
|
65
|
+
variable mappings. Previously only `$config` was filtered
|
|
66
|
+
([#218](https://github.com/macalbert/envilder/pull/218))
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
1
70
|
## [0.2.0] - 2026-04-18
|
|
2
71
|
|
|
3
72
|
### Added
|
|
@@ -64,7 +133,7 @@
|
|
|
64
133
|
* **Initial release** β Runtime library for loading secrets from AWS SSM Parameter Store or Azure Key Vault
|
|
65
134
|
directly into .NET applications ([#147](https://github.com/macalbert/envilder/pull/147))
|
|
66
135
|
* `EnvilderClient` β Resolves secrets from a map-file and returns them as a dictionary
|
|
67
|
-
* `MapFileParser` β Parses `
|
|
136
|
+
* `MapFileParser` β Parses `envilder.json` files with `$config` section and variable mappings
|
|
68
137
|
* `SecretProviderFactory` β Creates the appropriate secret provider based on configuration
|
|
69
138
|
* `AwsSsmSecretProvider` β Fetches secrets from AWS SSM Parameter Store
|
|
70
139
|
* `AzureKeyVaultSecretProvider` β Fetches secrets from Azure Key Vault
|
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
## [0.3.0] - 2026-05-31
|
|
2
|
+
|
|
3
|
+
### Changed
|
|
4
|
+
|
|
5
|
+
* **BREAKING: Require Node.js >= 22.12** β Aligns with the rest of the
|
|
6
|
+
monorepo. Node 18 and 20 are EOL; Node 22 is the only active LTS
|
|
7
|
+
([#291](https://github.com/macalbert/envilder/pull/291))
|
|
8
|
+
|
|
9
|
+
* **Pin dependencies to minimum viable versions** β AWS SDK `^3.700.0`, Azure
|
|
10
|
+
Identity `^4.5.0`, Azure Key Vault Secrets `^4.9.0` β avoids forcing
|
|
11
|
+
consumers to upgrade their cloud SDKs (ADR-0009)
|
|
12
|
+
([#291](https://github.com/macalbert/envilder/pull/291))
|
|
13
|
+
|
|
14
|
+
### Dependencies
|
|
15
|
+
|
|
16
|
+
* Remove `rimraf` β replaced with zero-dependency `fs.rmSync` in clean script
|
|
17
|
+
([#291](https://github.com/macalbert/envilder/pull/291))
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## [0.2.0] - 2026-05-03
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
* **Map-file JSON Schema support** β Map files can now include
|
|
26
|
+
`"$schema": "https://envilder.com/schema/map-file.v1.json"` for IDE
|
|
27
|
+
autocomplete and validation without affecting secret resolution
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
* **Reserved key filtering** β All `$`-prefixed keys are now excluded from
|
|
32
|
+
variable mappings. Previously only `$config` was filtered
|
|
33
|
+
([#218](https://github.com/macalbert/envilder/pull/218))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
1
37
|
## [0.1.1] - 2026-05-02
|
|
2
38
|
|
|
3
39
|
### Documentation
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [0.4.0] - 2026-05-03
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
|
|
5
|
+
* **Map-file JSON Schema support** β Map files can now include
|
|
6
|
+
`"$schema": "https://envilder.com/schema/map-file.v1.json"` for IDE
|
|
7
|
+
autocomplete and validation without affecting secret resolution
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
* **Reserved key filtering** β All `$`-prefixed keys are now excluded from
|
|
12
|
+
variable mappings. Previously only `$config` was filtered
|
|
13
|
+
([#218](https://github.com/macalbert/envilder/pull/218))
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
1
17
|
## [0.3.2] - 2026-04-18
|
|
2
18
|
|
|
3
19
|
### Changed
|
|
@@ -38,7 +54,7 @@
|
|
|
38
54
|
|
|
39
55
|
* **Environment-based loading** β `Envilder.load(env, env_mapping)` and
|
|
40
56
|
`Envilder.resolve_file(env, env_mapping)` accept a dictionary mapping environment names to
|
|
41
|
-
|
|
57
|
+
map file paths (or `None` to skip). Enables environment-aware secret loading without
|
|
42
58
|
external branching logic ([#163](https://github.com/macalbert/envilder/pull/163))
|
|
43
59
|
* **Source validation** β Empty or whitespace-only file paths in `env_mapping` now raise
|
|
44
60
|
`ValueError` with a descriptive message including the environment key
|
|
@@ -66,7 +82,7 @@
|
|
|
66
82
|
([#157](https://github.com/macalbert/envilder/pull/157))
|
|
67
83
|
* `Envilder` facade β High-level entry point with `load()`, `resolve_file()`, and `from_map_file()` methods
|
|
68
84
|
* `EnvilderClient` β Resolves secrets from a map-file and injects them into `os.environ`
|
|
69
|
-
* `MapFileParser` β Parses `
|
|
85
|
+
* `MapFileParser` β Parses `envilder.json` files with `$config` section and variable mappings
|
|
70
86
|
* `SecretProviderFactory` β Creates the appropriate secret provider based on configuration
|
|
71
87
|
* `AwsSsmSecretProvider` β Fetches secrets from AWS SSM Parameter Store via boto3
|
|
72
88
|
* `AzureKeyVaultSecretProvider` β Fetches secrets from Azure Key Vault
|
|
@@ -54,16 +54,16 @@ export function main() {
|
|
|
54
54
|
${pc.yellow('ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ')}
|
|
55
55
|
|
|
56
56
|
${pc.green('>')} ${pc.bold('Generate a .env file')} ${pc.dim('(pull secrets from the cloud)')}
|
|
57
|
-
${pc.cyan('envilder --map=
|
|
57
|
+
${pc.cyan('envilder --map=envilder.json --envfile=.env')}
|
|
58
58
|
|
|
59
59
|
${pc.magenta('>')} ${pc.bold('Sync .env back to cloud')} ${pc.dim('(push secrets up)')}
|
|
60
|
-
${pc.cyan('envilder --push --map=
|
|
60
|
+
${pc.cyan('envilder --push --map=envilder.json --envfile=.env')}
|
|
61
61
|
|
|
62
62
|
${pc.red('>')} ${pc.bold('Push a single secret')}
|
|
63
63
|
${pc.cyan('envilder --push --key=API_KEY --value=s3cret --secret-path=/my/path')}
|
|
64
64
|
|
|
65
65
|
${pc.blue('>')} ${pc.bold('Use Azure Key Vault')}
|
|
66
|
-
${pc.cyan('envilder --provider=azure --map=
|
|
66
|
+
${pc.cyan('envilder --provider=azure --map=envilder.json --envfile=.env')}
|
|
67
67
|
`;
|
|
68
68
|
program
|
|
69
69
|
.name('envilder')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cli.js","sourceRoot":"","sources":["../../../../src/envilder/apps/cli/Cli.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAIjG,OAAO,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAC;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,IAAI,eAA0B,CAAC;AAE/B,SAAe,cAAc,CAAC,OAAmB;;QAC/C,MAAM,cAAc,GAAG,eAAe,CAAC,GAAG,CACxC,KAAK,CAAC,4BAA4B,CACnC,CAAC;QAEF,MAAM,OAAO,GAAG,qBAAqB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC9D,MAAM,cAAc,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;CAAA;AAED,MAAM,UAAgB,IAAI;;QACxB,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAC9B,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;QAE3C,MAAM,MAAM,GAAG;IACb,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,G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,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileVariableStore.d.ts","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/variableStore/FileVariableStore.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAG3E,qBACa,iBAAkB,YAAW,cAAc;IACtD,OAAO,CAAC,MAAM,CAAU;gBAEW,MAAM,EAAE,OAAO;IAO5C,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAK3D,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"FileVariableStore.d.ts","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/variableStore/FileVariableStore.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAG3E,qBACa,iBAAkB,YAAW,cAAc;IACtD,OAAO,CAAC,MAAM,CAAU;gBAEW,MAAM,EAAE,OAAO;IAO5C,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAK3D,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;YAchD,YAAY;IAmBpB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAc/D,eAAe,CACnB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,OAAO,CAAC,IAAI,CAAC;IAiBhB,OAAO,CAAC,cAAc;CASvB;AAED,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,aAAa,CAAC,CAkBxB"}
|
|
@@ -53,7 +53,13 @@ let FileVariableStore = class FileVariableStore {
|
|
|
53
53
|
const raw = yield this.readJsonFile(source);
|
|
54
54
|
const { $config } = raw, rest = __rest(raw, ["$config"]);
|
|
55
55
|
const config = $config && typeof $config === 'object' ? $config : {};
|
|
56
|
-
|
|
56
|
+
const mappings = {};
|
|
57
|
+
for (const [key, value] of Object.entries(rest)) {
|
|
58
|
+
if (!key.startsWith('$') && typeof value === 'string') {
|
|
59
|
+
mappings[key] = value;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return { config, mappings };
|
|
57
63
|
});
|
|
58
64
|
}
|
|
59
65
|
readJsonFile(source) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileVariableStore.js","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/variableStore/FileVariableStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,qCAAqC,CAAC;AAO7C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGhC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAG5B,YAAmC,MAAe;QAChD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,sBAAsB,CAAC,0BAA0B,CAAC,CAAC;QAC/D,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEK,UAAU,CAAC,MAAc;;YAC7B,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;YACzD,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;IAEK,gBAAgB,CAAC,MAAc;;YACnC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;YAC5C,MAAM,EAAE,OAAO,KAAc,GAAG,EAAZ,IAAI,UAAK,GAAG,EAA1B,WAAoB,CAAM,CAAC;YACjC,MAAM,MAAM,GACV,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;YACxD,
|
|
1
|
+
{"version":3,"file":"FileVariableStore.js","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/variableStore/FileVariableStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,qCAAqC,CAAC;AAO7C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGhC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAG5B,YAAmC,MAAe;QAChD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,sBAAsB,CAAC,0BAA0B,CAAC,CAAC;QAC/D,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEK,U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ProviderType } from '../domain/secret-provider-type.js';
|
|
|
9
9
|
* @example
|
|
10
10
|
* ```typescript
|
|
11
11
|
* // One-liner β resolve + inject into process.env:
|
|
12
|
-
* await Envilder.load('
|
|
12
|
+
* await Envilder.load('envilder.json');
|
|
13
13
|
*
|
|
14
14
|
* // Resolve without injecting:
|
|
15
|
-
* const secrets = await Envilder.resolveFile('
|
|
15
|
+
* const secrets = await Envilder.resolveFile('envilder.json');
|
|
16
16
|
*
|
|
17
17
|
* // Fluent builder with provider override:
|
|
18
|
-
* const secrets = await Envilder.fromMapFile('
|
|
18
|
+
* const secrets = await Envilder.fromMapFile('envilder.json')
|
|
19
19
|
* .withProvider(SecretProviderType.Azure)
|
|
20
20
|
* .withVaultUrl('https://my-vault.vault.azure.net')
|
|
21
21
|
* .inject();
|
|
@@ -21,13 +21,13 @@ import { MapFileParser } from './map-file-parser.js';
|
|
|
21
21
|
* @example
|
|
22
22
|
* ```typescript
|
|
23
23
|
* // One-liner β resolve + inject into process.env:
|
|
24
|
-
* await Envilder.load('
|
|
24
|
+
* await Envilder.load('envilder.json');
|
|
25
25
|
*
|
|
26
26
|
* // Resolve without injecting:
|
|
27
|
-
* const secrets = await Envilder.resolveFile('
|
|
27
|
+
* const secrets = await Envilder.resolveFile('envilder.json');
|
|
28
28
|
*
|
|
29
29
|
* // Fluent builder with provider override:
|
|
30
|
-
* const secrets = await Envilder.fromMapFile('
|
|
30
|
+
* const secrets = await Envilder.fromMapFile('envilder.json')
|
|
31
31
|
* .withProvider(SecretProviderType.Azure)
|
|
32
32
|
* .withVaultUrl('https://my-vault.vault.azure.net')
|
|
33
33
|
* .inject();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-file-parser.d.ts","sourceRoot":"","sources":["../../../../../src/sdks/nodejs/src/application/map-file-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAUlE;;GAEG;AACH,qBAAa,aAAa;IACxB;;;;;OAKG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa;
|
|
1
|
+
{"version":3,"file":"map-file-parser.d.ts","sourceRoot":"","sources":["../../../../../src/sdks/nodejs/src/application/map-file-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAUlE;;GAEG;AACH,qBAAa,aAAa;IACxB;;;;;OAKG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa;IAqBlC,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,WAAW;CAqBpB"}
|
|
@@ -15,33 +15,13 @@ export class MapFileParser {
|
|
|
15
15
|
* @returns Parsed config and variable mappings.
|
|
16
16
|
*/
|
|
17
17
|
parse(json) {
|
|
18
|
-
|
|
19
|
-
try {
|
|
20
|
-
raw = JSON.parse(json);
|
|
21
|
-
}
|
|
22
|
-
catch (_a) {
|
|
23
|
-
throw new Error('Invalid map file: content is not valid JSON');
|
|
24
|
-
}
|
|
25
|
-
if (typeof raw !== 'object' || raw === null || Array.isArray(raw)) {
|
|
26
|
-
throw new Error('Invalid map file: root must be a JSON object');
|
|
27
|
-
}
|
|
18
|
+
const raw = this.parseRawJson(json);
|
|
28
19
|
const mappings = new Map();
|
|
29
20
|
let config = {};
|
|
30
21
|
for (const [key, value] of Object.entries(raw)) {
|
|
31
|
-
if (key
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
-
const providerStr = typeof obj.provider === 'string'
|
|
35
|
-
? obj.provider.toLowerCase()
|
|
36
|
-
: undefined;
|
|
37
|
-
config = {
|
|
38
|
-
provider: providerStr ? PROVIDER_MAP[providerStr] : undefined,
|
|
39
|
-
vaultUrl: typeof obj.vaultUrl === 'string' ? obj.vaultUrl : undefined,
|
|
40
|
-
profile: typeof obj.profile === 'string' ? obj.profile : undefined,
|
|
41
|
-
};
|
|
42
|
-
if (providerStr && !config.provider) {
|
|
43
|
-
throw new Error(`Unknown provider: '${obj.provider}'. Supported: aws, azure`);
|
|
44
|
-
}
|
|
22
|
+
if (key.startsWith('$')) {
|
|
23
|
+
if (key === CONFIG_KEY) {
|
|
24
|
+
config = this.parseConfig(value);
|
|
45
25
|
}
|
|
46
26
|
continue;
|
|
47
27
|
}
|
|
@@ -51,5 +31,34 @@ export class MapFileParser {
|
|
|
51
31
|
}
|
|
52
32
|
return { config, mappings };
|
|
53
33
|
}
|
|
34
|
+
parseRawJson(json) {
|
|
35
|
+
let raw;
|
|
36
|
+
try {
|
|
37
|
+
raw = JSON.parse(json);
|
|
38
|
+
}
|
|
39
|
+
catch (_a) {
|
|
40
|
+
throw new Error('Invalid map file: content is not valid JSON');
|
|
41
|
+
}
|
|
42
|
+
if (typeof raw !== 'object' || raw === null || Array.isArray(raw)) {
|
|
43
|
+
throw new Error('Invalid map file: root must be a JSON object');
|
|
44
|
+
}
|
|
45
|
+
return raw;
|
|
46
|
+
}
|
|
47
|
+
parseConfig(value) {
|
|
48
|
+
if (typeof value !== 'object' || value === null) {
|
|
49
|
+
return {};
|
|
50
|
+
}
|
|
51
|
+
const obj = value;
|
|
52
|
+
const providerStr = typeof obj.provider === 'string' ? obj.provider.toLowerCase() : undefined;
|
|
53
|
+
const config = {
|
|
54
|
+
provider: providerStr ? PROVIDER_MAP[providerStr] : undefined,
|
|
55
|
+
vaultUrl: typeof obj.vaultUrl === 'string' ? obj.vaultUrl : undefined,
|
|
56
|
+
profile: typeof obj.profile === 'string' ? obj.profile : undefined,
|
|
57
|
+
};
|
|
58
|
+
if (providerStr && !config.provider) {
|
|
59
|
+
throw new Error(`Unknown provider: '${obj.provider}'. Supported: aws, azure`);
|
|
60
|
+
}
|
|
61
|
+
return config;
|
|
62
|
+
}
|
|
54
63
|
}
|
|
55
64
|
//# sourceMappingURL=map-file-parser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-file-parser.js","sourceRoot":"","sources":["../../../../../src/sdks/nodejs/src/application/map-file-parser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,UAAU,GAAG,SAAS,CAAC;AAE7B,MAAM,YAAY,GAAuC;IACvD,GAAG,EAAE,kBAAkB,CAAC,GAAG;IAC3B,KAAK,EAAE,kBAAkB,CAAC,KAAK;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,OAAO,aAAa;IACxB;;;;;OAKG;IACH,KAAK,CAAC,IAAY;QAChB,IAAI,
|
|
1
|
+
{"version":3,"file":"map-file-parser.js","sourceRoot":"","sources":["../../../../../src/sdks/nodejs/src/application/map-file-parser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,UAAU,GAAG,SAAS,CAAC;AAE7B,MAAM,YAAY,GAAuC;IACvD,GAAG,EAAE,kBAAkB,CAAC,GAAG;IAC3B,KAAK,EAAE,kBAAkB,CAAC,KAAK;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,OAAO,aAAa;IACxB;;;;;OAKG;IACH,KAAK,CAAC,IAAY;QAChB,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACpC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAkB,CAAC;QAC3C,IAAI,MAAM,GAAkB,EAAE,CAAC;QAE/B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;YAC/C,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;gBACxB,IAAI,GAAG,KAAK,UAAU,EAAE,CAAC;oBACvB,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;gBACnC,CAAC;gBACD,SAAS;YACX,CAAC;YAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC9B,QAAQ,CAAC,GAAG,CAAC,G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EF,IAAI,WAAW,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CACb,sBAAsB,GAAG,CAAC,QAAQ,0BAA0B,CAC7D,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "envilder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
|
+
"packageManager": "pnpm@11.5.0",
|
|
4
5
|
"description": "A CLI and GitHub Action that securely centralizes your environment variables from AWS SSM or Azure Key Vault as a single source of truth",
|
|
5
6
|
"homepage": "https://envilder.com",
|
|
6
7
|
"author": {
|
|
@@ -19,18 +20,19 @@
|
|
|
19
20
|
},
|
|
20
21
|
"scripts": {
|
|
21
22
|
"prepare": "lefthook install",
|
|
22
|
-
"clean": "
|
|
23
|
+
"clean": "node -e \"require('fs').rmSync('lib',{recursive:true,force:true});require('fs').rmSync('coverage',{recursive:true,force:true});require('fs').rmSync('node_modules',{recursive:true,force:true})\"",
|
|
23
24
|
"build": "tsc",
|
|
24
25
|
"build:gha": "ncc build src/envilder/apps/gha/Index.ts -o github-action/dist --minify",
|
|
25
26
|
"verify:gha": "pnpm build:gha && git diff --exit-code github-action/dist/index.js || (echo 'β github-action/dist/index.js is not up to date. Run pnpm build:gha' && exit 1)",
|
|
26
27
|
"local:install": "pnpm build && node --loader ts-node/esm scripts/pack-and-install.ts",
|
|
27
|
-
"local:test-run": "pnpm build && node lib/envilder/apps/cli/Index.js --map=
|
|
28
|
+
"local:test-run": "pnpm build && node lib/envilder/apps/cli/Index.js --map=e2e/sample/envilder.json --envfile=e2e/sample/autogenerated.env",
|
|
28
29
|
"format": "biome check --write --unsafe && biome format --write",
|
|
29
30
|
"format:check": "biome check && biome format",
|
|
30
31
|
"lint": "secretlint \"**/*\" && biome check && tsc --noEmit",
|
|
31
32
|
"lint:fix": "biome lint --fix",
|
|
32
33
|
"test": "vitest run --reporter=verbose --coverage",
|
|
33
34
|
"test:ci": "vitest run --reporter=verbose --reporter=junit --coverage --outputFile=coverage/junit/test-results.xml",
|
|
35
|
+
"test:update": "vitest run --reporter=verbose --update",
|
|
34
36
|
"release:publish": "npm pack --dry-run && npm publish --provenance",
|
|
35
37
|
"action-publish": "pnpm build:gha && pnpm verify:gha",
|
|
36
38
|
"release-patch": "pnpm version patch",
|
|
@@ -38,7 +40,7 @@
|
|
|
38
40
|
"release-major": "pnpm version major",
|
|
39
41
|
"release-prerelease": "pnpm version prerelease",
|
|
40
42
|
"dev:run": "node --env-file=dev.env --import tsx src/envilder/apps/cli/Index.ts",
|
|
41
|
-
"env:generate": "pnpx envilder --map=
|
|
43
|
+
"env:generate": "pnpx envilder --map=envilder.json --envfile=.env",
|
|
42
44
|
"env:ensure": "node -e \"require('fs').existsSync('.env')||process.exit(1)\" || pnpm env:generate",
|
|
43
45
|
"docker:up": "pnpm env:ensure && docker compose -f docker-compose.yml up -d",
|
|
44
46
|
"docker:down": "docker compose -f docker-compose.yml down"
|
|
@@ -50,19 +52,22 @@
|
|
|
50
52
|
"ssm",
|
|
51
53
|
"parameter-store",
|
|
52
54
|
"cli",
|
|
55
|
+
"sdk",
|
|
53
56
|
"environment",
|
|
57
|
+
"environment-variables",
|
|
54
58
|
"secrets",
|
|
55
59
|
"secret-management",
|
|
60
|
+
"secret-loader",
|
|
56
61
|
"automation",
|
|
57
62
|
"config",
|
|
58
|
-
"aws-cli",
|
|
59
63
|
"devops",
|
|
60
64
|
"ci-cd",
|
|
61
65
|
"secure",
|
|
62
66
|
"envfile",
|
|
67
|
+
"map-file",
|
|
68
|
+
"twelve-factor",
|
|
63
69
|
"github-actions",
|
|
64
70
|
"github-action",
|
|
65
|
-
"actions",
|
|
66
71
|
"azure",
|
|
67
72
|
"key-vault",
|
|
68
73
|
"azure-key-vault",
|
|
@@ -86,52 +91,38 @@
|
|
|
86
91
|
],
|
|
87
92
|
"type": "module",
|
|
88
93
|
"dependencies": {
|
|
89
|
-
"@aws-sdk/client-ssm": "^3.
|
|
90
|
-
"@aws-sdk/credential-providers": "^3.
|
|
94
|
+
"@aws-sdk/client-ssm": "^3.1057.0",
|
|
95
|
+
"@aws-sdk/credential-providers": "^3.1057.0",
|
|
91
96
|
"@azure/core-rest-pipeline": "^1.23.0",
|
|
92
97
|
"@azure/identity": "^4.13.1",
|
|
93
|
-
"@azure/keyvault-secrets": "^4.
|
|
94
|
-
"commander": "^
|
|
95
|
-
"dotenv": "^17.
|
|
98
|
+
"@azure/keyvault-secrets": "^4.11.2",
|
|
99
|
+
"commander": "^15.0.0",
|
|
100
|
+
"dotenv": "^17.4.2",
|
|
96
101
|
"inversify": "^8.1.0",
|
|
97
102
|
"picocolors": "^1.1.1",
|
|
98
103
|
"reflect-metadata": "^0.2.2"
|
|
99
104
|
},
|
|
100
105
|
"devDependencies": {
|
|
101
106
|
"@biomejs/biome": "catalog:",
|
|
102
|
-
"@commitlint/cli": "^
|
|
103
|
-
"@commitlint/config-conventional": "^
|
|
104
|
-
"@secretlint/secretlint-rule-preset-recommend": "^
|
|
105
|
-
"@testcontainers/localstack": "^
|
|
107
|
+
"@commitlint/cli": "^21.0.2",
|
|
108
|
+
"@commitlint/config-conventional": "^21.0.2",
|
|
109
|
+
"@secretlint/secretlint-rule-preset-recommend": "^13.0.2",
|
|
110
|
+
"@testcontainers/localstack": "^12.0.1",
|
|
106
111
|
"@types/node": "catalog:",
|
|
107
112
|
"@vercel/ncc": "^0.38.4",
|
|
108
113
|
"@vitest/coverage-v8": "catalog:",
|
|
114
|
+
"ajv": "^8.20.0",
|
|
115
|
+
"ajv-formats": "^3.0.1",
|
|
109
116
|
"glob": "^13.0.6",
|
|
110
|
-
"lefthook": "^2.1.
|
|
111
|
-
"secretlint": "^
|
|
112
|
-
"testcontainers": "^
|
|
117
|
+
"lefthook": "^2.1.9",
|
|
118
|
+
"secretlint": "^13.0.2",
|
|
119
|
+
"testcontainers": "^12.0.1",
|
|
113
120
|
"ts-node": "catalog:",
|
|
114
|
-
"tsx": "^4.
|
|
121
|
+
"tsx": "^4.22.3",
|
|
115
122
|
"typescript": "catalog:",
|
|
116
123
|
"vitest": "catalog:"
|
|
117
124
|
},
|
|
118
125
|
"engines": {
|
|
119
|
-
"node": ">=
|
|
120
|
-
},
|
|
121
|
-
"pnpm": {
|
|
122
|
-
"onlyBuiltDependencies": [
|
|
123
|
-
"cpu-features",
|
|
124
|
-
"esbuild",
|
|
125
|
-
"lefthook",
|
|
126
|
-
"protobufjs",
|
|
127
|
-
"sharp",
|
|
128
|
-
"ssh2"
|
|
129
|
-
],
|
|
130
|
-
"overrides": {
|
|
131
|
-
"defu": ">=6.1.5",
|
|
132
|
-
"lodash": ">=4.18.0",
|
|
133
|
-
"vite": "^7.3.2",
|
|
134
|
-
"yaml": ">=2.8.3"
|
|
135
|
-
}
|
|
126
|
+
"node": ">=22.12.0"
|
|
136
127
|
}
|
|
137
128
|
}
|