envilder 0.10.0 → 0.11.1
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 +116 -142
- package/ROADMAP.md +2 -2
- package/docs/changelogs/cli.md +36 -4
- package/docs/changelogs/gha.md +26 -0
- package/docs/changelogs/sdk-dotnet.md +67 -1
- package/docs/changelogs/sdk-nodejs.md +33 -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/envilder/core/infrastructure/aws/AwsSecretProviderFactory.d.ts.map +1 -1
- package/lib/envilder/core/infrastructure/aws/AwsSecretProviderFactory.js +5 -3
- package/lib/envilder/core/infrastructure/aws/AwsSecretProviderFactory.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/infrastructure/secret-provider-factory.js +4 -2
- package/lib/sdks/nodejs/src/infrastructure/secret-provider-factory.js.map +1 -1
- package/package.json +26 -37
package/README.md
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
<b>One
|
|
9
|
-
<span>Define
|
|
8
|
+
<b>One secret mapping for local dev, CI/CD, and runtime.</b><br>
|
|
9
|
+
<span>Define secrets once in <code>envilder.json</code>. Resolve them consistently from AWS SSM or Azure Key Vault.</span><br>
|
|
10
|
+
<a href="https://envilder.com"><strong>Website & docs → envilder.com</strong></a>
|
|
10
11
|
</p>
|
|
11
12
|
|
|
12
13
|
[](https://www.npmjs.com/package/envilder)
|
|
@@ -21,19 +22,17 @@ Your new developer joins the team. They need environment variables to run the ap
|
|
|
21
22
|
What happens next? Someone sends API keys over Slack. Someone else digs up a wiki page
|
|
22
23
|
with outdated credentials. Forty-five minutes later, their `.env` file is "probably correct".
|
|
23
24
|
|
|
24
|
-
**Envilder fixes this
|
|
25
|
+
**Envilder fixes this with one versioned mapping contract.**
|
|
25
26
|
|
|
26
27
|
You create a JSON mapping between variable names and cloud secret paths. Envilder resolves
|
|
27
28
|
them from AWS SSM or Azure Key Vault. The same mapping file works in local dev (CLI),
|
|
28
29
|
CI/CD (GitHub Action), and application startup (runtime SDKs).
|
|
29
30
|
|
|
30
31
|
```bash
|
|
31
|
-
envilder --map=
|
|
32
|
+
npx envilder --map=envilder.json --envfile=.env
|
|
32
33
|
```
|
|
33
34
|
|
|
34
|
-
No SaaS middleman. No
|
|
35
|
-
|
|
36
|
-
---
|
|
35
|
+
No SaaS middleman. No duplicated config. No `.env` drift. Secrets stay in your cloud.
|
|
37
36
|
|
|
38
37
|
## The problem
|
|
39
38
|
|
|
@@ -42,44 +41,51 @@ No SaaS middleman. No vendor lock-in. Secrets stay in your cloud.
|
|
|
42
41
|
machine. It's slow, error-prone, and insecure.
|
|
43
42
|
- **Every environment has its own workflow.** Local dev reads `.env` files. CI/CD uses vault
|
|
44
43
|
integrations. Production has its own method. Same app, three different secret workflows.
|
|
45
|
-
- **No single
|
|
46
|
-
|
|
44
|
+
- **No single mapping contract.** Your cloud provider may be the source of truth for secret
|
|
45
|
+
values, but each environment still needs to know how application variables map to those
|
|
46
|
+
secrets. Without a versioned contract, dev, staging, and production configurations drift apart.
|
|
47
47
|
|
|
48
48
|
## How Envilder solves it
|
|
49
49
|
|
|
50
|
-
- 📋 **One mapping
|
|
51
|
-
needs. Git-versioned, PR-reviewable,
|
|
50
|
+
- 📋 **One mapping contract for everything.** A single `envilder.json` defines what secrets your app
|
|
51
|
+
needs and where they live. Git-versioned, PR-reviewable, and reused across environments.
|
|
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.
|
|
54
|
+
- 🔄 **Rotate secrets without config drift.** Keep application-facing variable names stable while
|
|
55
|
+
rotating real secret values in AWS SSM or Azure Key Vault. Local dev, CI/CD, and runtime keep
|
|
56
|
+
using the same mapping contract.
|
|
54
57
|
- 🛡️ **Your cloud, zero infrastructure.** Secrets stay in AWS SSM or Azure Key Vault. No SaaS
|
|
55
58
|
proxy, no extra servers, no data to migrate.
|
|
56
59
|
|
|
57
|
-
---
|
|
58
|
-
|
|
59
60
|
## ⚙️ Features
|
|
60
61
|
|
|
61
62
|
| Feature | Description |
|
|
62
63
|
|---------|-------------|
|
|
63
|
-
| 📋 **Declarative Mapping** | One JSON file defines
|
|
64
|
-
| ☁️ **
|
|
64
|
+
| 📋 **Declarative Mapping** | One JSON file defines how application variables map to cloud secrets. Git-versioned, PR-reviewable, and diff-able |
|
|
65
|
+
| ☁️ **Cloud-native Providers** | AWS SSM and Azure Key Vault today |
|
|
65
66
|
| 🔌 **Runtime SDKs** | Load secrets into memory at app startup: [.NET](./src/sdks/dotnet/README.md), [Python](./src/sdks/python/README.md), [Node.js](./src/sdks/nodejs/README.md). No `.env` on disk |
|
|
66
67
|
| ⚙️ **GitHub Action** | Pull secrets in CI/CD. Same mapping, zero manual config |
|
|
67
|
-
| 🔄 **
|
|
68
|
+
| 🔄 **Pull & Controlled Push** | Pull secrets to `.env`, or intentionally push local values to your cloud provider when bootstrapping or rotating |
|
|
68
69
|
| 🧱 **Zero Infrastructure** | No servers, no proxies, no SaaS. Uses cloud services you already have |
|
|
69
70
|
|
|
70
|
-
---
|
|
71
|
-
|
|
72
71
|
## 🚀 Quick Start
|
|
73
72
|
|
|
74
|
-
###
|
|
73
|
+
### 1. Run with npx
|
|
75
74
|
|
|
76
|
-
|
|
75
|
+
```bash
|
|
76
|
+
npx envilder --version
|
|
77
|
+
```
|
|
77
78
|
|
|
78
|
-
|
|
79
|
+
Or install globally:
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
```bash
|
|
82
|
+
npm install -g envilder
|
|
83
|
+
```
|
|
81
84
|
|
|
82
|
-
**
|
|
85
|
+
> **Requirements:** Node.js v22.12+. AWS CLI or Azure CLI configured.
|
|
86
|
+
> See [full requirements](docs/requirements-installation.md).
|
|
87
|
+
|
|
88
|
+
### 2. Create a mapping file (`envilder.json`)
|
|
83
89
|
|
|
84
90
|
```json
|
|
85
91
|
{
|
|
@@ -89,10 +95,10 @@ Watch how easy it is to automate your .env management in less than 1 minute:
|
|
|
89
95
|
}
|
|
90
96
|
```
|
|
91
97
|
|
|
92
|
-
|
|
98
|
+
### 3. Generate your `.env` file
|
|
93
99
|
|
|
94
100
|
```bash
|
|
95
|
-
npx envilder --map=
|
|
101
|
+
npx envilder --map=envilder.json --envfile=.env
|
|
96
102
|
```
|
|
97
103
|
|
|
98
104
|
That's it. Your secrets are pulled from AWS SSM and written to `.env`.
|
|
@@ -101,67 +107,15 @@ Add `.env` to `.gitignore`. The mapping file is versioned and reviewable in PRs.
|
|
|
101
107
|
> 💡 Using Azure Key Vault? Add a `$config` section to your mapping file.
|
|
102
108
|
> See [Mapping File Format](#️-mapping-file-format) below.
|
|
103
109
|
|
|
104
|
-
###
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
npm install -g envilder
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
> 💡 **No install needed?** `npx envilder` works out of the box.
|
|
111
|
-
>
|
|
112
|
-
> **Requirements:** Node.js v20+. AWS CLI or Azure CLI configured.
|
|
113
|
-
> See [full requirements](docs/requirements-installation.md).
|
|
114
|
-
|
|
115
|
-
### 🤖 GitHub Action
|
|
116
|
-
|
|
117
|
-
**AWS SSM (default):**
|
|
118
|
-
|
|
119
|
-
```yaml
|
|
120
|
-
- name: Configure AWS Credentials
|
|
121
|
-
uses: aws-actions/configure-aws-credentials@v5
|
|
122
|
-
with:
|
|
123
|
-
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
|
|
124
|
-
aws-region: us-east-1
|
|
125
|
-
|
|
126
|
-
- name: Pull secrets from AWS SSM
|
|
127
|
-
uses: macalbert/envilder/github-action@v0.8.0
|
|
128
|
-
with:
|
|
129
|
-
map-file: param-map.json
|
|
130
|
-
env-file: .env
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
**Azure Key Vault:**
|
|
134
|
-
|
|
135
|
-
```yaml
|
|
136
|
-
- name: Azure Login
|
|
137
|
-
uses: azure/login@v2
|
|
138
|
-
with:
|
|
139
|
-
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
|
140
|
-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
|
141
|
-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
|
|
142
|
-
|
|
143
|
-
- name: Pull secrets from Azure Key Vault
|
|
144
|
-
uses: macalbert/envilder/github-action@v0.8.0
|
|
145
|
-
with:
|
|
146
|
-
map-file: param-map.json
|
|
147
|
-
env-file: .env
|
|
148
|
-
provider: azure
|
|
149
|
-
vault-url: ${{ secrets.AZURE_KEY_VAULT_URL }}
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
📖 **[Full GitHub Action docs](./github-action/README.md)**
|
|
153
|
-
|
|
154
|
-
### 📚 More resources
|
|
110
|
+
### 🎥 See it in action
|
|
155
111
|
|
|
156
|
-
|
|
157
|
-
- [Push Command Guide](docs/push-command.md)
|
|
158
|
-
- [Pull Command Guide](docs/pull-command.md)
|
|
112
|
+
Watch how easy it is to automate your `.env` management in less than 1 minute:
|
|
159
113
|
|
|
160
|
-
|
|
114
|
+

|
|
161
115
|
|
|
162
116
|
## 🗺️ Mapping File Format
|
|
163
117
|
|
|
164
|
-
The mapping file (`
|
|
118
|
+
The mapping file (`envilder.json`) is the core of Envilder. It's the single model that defines
|
|
165
119
|
what secrets your app needs and where they live in your cloud provider. The same file is used by
|
|
166
120
|
the CLI, the GitHub Action, and the runtime SDKs. You can optionally include a `$config` section
|
|
167
121
|
to declare which provider and settings to use.
|
|
@@ -242,14 +196,12 @@ This means you can set a default provider in `$config` and override it per invoc
|
|
|
242
196
|
|
|
243
197
|
```bash
|
|
244
198
|
# Uses $config from the map file
|
|
245
|
-
envilder --map=
|
|
199
|
+
envilder --map=envilder.json --envfile=.env
|
|
246
200
|
|
|
247
201
|
# Overrides provider and vault URL from the map file
|
|
248
|
-
envilder --provider=azure --vault-url=https://other-vault.vault.azure.net --map=
|
|
202
|
+
envilder --provider=azure --vault-url=https://other-vault.vault.azure.net --map=envilder.json --envfile=.env
|
|
249
203
|
```
|
|
250
204
|
|
|
251
|
-
---
|
|
252
|
-
|
|
253
205
|
## 🧩 Runtime SDKs
|
|
254
206
|
|
|
255
207
|
Beyond the CLI and GitHub Action, Envilder provides **runtime SDKs** that resolve secrets
|
|
@@ -269,17 +221,17 @@ Load secrets into `IConfiguration` or inject them into the process environment:
|
|
|
269
221
|
```csharp
|
|
270
222
|
// Option A: integrate with IConfiguration
|
|
271
223
|
var config = new ConfigurationBuilder()
|
|
272
|
-
.AddEnvilder("
|
|
224
|
+
.AddEnvilder("envilder.json")
|
|
273
225
|
.Build();
|
|
274
226
|
|
|
275
227
|
var dbPassword = config["DB_PASSWORD"];
|
|
276
228
|
|
|
277
229
|
// Option B: resolve + inject into environment
|
|
278
|
-
|
|
230
|
+
Env.Load("envilder.json");
|
|
279
231
|
var dbPassword = Environment.GetEnvironmentVariable("DB_PASSWORD");
|
|
280
232
|
```
|
|
281
233
|
|
|
282
|
-
📖 **[Full .NET SDK docs](./src/sdks/dotnet/README.md)**
|
|
234
|
+
📖 **[Full .NET SDK docs](./src/sdks/dotnet/README.md)** · 💡 **[Examples](./examples/sdk/dotnet/)**
|
|
283
235
|
|
|
284
236
|
### Python SDK
|
|
285
237
|
|
|
@@ -297,7 +249,7 @@ Load secrets into your application with a single line:
|
|
|
297
249
|
from envilder import Envilder
|
|
298
250
|
|
|
299
251
|
# Resolve + inject into os.environ
|
|
300
|
-
Envilder.load('
|
|
252
|
+
Envilder.load('envilder.json')
|
|
301
253
|
```
|
|
302
254
|
|
|
303
255
|
Or route by environment, where each environment points to its own map file:
|
|
@@ -312,7 +264,7 @@ Envilder.load('production', {
|
|
|
312
264
|
})
|
|
313
265
|
```
|
|
314
266
|
|
|
315
|
-
📖 **[Full Python SDK docs](./src/sdks/python/README.md)**
|
|
267
|
+
📖 **[Full Python SDK docs](./src/sdks/python/README.md)** · 💡 **[Examples](./examples/sdk/python/)**
|
|
316
268
|
|
|
317
269
|
### Node.js SDK
|
|
318
270
|
|
|
@@ -328,7 +280,7 @@ Load secrets into your application with a single line:
|
|
|
328
280
|
import { Envilder } from '@envilder/sdk';
|
|
329
281
|
|
|
330
282
|
// Resolve + inject into process.env
|
|
331
|
-
const secrets = await Envilder.load('
|
|
283
|
+
const secrets = await Envilder.load('envilder.json');
|
|
332
284
|
```
|
|
333
285
|
|
|
334
286
|
Or use the fluent builder for full control:
|
|
@@ -336,21 +288,64 @@ Or use the fluent builder for full control:
|
|
|
336
288
|
```typescript
|
|
337
289
|
import { Envilder, SecretProviderType } from '@envilder/sdk';
|
|
338
290
|
|
|
339
|
-
const secrets = await Envilder.fromMapFile('
|
|
291
|
+
const secrets = await Envilder.fromMapFile('envilder.json')
|
|
340
292
|
.withProvider(SecretProviderType.Aws)
|
|
341
293
|
.withProfile('prod-account')
|
|
342
294
|
.resolve();
|
|
343
295
|
```
|
|
344
296
|
|
|
345
|
-
📖 **[Full Node.js SDK docs](./src/sdks/nodejs/README.md)**
|
|
297
|
+
📖 **[Full Node.js SDK docs](./src/sdks/nodejs/README.md)** · 💡 **[Examples](./examples/sdk/nodejs/)**
|
|
298
|
+
|
|
299
|
+
## 🤖 GitHub Action
|
|
300
|
+
|
|
301
|
+
**AWS SSM (default):**
|
|
302
|
+
|
|
303
|
+
```yaml
|
|
304
|
+
- name: Configure AWS Credentials
|
|
305
|
+
uses: aws-actions/configure-aws-credentials@v5
|
|
306
|
+
with:
|
|
307
|
+
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
|
|
308
|
+
aws-region: us-east-1
|
|
309
|
+
|
|
310
|
+
- name: Pull secrets from AWS SSM
|
|
311
|
+
uses: macalbert/envilder/github-action@v0.11.0
|
|
312
|
+
with:
|
|
313
|
+
map-file: envilder.json
|
|
314
|
+
env-file: .env
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
**Azure Key Vault:**
|
|
318
|
+
|
|
319
|
+
```yaml
|
|
320
|
+
- name: Azure Login
|
|
321
|
+
uses: azure/login@v2
|
|
322
|
+
with:
|
|
323
|
+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
|
324
|
+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
|
325
|
+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
|
|
326
|
+
|
|
327
|
+
- name: Pull secrets from Azure Key Vault
|
|
328
|
+
uses: macalbert/envilder/github-action@v0.11.0
|
|
329
|
+
with:
|
|
330
|
+
map-file: envilder.json
|
|
331
|
+
env-file: .env
|
|
332
|
+
provider: azure
|
|
333
|
+
vault-url: ${{ secrets.AZURE_KEY_VAULT_URL }}
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
📖 **[Full GitHub Action docs](./github-action/README.md)**
|
|
346
337
|
|
|
347
|
-
|
|
338
|
+
### 📚 More resources
|
|
339
|
+
|
|
340
|
+
- [📖 Full Documentation](https://envilder.com): the complete guide at envilder.com
|
|
341
|
+
- [Push Command Guide](docs/push-command.md)
|
|
342
|
+
- [Pull Command Guide](docs/pull-command.md)
|
|
348
343
|
|
|
349
344
|
## 🛠️ How it works
|
|
350
345
|
|
|
351
346
|
```mermaid
|
|
352
347
|
graph LR
|
|
353
|
-
A["Mapping
|
|
348
|
+
A["Mapping Contract<br/>(envilder.json)"] --> B[Envilder]:::core
|
|
354
349
|
B --> C["CLI → .env file"]
|
|
355
350
|
B --> D["GitHub Action → CI/CD"]
|
|
356
351
|
B --> E["SDK → app memory"]
|
|
@@ -360,69 +355,43 @@ graph LR
|
|
|
360
355
|
classDef core fill:#1f3b57,color:#fff,stroke:#ccc,stroke-width:2px;
|
|
361
356
|
```
|
|
362
357
|
|
|
363
|
-
1. **Define**: create
|
|
358
|
+
1. **Define**: create an `envilder.json` mapping env var names to cloud secret paths
|
|
364
359
|
2. **Resolve**: Envilder fetches each secret from your cloud vault
|
|
365
360
|
3. **Deliver**: secrets arrive as a `.env` file (CLI/GHA) or in-memory (SDKs)
|
|
366
|
-
4. **
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
## 🔍 Envilder vs. Alternatives
|
|
361
|
+
4. **Rotate**: update secret values in your cloud provider while keeping the same
|
|
362
|
+
application-facing mapping
|
|
363
|
+
5. **Bootstrap**: optionally push local values to your cloud provider when intentionally
|
|
364
|
+
setting up or rotating secrets
|
|
371
365
|
|
|
372
|
-
Envilder is not
|
|
373
|
-
existing cloud vault and delivers secrets where they're needed (`.env` file, CI/CD, app memory).
|
|
374
|
-
No SaaS backend. No extra servers.
|
|
366
|
+
## What Envilder is not
|
|
375
367
|
|
|
376
|
-
|
|
377
|
-
|-|----------|---------|-----------|
|
|
378
|
-
| **Source of truth** | Your cloud (SSM / Key Vault) | Encrypted `.env` in git | Infisical backend |
|
|
379
|
-
| **Declarative mapping** | ✅ JSON file | ❌ | ❌ |
|
|
380
|
-
| **Multi-cloud** | ✅ AWS + Azure | ❌ | ✅ |
|
|
381
|
-
| **Runtime SDKs** | ✅ .NET, Python, Node.js | ✅ Node.js | ✅ 6+ languages |
|
|
382
|
-
| **Requires SaaS** | ❌ | ❌ | Optional |
|
|
383
|
-
| **Infrastructure** | None | None | Server required |
|
|
368
|
+
Envilder is not a secrets manager. It does not replace Vault, Infisical, or Doppler.
|
|
384
369
|
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
> No data to migrate. No servers to deploy. No vendor to depend on.
|
|
370
|
+
It also does not replace AWS SSM or Azure Key Vault — it works on top of them. Envilder does not
|
|
371
|
+
store secrets, proxy requests, or introduce a SaaS control plane.
|
|
388
372
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
[aws-vault](https://github.com/99designs/aws-vault),
|
|
392
|
-
see [envilder.com](https://envilder.com).
|
|
373
|
+
Your cloud provider remains the source of truth. Envilder provides the mapping and resolution
|
|
374
|
+
layer that makes those secrets usable consistently across local development, CI/CD, and runtime.
|
|
393
375
|
|
|
394
|
-
|
|
376
|
+
Use Envilder when your secrets already live in your cloud provider and you want one versioned
|
|
377
|
+
`envilder.json` mapping contract everywhere your code runs.
|
|
395
378
|
|
|
396
379
|
## 🏁 What's Next
|
|
397
380
|
|
|
398
|
-
Envilder already covers
|
|
399
|
-
and runtime SDKs for .NET, Python, and Node.js. Here's what's coming:
|
|
381
|
+
Envilder already covers CLI, GitHub Action, and runtime SDKs for .NET, Python, and Node.js.
|
|
400
382
|
|
|
401
|
-
|
|
402
|
-
|--------|---------|
|
|
403
|
-
| ✅ | Pull & Push: bidirectional sync between `.env` and cloud vault |
|
|
404
|
-
| ✅ | Multi-provider: AWS SSM + Azure Key Vault |
|
|
405
|
-
| ✅ | GitHub Action for CI/CD |
|
|
406
|
-
| ✅ | .NET, Python, and Node.js SDKs |
|
|
407
|
-
| 🚧 | Go and Java SDKs |
|
|
408
|
-
| 🚧 | GCP Secret Manager |
|
|
409
|
-
| 🚧 | Exec mode (inject secrets without writing to disk) |
|
|
383
|
+
Next priorities include Go and Java SDKs, GCP Secret Manager, HashiCorp Vault, and exec mode.
|
|
410
384
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
---
|
|
385
|
+
See the [full roadmap](./ROADMAP.md).
|
|
414
386
|
|
|
415
387
|
## 🤝 Contributing
|
|
416
388
|
|
|
417
|
-
All
|
|
389
|
+
All contributions are welcome: PRs, issues, docs, examples, and feedback from real usage.
|
|
418
390
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
- 💬 Feedback and discussion welcome
|
|
422
|
-
- 🏗️ Check our [Architecture Documentation](./docs/architecture/README.md)
|
|
423
|
-
- 🔒 Review our [Security Policy](./docs/SECURITY.md)
|
|
391
|
+
Good first contributions include trying Envilder with an existing AWS SSM or Azure Key Vault
|
|
392
|
+
setup, improving examples, testing the GitHub Action, or reviewing SDK ergonomics.
|
|
424
393
|
|
|
425
|
-
|
|
394
|
+
See [CONTRIBUTING.md](./CONTRIBUTING.md).
|
|
426
395
|
|
|
427
396
|
## 💜 Sponsors
|
|
428
397
|
|
|
@@ -440,7 +409,12 @@ All help is welcome! PRs, issues, ideas.
|
|
|
440
409
|
Supported by <a href="https://localstack.cloud">LocalStack</a>.
|
|
441
410
|
</p>
|
|
442
411
|
|
|
443
|
-
|
|
412
|
+
<p align="center">
|
|
413
|
+
Envilder is also supported through the
|
|
414
|
+
<a href="https://aws.amazon.com/blogs/opensource/aws-cloud-credits-for-open-source-projects-affirming-our-commitment/">
|
|
415
|
+
AWS Open Source Credits Program
|
|
416
|
+
</a>.
|
|
417
|
+
</p>
|
|
444
418
|
|
|
445
419
|
## 📜 License
|
|
446
420
|
|
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,38 @@ For SDK-specific changes, see `sdk-dotnet.md`, `sdk-python.md`, or `sdk-nodejs.m
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [0.11.1] - 2026-06-25
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
* **AWS SSO / assumed-role profiles now resolve correctly** — Selecting an
|
|
13
|
+
SSO, IAM Identity Center, or assumed-role profile (via `--profile` or
|
|
14
|
+
`$config.profile`) now resolves credentials through the full AWS provider
|
|
15
|
+
chain instead of silently falling back to the default credentials.
|
|
16
|
+
Previously these profiles were ignored, reading and writing secrets against
|
|
17
|
+
the wrong AWS account
|
|
18
|
+
([#364](https://github.com/macalbert/envilder/issues/364))
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## [0.11.0] - 2026-05-31
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
* **BREAKING: Require Node.js >= 22.12** — pnpm 11, testcontainers v12,
|
|
27
|
+
commander 15, and commitlint 21 require Node.js 22.12+. The `engines`
|
|
28
|
+
field now enforces `>=22.12.0`
|
|
29
|
+
([#291](https://github.com/macalbert/envilder/pull/291))
|
|
30
|
+
|
|
31
|
+
### Dependencies
|
|
32
|
+
|
|
33
|
+
* Update all devDependencies to latest (TypeScript 6.0.3, Biome 2.4.16,
|
|
34
|
+
testcontainers 12.0.1, pnpm 11.5.0)
|
|
35
|
+
* Remove `rimraf` — replaced with zero-dependency `fs.rmSync` in clean scripts
|
|
36
|
+
([#291](https://github.com/macalbert/envilder/pull/291))
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
8
40
|
## [0.10.0] - 2026-05-03
|
|
9
41
|
|
|
10
42
|
### Added
|
|
@@ -44,20 +76,20 @@ For SDK-specific changes, see `sdk-dotnet.md`, `sdk-python.md`, or `sdk-nodejs.m
|
|
|
44
76
|
**.NET** ([NuGet](https://www.nuget.org/packages/Envilder)):
|
|
45
77
|
|
|
46
78
|
```csharp
|
|
47
|
-
builder.Configuration.AddEnvilder("
|
|
79
|
+
builder.Configuration.AddEnvilder("envilder.json");
|
|
48
80
|
```
|
|
49
81
|
|
|
50
82
|
**Python** ([PyPI](https://pypi.org/project/envilder)):
|
|
51
83
|
|
|
52
84
|
```python
|
|
53
85
|
from envilder import Envilder
|
|
54
|
-
Envilder.load('
|
|
86
|
+
Envilder.load('envilder.json')
|
|
55
87
|
```
|
|
56
88
|
|
|
57
89
|
**CLI** (as always):
|
|
58
90
|
|
|
59
91
|
```bash
|
|
60
|
-
npx envilder --map=
|
|
92
|
+
npx envilder --map=envilder.json --envfile=.env
|
|
61
93
|
```
|
|
62
94
|
|
|
63
95
|
**GitHub Action:**
|
|
@@ -65,7 +97,7 @@ For SDK-specific changes, see `sdk-dotnet.md`, `sdk-python.md`, or `sdk-nodejs.m
|
|
|
65
97
|
```yaml
|
|
66
98
|
- uses: macalbert/envilder/github-action@v0
|
|
67
99
|
with:
|
|
68
|
-
map-file:
|
|
100
|
+
map-file: envilder.json
|
|
69
101
|
env-file: .env
|
|
70
102
|
```
|
|
71
103
|
|
package/docs/changelogs/gha.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
## [0.11.1] - 2026-06-25
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
* **AWS SSO / assumed-role profiles now resolve correctly** — The bundled CLI
|
|
6
|
+
now resolves SSO, IAM Identity Center, and assumed-role profiles (via the
|
|
7
|
+
`profile` input or `$config.profile`) through the full AWS provider chain
|
|
8
|
+
instead of silently falling back to the default credentials
|
|
9
|
+
([#364](https://github.com/macalbert/envilder/issues/364))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## [0.11.0] - 2026-05-31
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
* **BREAKING: Require Node.js >= 22.12** — GitHub Actions workflows updated
|
|
18
|
+
to use `node-version: "22.x"`. The bundled CLI now requires Node.js 22.12+
|
|
19
|
+
([#291](https://github.com/macalbert/envilder/pull/291))
|
|
20
|
+
|
|
21
|
+
### Dependencies
|
|
22
|
+
|
|
23
|
+
* Bundle updated with latest CLI core (all dependencies at latest)
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
1
27
|
## [0.10.0] - 2026-05-03
|
|
2
28
|
|
|
3
29
|
### Fixed
|
|
@@ -1,3 +1,69 @@
|
|
|
1
|
+
## [0.4.1] - 2026-06-25
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
* **AWS SSO / assumed-role profiles now resolve at runtime** — Added the
|
|
6
|
+
`AWSSDK.SSO` and `AWSSDK.SSOOIDC` dependencies so SSO and IAM Identity
|
|
7
|
+
Center profiles (via `WithProfile()` or `$config.profile`) build their
|
|
8
|
+
credentials at runtime. Previously these profiles threw
|
|
9
|
+
`Assembly AWSSDK.SSOOIDC could not be found`
|
|
10
|
+
([#364](https://github.com/macalbert/envilder/issues/364))
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## [0.4.0] - 2026-05-18
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
* **BREAKING: Root namespace for public API** — All consumer-facing types
|
|
19
|
+
moved from `Envilder.Application` / `Envilder.Domain` to the root
|
|
20
|
+
`Envilder` namespace. Consumers now only need `using Envilder;`
|
|
21
|
+
* **BREAKING: Facade class renamed to `Env`** — The static facade class
|
|
22
|
+
is now `Env` instead of `Envilder` to avoid namespace/class name collision.
|
|
23
|
+
Use `Env.Load(...)`, `Env.ResolveFile(...)`, `Env.FromMapFile(...)` etc.
|
|
24
|
+
* **Extension methods follow .NET conventions** —
|
|
25
|
+
`AddEnvilder()` for `IConfigurationBuilder` moved to
|
|
26
|
+
`Microsoft.Extensions.Configuration` namespace;
|
|
27
|
+
`AddEnvilder()` for `IServiceCollection` moved to
|
|
28
|
+
`Microsoft.Extensions.DependencyInjection` namespace.
|
|
29
|
+
Both are now discoverable without any Envilder-specific using directives
|
|
30
|
+
|
|
31
|
+
### Migration
|
|
32
|
+
|
|
33
|
+
Replace:
|
|
34
|
+
|
|
35
|
+
```csharp
|
|
36
|
+
using Envilder.Application;
|
|
37
|
+
using Envilder.Domain;
|
|
38
|
+
using Envilder.Infrastructure.Configuration;
|
|
39
|
+
using Envilder.Infrastructure.DependencyInjection;
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
With:
|
|
43
|
+
|
|
44
|
+
```csharp
|
|
45
|
+
using Envilder;
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Replace facade calls:
|
|
49
|
+
|
|
50
|
+
```csharp
|
|
51
|
+
// Before
|
|
52
|
+
Envilder.Load("envilder.json");
|
|
53
|
+
Envilder.FromMapFile("envilder.json").Inject();
|
|
54
|
+
|
|
55
|
+
// After
|
|
56
|
+
Env.Load("envilder.json");
|
|
57
|
+
Env.FromMapFile("envilder.json").Inject();
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
`AddEnvilder()` extension methods now live in `Microsoft.Extensions.Configuration`
|
|
61
|
+
and `Microsoft.Extensions.DependencyInjection` — no Envilder-specific import needed.
|
|
62
|
+
ASP.NET projects already include these namespaces via global usings; console apps
|
|
63
|
+
may need to add them explicitly.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
1
67
|
## [0.3.0] - 2026-05-03
|
|
2
68
|
|
|
3
69
|
### Added
|
|
@@ -80,7 +146,7 @@
|
|
|
80
146
|
* **Initial release** — Runtime library for loading secrets from AWS SSM Parameter Store or Azure Key Vault
|
|
81
147
|
directly into .NET applications ([#147](https://github.com/macalbert/envilder/pull/147))
|
|
82
148
|
* `EnvilderClient` — Resolves secrets from a map-file and returns them as a dictionary
|
|
83
|
-
* `MapFileParser` — Parses `
|
|
149
|
+
* `MapFileParser` — Parses `envilder.json` files with `$config` section and variable mappings
|
|
84
150
|
* `SecretProviderFactory` — Creates the appropriate secret provider based on configuration
|
|
85
151
|
* `AwsSsmSecretProvider` — Fetches secrets from AWS SSM Parameter Store
|
|
86
152
|
* `AzureKeyVaultSecretProvider` — Fetches secrets from Azure Key Vault
|
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
## [0.3.1] - 2026-06-25
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
* **AWS SSO / assumed-role profiles now resolve correctly** — `withProfile()`
|
|
6
|
+
and `$config.profile` now resolve credentials through the full AWS provider
|
|
7
|
+
chain (`fromNodeProviderChain`), including SSO token resolution. Previously
|
|
8
|
+
SSO and assumed-role profiles were silently ignored, falling back to the
|
|
9
|
+
default credentials
|
|
10
|
+
([#364](https://github.com/macalbert/envilder/issues/364))
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## [0.3.0] - 2026-05-31
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
* **BREAKING: Require Node.js >= 22.12** — Aligns with the rest of the
|
|
19
|
+
monorepo. Node 18 and 20 are EOL; Node 22 is the only active LTS
|
|
20
|
+
([#291](https://github.com/macalbert/envilder/pull/291))
|
|
21
|
+
|
|
22
|
+
* **Pin dependencies to minimum viable versions** — AWS SDK `^3.700.0`, Azure
|
|
23
|
+
Identity `^4.5.0`, Azure Key Vault Secrets `^4.9.0` — avoids forcing
|
|
24
|
+
consumers to upgrade their cloud SDKs (ADR-0009)
|
|
25
|
+
([#291](https://github.com/macalbert/envilder/pull/291))
|
|
26
|
+
|
|
27
|
+
### Dependencies
|
|
28
|
+
|
|
29
|
+
* Remove `rimraf` — replaced with zero-dependency `fs.rmSync` in clean script
|
|
30
|
+
([#291](https://github.com/macalbert/envilder/pull/291))
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
1
34
|
## [0.2.0] - 2026-05-03
|
|
2
35
|
|
|
3
36
|
### 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,kBAAk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AAO,CAAC,UAAU,CAAC,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AwsSecretProviderFactory.d.ts","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/aws/AwsSecretProviderFactory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAG7E,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,aAAa,GACpB,eAAe,
|
|
1
|
+
{"version":3,"file":"AwsSecretProviderFactory.d.ts","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/aws/AwsSecretProviderFactory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAG7E,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,aAAa,GACpB,eAAe,CAMjB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { SSM } from '@aws-sdk/client-ssm';
|
|
2
|
-
import {
|
|
2
|
+
import { fromNodeProviderChain } from '@aws-sdk/credential-providers';
|
|
3
3
|
import { AwsSsmSecretProvider } from './AwsSsmSecretProvider.js';
|
|
4
4
|
export function createAwsSecretProvider(config) {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
var _a;
|
|
6
|
+
const profile = (_a = config.profile) === null || _a === void 0 ? void 0 : _a.trim();
|
|
7
|
+
const ssm = profile
|
|
8
|
+
? new SSM({ credentials: fromNodeProviderChain({ profile }) })
|
|
7
9
|
: new SSM();
|
|
8
10
|
return new AwsSsmSecretProvider(ssm);
|
|
9
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AwsSecretProviderFactory.js","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/aws/AwsSecretProviderFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"AwsSecretProviderFactory.js","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/aws/AwsSecretProviderFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAGtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,UAAU,uBAAuB,CACrC,MAAqB;;IAErB,MAAM,OAAO,GAAG,MAAA,MAAM,CAAC,OAAO,0CAAE,IAAI,EAAE,CAAC;IACvC,MAAM,GAAG,GAAG,OAAO;QACjB,CAAC,CAAC,IAAI,GAAG,CAAC,EAAE,WAAW,EAAE,qBAAqB,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;QAC9D,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC;IACd,OAAO,IAAI,oBAAoB,CAAC,GAAG,CAAC,CAAC;AACvC,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();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SSMClient } from '@aws-sdk/client-ssm';
|
|
2
|
-
import {
|
|
2
|
+
import { fromNodeProviderChain } from '@aws-sdk/credential-providers';
|
|
3
3
|
import { DefaultAzureCredential } from '@azure/identity';
|
|
4
4
|
import { SecretClient } from '@azure/keyvault-secrets';
|
|
5
5
|
import { SecretProviderType } from '../domain/secret-provider-type.js';
|
|
@@ -31,7 +31,9 @@ function createAzureProvider(vaultUrl) {
|
|
|
31
31
|
return new AzureKeyVaultSecretProvider(client);
|
|
32
32
|
}
|
|
33
33
|
function createAwsProvider(profile) {
|
|
34
|
-
const clientOptions = profile
|
|
34
|
+
const clientOptions = profile
|
|
35
|
+
? { credentials: fromNodeProviderChain({ profile }) }
|
|
36
|
+
: {};
|
|
35
37
|
const client = new SSMClient(clientOptions);
|
|
36
38
|
return new AwsSsmSecretProvider(client);
|
|
37
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-provider-factory.js","sourceRoot":"","sources":["../../../../../src/sdks/nodejs/src/infrastructure/secret-provider-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"secret-provider-factory.js","sourceRoot":"","sources":["../../../../../src/sdks/nodejs/src/infrastructure/secret-provider-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AAEzF,MAAM,UAAU,oBAAoB,CAClC,MAAqB,EACrB,OAAyB;;IAEzB,MAAM,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,MAAM,CAAC,QAAQ,CAAC;IACtD,MAAM,OAAO,GAAG,SAAS,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9D,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjE,MAAM,OAAO,GAAG,QAAQ,KAAK,kBAAkB,CAAC,KAAK,CAAC;IAEtD,IAAI,OAAO,IAAI,OAAO,EAAE,CAAC;QACvB,M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
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
|
+
"packageManager": "pnpm@11.5.1+sha512.93f7b57422ea7068257235b4c16eb60762eb68e1dc23723199cc739043ea9be2c4143274a399d8c6defa2b1176226d9ca1c4b63482d6200c1a8fbaa78c1d1485",
|
|
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.1063.0",
|
|
95
|
+
"@aws-sdk/credential-providers": "^3.1063.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
|
-
"@vercel/ncc": "^0.
|
|
112
|
+
"@vercel/ncc": "^0.44.0",
|
|
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
|
}
|