envilder 0.10.0 β 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 +27 -20
- package/ROADMAP.md +2 -2
- package/docs/changelogs/cli.md +22 -4
- package/docs/changelogs/gha.md +14 -0
- package/docs/changelogs/sdk-dotnet.md +54 -1
- package/docs/changelogs/sdk-nodejs.md +20 -0
- package/docs/changelogs/sdk-python.md +2 -2
- package/lib/envilder/apps/cli/Cli.js +3 -3
- package/lib/envilder/apps/cli/Cli.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/package.json +25 -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,7 +79,7 @@ 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
|
{
|
|
@@ -92,7 +92,7 @@ Watch how easy it is to automate your .env management in less than 1 minute:
|
|
|
92
92
|
**2. Generate your `.env` file:**
|
|
93
93
|
|
|
94
94
|
```bash
|
|
95
|
-
npx envilder --map=
|
|
95
|
+
npx envilder --map=envilder.json --envfile=.env
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
That's it. Your secrets are pulled from AWS SSM and written to `.env`.
|
|
@@ -109,7 +109,7 @@ npm install -g envilder
|
|
|
109
109
|
|
|
110
110
|
> π‘ **No install needed?** `npx envilder` works out of the box.
|
|
111
111
|
>
|
|
112
|
-
> **Requirements:** Node.js
|
|
112
|
+
> **Requirements:** Node.js v22.12+. AWS CLI or Azure CLI configured.
|
|
113
113
|
> See [full requirements](docs/requirements-installation.md).
|
|
114
114
|
|
|
115
115
|
### π€ GitHub Action
|
|
@@ -126,7 +126,7 @@ npm install -g envilder
|
|
|
126
126
|
- name: Pull secrets from AWS SSM
|
|
127
127
|
uses: macalbert/envilder/github-action@v0.8.0
|
|
128
128
|
with:
|
|
129
|
-
map-file:
|
|
129
|
+
map-file: envilder.json
|
|
130
130
|
env-file: .env
|
|
131
131
|
```
|
|
132
132
|
|
|
@@ -143,7 +143,7 @@ npm install -g envilder
|
|
|
143
143
|
- name: Pull secrets from Azure Key Vault
|
|
144
144
|
uses: macalbert/envilder/github-action@v0.8.0
|
|
145
145
|
with:
|
|
146
|
-
map-file:
|
|
146
|
+
map-file: envilder.json
|
|
147
147
|
env-file: .env
|
|
148
148
|
provider: azure
|
|
149
149
|
vault-url: ${{ secrets.AZURE_KEY_VAULT_URL }}
|
|
@@ -161,7 +161,7 @@ npm install -g envilder
|
|
|
161
161
|
|
|
162
162
|
## πΊοΈ Mapping File Format
|
|
163
163
|
|
|
164
|
-
The mapping file (`
|
|
164
|
+
The mapping file (`envilder.json`) is the core of Envilder. It's the single model that defines
|
|
165
165
|
what secrets your app needs and where they live in your cloud provider. The same file is used by
|
|
166
166
|
the CLI, the GitHub Action, and the runtime SDKs. You can optionally include a `$config` section
|
|
167
167
|
to declare which provider and settings to use.
|
|
@@ -242,10 +242,10 @@ This means you can set a default provider in `$config` and override it per invoc
|
|
|
242
242
|
|
|
243
243
|
```bash
|
|
244
244
|
# Uses $config from the map file
|
|
245
|
-
envilder --map=
|
|
245
|
+
envilder --map=envilder.json --envfile=.env
|
|
246
246
|
|
|
247
247
|
# Overrides provider and vault URL from the map file
|
|
248
|
-
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
|
|
249
249
|
```
|
|
250
250
|
|
|
251
251
|
---
|
|
@@ -269,17 +269,17 @@ Load secrets into `IConfiguration` or inject them into the process environment:
|
|
|
269
269
|
```csharp
|
|
270
270
|
// Option A: integrate with IConfiguration
|
|
271
271
|
var config = new ConfigurationBuilder()
|
|
272
|
-
.AddEnvilder("
|
|
272
|
+
.AddEnvilder("envilder.json")
|
|
273
273
|
.Build();
|
|
274
274
|
|
|
275
275
|
var dbPassword = config["DB_PASSWORD"];
|
|
276
276
|
|
|
277
277
|
// Option B: resolve + inject into environment
|
|
278
|
-
|
|
278
|
+
Env.Load("envilder.json");
|
|
279
279
|
var dbPassword = Environment.GetEnvironmentVariable("DB_PASSWORD");
|
|
280
280
|
```
|
|
281
281
|
|
|
282
|
-
π **[Full .NET SDK docs](./src/sdks/dotnet/README.md)**
|
|
282
|
+
π **[Full .NET SDK docs](./src/sdks/dotnet/README.md)** Β· π‘ **[Examples](./examples/sdk/dotnet/)**
|
|
283
283
|
|
|
284
284
|
### Python SDK
|
|
285
285
|
|
|
@@ -297,7 +297,7 @@ Load secrets into your application with a single line:
|
|
|
297
297
|
from envilder import Envilder
|
|
298
298
|
|
|
299
299
|
# Resolve + inject into os.environ
|
|
300
|
-
Envilder.load('
|
|
300
|
+
Envilder.load('envilder.json')
|
|
301
301
|
```
|
|
302
302
|
|
|
303
303
|
Or route by environment, where each environment points to its own map file:
|
|
@@ -312,7 +312,7 @@ Envilder.load('production', {
|
|
|
312
312
|
})
|
|
313
313
|
```
|
|
314
314
|
|
|
315
|
-
π **[Full Python SDK docs](./src/sdks/python/README.md)**
|
|
315
|
+
π **[Full Python SDK docs](./src/sdks/python/README.md)** Β· π‘ **[Examples](./examples/sdk/python/)**
|
|
316
316
|
|
|
317
317
|
### Node.js SDK
|
|
318
318
|
|
|
@@ -328,7 +328,7 @@ Load secrets into your application with a single line:
|
|
|
328
328
|
import { Envilder } from '@envilder/sdk';
|
|
329
329
|
|
|
330
330
|
// Resolve + inject into process.env
|
|
331
|
-
const secrets = await Envilder.load('
|
|
331
|
+
const secrets = await Envilder.load('envilder.json');
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
Or use the fluent builder for full control:
|
|
@@ -336,13 +336,13 @@ Or use the fluent builder for full control:
|
|
|
336
336
|
```typescript
|
|
337
337
|
import { Envilder, SecretProviderType } from '@envilder/sdk';
|
|
338
338
|
|
|
339
|
-
const secrets = await Envilder.fromMapFile('
|
|
339
|
+
const secrets = await Envilder.fromMapFile('envilder.json')
|
|
340
340
|
.withProvider(SecretProviderType.Aws)
|
|
341
341
|
.withProfile('prod-account')
|
|
342
342
|
.resolve();
|
|
343
343
|
```
|
|
344
344
|
|
|
345
|
-
π **[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/)**
|
|
346
346
|
|
|
347
347
|
---
|
|
348
348
|
|
|
@@ -350,7 +350,7 @@ const secrets = await Envilder.fromMapFile('secrets-map.json')
|
|
|
350
350
|
|
|
351
351
|
```mermaid
|
|
352
352
|
graph LR
|
|
353
|
-
A["Mapping Model (
|
|
353
|
+
A["Mapping Model (envilder.json)"] --> B[Envilder]:::core
|
|
354
354
|
B --> C["CLI β .env file"]
|
|
355
355
|
B --> D["GitHub Action β CI/CD"]
|
|
356
356
|
B --> E["SDK β app memory"]
|
|
@@ -360,7 +360,7 @@ graph LR
|
|
|
360
360
|
classDef core fill:#1f3b57,color:#fff,stroke:#ccc,stroke-width:2px;
|
|
361
361
|
```
|
|
362
362
|
|
|
363
|
-
1. **Define**: create
|
|
363
|
+
1. **Define**: create an `envilder.json` mapping env var names to cloud secret paths
|
|
364
364
|
2. **Resolve**: Envilder fetches each secret from your cloud vault
|
|
365
365
|
3. **Deliver**: secrets arrive as a `.env` file (CLI/GHA) or in-memory (SDKs)
|
|
366
366
|
4. **Push**: rotate or add secrets from your local environment back to the cloud
|
|
@@ -440,6 +440,13 @@ All help is welcome! PRs, issues, ideas.
|
|
|
440
440
|
Supported by <a href="https://localstack.cloud">LocalStack</a>.
|
|
441
441
|
</p>
|
|
442
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
|
+
|
|
443
450
|
---
|
|
444
451
|
|
|
445
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,24 @@ 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
|
+
|
|
8
26
|
## [0.10.0] - 2026-05-03
|
|
9
27
|
|
|
10
28
|
### Added
|
|
@@ -44,20 +62,20 @@ For SDK-specific changes, see `sdk-dotnet.md`, `sdk-python.md`, or `sdk-nodejs.m
|
|
|
44
62
|
**.NET** ([NuGet](https://www.nuget.org/packages/Envilder)):
|
|
45
63
|
|
|
46
64
|
```csharp
|
|
47
|
-
builder.Configuration.AddEnvilder("
|
|
65
|
+
builder.Configuration.AddEnvilder("envilder.json");
|
|
48
66
|
```
|
|
49
67
|
|
|
50
68
|
**Python** ([PyPI](https://pypi.org/project/envilder)):
|
|
51
69
|
|
|
52
70
|
```python
|
|
53
71
|
from envilder import Envilder
|
|
54
|
-
Envilder.load('
|
|
72
|
+
Envilder.load('envilder.json')
|
|
55
73
|
```
|
|
56
74
|
|
|
57
75
|
**CLI** (as always):
|
|
58
76
|
|
|
59
77
|
```bash
|
|
60
|
-
npx envilder --map=
|
|
78
|
+
npx envilder --map=envilder.json --envfile=.env
|
|
61
79
|
```
|
|
62
80
|
|
|
63
81
|
**GitHub Action:**
|
|
@@ -65,7 +83,7 @@ For SDK-specific changes, see `sdk-dotnet.md`, `sdk-python.md`, or `sdk-nodejs.m
|
|
|
65
83
|
```yaml
|
|
66
84
|
- uses: macalbert/envilder/github-action@v0
|
|
67
85
|
with:
|
|
68
|
-
map-file:
|
|
86
|
+
map-file: envilder.json
|
|
69
87
|
env-file: .env
|
|
70
88
|
```
|
|
71
89
|
|
package/docs/changelogs/gha.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
1
15
|
## [0.10.0] - 2026-05-03
|
|
2
16
|
|
|
3
17
|
### Fixed
|
|
@@ -1,3 +1,56 @@
|
|
|
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
|
+
|
|
1
54
|
## [0.3.0] - 2026-05-03
|
|
2
55
|
|
|
3
56
|
### Added
|
|
@@ -80,7 +133,7 @@
|
|
|
80
133
|
* **Initial release** β Runtime library for loading secrets from AWS SSM Parameter Store or Azure Key Vault
|
|
81
134
|
directly into .NET applications ([#147](https://github.com/macalbert/envilder/pull/147))
|
|
82
135
|
* `EnvilderClient` β Resolves secrets from a map-file and returns them as a dictionary
|
|
83
|
-
* `MapFileParser` β Parses `
|
|
136
|
+
* `MapFileParser` β Parses `envilder.json` files with `$config` section and variable mappings
|
|
84
137
|
* `SecretProviderFactory` β Creates the appropriate secret provider based on configuration
|
|
85
138
|
* `AwsSsmSecretProvider` β Fetches secrets from AWS SSM Parameter Store
|
|
86
139
|
* `AzureKeyVaultSecretProvider` β Fetches secrets from Azure Key Vault
|
|
@@ -1,3 +1,23 @@
|
|
|
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
|
+
|
|
1
21
|
## [0.2.0] - 2026-05-03
|
|
2
22
|
|
|
3
23
|
### Added
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
* **Environment-based loading** β `Envilder.load(env, env_mapping)` and
|
|
56
56
|
`Envilder.resolve_file(env, env_mapping)` accept a dictionary mapping environment names to
|
|
57
|
-
|
|
57
|
+
map file paths (or `None` to skip). Enables environment-aware secret loading without
|
|
58
58
|
external branching logic ([#163](https://github.com/macalbert/envilder/pull/163))
|
|
59
59
|
* **Source validation** β Empty or whitespace-only file paths in `env_mapping` now raise
|
|
60
60
|
`ValueError` with a descriptive message including the environment key
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
([#157](https://github.com/macalbert/envilder/pull/157))
|
|
83
83
|
* `Envilder` facade β High-level entry point with `load()`, `resolve_file()`, and `from_map_file()` methods
|
|
84
84
|
* `EnvilderClient` β Resolves secrets from a map-file and injects them into `os.environ`
|
|
85
|
-
* `MapFileParser` β Parses `
|
|
85
|
+
* `MapFileParser` β Parses `envilder.json` files with `$config` section and variable mappings
|
|
86
86
|
* `SecretProviderFactory` β Creates the appropriate secret provider based on configuration
|
|
87
87
|
* `AwsSsmSecretProvider` β Fetches secrets from AWS SSM Parameter Store via boto3
|
|
88
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;QAE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AAC,CAAC;IACtC,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,EAAE,0BAA0B,CAAC,CAAC;IAEpE,OAAO,IAAI,oBAAoB,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -9,13 +9,13 @@ import type { SecretProviderType } 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();
|
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,54 +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:",
|
|
109
114
|
"ajv": "^8.20.0",
|
|
110
115
|
"ajv-formats": "^3.0.1",
|
|
111
116
|
"glob": "^13.0.6",
|
|
112
|
-
"lefthook": "^2.1.
|
|
113
|
-
"secretlint": "^
|
|
114
|
-
"testcontainers": "^
|
|
117
|
+
"lefthook": "^2.1.9",
|
|
118
|
+
"secretlint": "^13.0.2",
|
|
119
|
+
"testcontainers": "^12.0.1",
|
|
115
120
|
"ts-node": "catalog:",
|
|
116
|
-
"tsx": "^4.
|
|
121
|
+
"tsx": "^4.22.3",
|
|
117
122
|
"typescript": "catalog:",
|
|
118
123
|
"vitest": "catalog:"
|
|
119
124
|
},
|
|
120
125
|
"engines": {
|
|
121
|
-
"node": ">=
|
|
122
|
-
},
|
|
123
|
-
"pnpm": {
|
|
124
|
-
"onlyBuiltDependencies": [
|
|
125
|
-
"cpu-features",
|
|
126
|
-
"esbuild",
|
|
127
|
-
"lefthook",
|
|
128
|
-
"protobufjs",
|
|
129
|
-
"sharp",
|
|
130
|
-
"ssh2"
|
|
131
|
-
],
|
|
132
|
-
"overrides": {
|
|
133
|
-
"defu": ">=6.1.5",
|
|
134
|
-
"lodash": ">=4.18.0",
|
|
135
|
-
"vite": "^7.3.2",
|
|
136
|
-
"yaml": ">=2.8.3"
|
|
137
|
-
}
|
|
126
|
+
"node": ">=22.12.0"
|
|
138
127
|
}
|
|
139
128
|
}
|