envilder 0.11.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 +97 -130
- package/docs/changelogs/cli.md +14 -0
- package/docs/changelogs/gha.md +12 -0
- package/docs/changelogs/sdk-dotnet.md +13 -0
- package/docs/changelogs/sdk-nodejs.md +13 -0
- 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/infrastructure/secret-provider-factory.js +4 -2
- package/lib/sdks/nodejs/src/infrastructure/secret-provider-factory.js.map +1 -1
- package/package.json +5 -5
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=envilder.json --envfile=.env
|
|
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
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
npx envilder --version
|
|
77
|
+
```
|
|
75
78
|
|
|
76
|
-
|
|
79
|
+
Or install globally:
|
|
77
80
|
|
|
78
|
-
|
|
81
|
+
```bash
|
|
82
|
+
npm install -g envilder
|
|
83
|
+
```
|
|
79
84
|
|
|
80
|
-
|
|
85
|
+
> **Requirements:** Node.js v22.12+. AWS CLI or Azure CLI configured.
|
|
86
|
+
> See [full requirements](docs/requirements-installation.md).
|
|
81
87
|
|
|
82
|
-
|
|
88
|
+
### 2. Create a mapping file (`envilder.json`)
|
|
83
89
|
|
|
84
90
|
```json
|
|
85
91
|
{
|
|
@@ -89,7 +95,7 @@ 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
101
|
npx envilder --map=envilder.json --envfile=.env
|
|
@@ -101,63 +107,11 @@ 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 v22.12+. 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: envilder.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: envilder.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
|
|
|
@@ -248,8 +202,6 @@ envilder --map=envilder.json --envfile=.env
|
|
|
248
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
|
|
@@ -344,13 +296,56 @@ const secrets = await Envilder.fromMapFile('envilder.json')
|
|
|
344
296
|
|
|
345
297
|
📖 **[Full Node.js SDK docs](./src/sdks/nodejs/README.md)** · 💡 **[Examples](./examples/sdk/nodejs/)**
|
|
346
298
|
|
|
347
|
-
|
|
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)**
|
|
337
|
+
|
|
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"]
|
|
@@ -363,66 +358,40 @@ graph LR
|
|
|
363
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
|
-
|
|
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
|
|
369
365
|
|
|
370
|
-
##
|
|
366
|
+
## What Envilder is not
|
|
371
367
|
|
|
372
|
-
Envilder is not a secrets manager. It
|
|
373
|
-
existing cloud vault and delivers secrets where they're needed (`.env` file, CI/CD, app memory).
|
|
374
|
-
No SaaS backend. No extra servers.
|
|
368
|
+
Envilder is not a secrets manager. It does not replace Vault, Infisical, or Doppler.
|
|
375
369
|
|
|
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 |
|
|
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.
|
|
384
372
|
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
> No data to migrate. No servers to deploy. No vendor to depend on.
|
|
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.
|
|
388
375
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
[aws-vault](https://github.com/99designs/aws-vault),
|
|
392
|
-
see [envilder.com](https://envilder.com).
|
|
393
|
-
|
|
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:
|
|
400
|
-
|
|
401
|
-
| Status | Feature |
|
|
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) |
|
|
381
|
+
Envilder already covers CLI, GitHub Action, and runtime SDKs for .NET, Python, and Node.js.
|
|
410
382
|
|
|
411
|
-
|
|
383
|
+
Next priorities include Go and Java SDKs, GCP Secret Manager, HashiCorp Vault, and exec mode.
|
|
412
384
|
|
|
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
|
|
|
@@ -447,8 +416,6 @@ All help is welcome! PRs, issues, ideas.
|
|
|
447
416
|
</a>.
|
|
448
417
|
</p>
|
|
449
418
|
|
|
450
|
-
---
|
|
451
|
-
|
|
452
419
|
## 📜 License
|
|
453
420
|
|
|
454
421
|
MIT © [Marçal Albert](https://github.com/macalbert)
|
package/docs/changelogs/cli.md
CHANGED
|
@@ -5,6 +5,20 @@ 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
|
+
|
|
8
22
|
## [0.11.0] - 2026-05-31
|
|
9
23
|
|
|
10
24
|
### Changed
|
package/docs/changelogs/gha.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
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
|
+
|
|
1
13
|
## [0.11.0] - 2026-05-31
|
|
2
14
|
|
|
3
15
|
### Changed
|
|
@@ -1,3 +1,16 @@
|
|
|
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
|
+
|
|
1
14
|
## [0.4.0] - 2026-05-18
|
|
2
15
|
|
|
3
16
|
### Changed
|
|
@@ -1,3 +1,16 @@
|
|
|
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
|
+
|
|
1
14
|
## [0.3.0] - 2026-05-31
|
|
2
15
|
|
|
3
16
|
### Changed
|
|
@@ -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"}
|
|
@@ -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,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IAC9E,CAAC;IAED,IAAI,CAAC,OAAO,IAAI,QAAQ,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACpE,CAAC;IAED,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC;IAED,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,mBAAmB,CAC1B,QAA4B;IAE5B,IAAI,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,CAAA,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC7E,CAAC;IAED,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACtD,OAAO,IAAI,2BAA2B,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,SAAS,iBAAiB,CAAC,OAA2B;IACpD,MAAM,aAAa,GAAG,OAAO;QAC3B,CAAC,CAAC,EAAE,WAAW,EAAE,qBAAqB,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QACrD,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,aAAa,CAAC,CAAC;IAC5C,OAAO,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAC1C,CAAC;AAED,SAAS,SAAS,CAAC,KAAyB;IAC1C,MAAM,OAAO,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,CAAC;IAC9B,OAAO,OAAO,IAAI,SAAS,CAAC;AAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "envilder",
|
|
3
|
-
"version": "0.11.
|
|
4
|
-
"packageManager": "pnpm@11.5.
|
|
3
|
+
"version": "0.11.1",
|
|
4
|
+
"packageManager": "pnpm@11.5.1+sha512.93f7b57422ea7068257235b4c16eb60762eb68e1dc23723199cc739043ea9be2c4143274a399d8c6defa2b1176226d9ca1c4b63482d6200c1a8fbaa78c1d1485",
|
|
5
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",
|
|
6
6
|
"homepage": "https://envilder.com",
|
|
7
7
|
"author": {
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
],
|
|
92
92
|
"type": "module",
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@aws-sdk/client-ssm": "^3.
|
|
95
|
-
"@aws-sdk/credential-providers": "^3.
|
|
94
|
+
"@aws-sdk/client-ssm": "^3.1063.0",
|
|
95
|
+
"@aws-sdk/credential-providers": "^3.1063.0",
|
|
96
96
|
"@azure/core-rest-pipeline": "^1.23.0",
|
|
97
97
|
"@azure/identity": "^4.13.1",
|
|
98
98
|
"@azure/keyvault-secrets": "^4.11.2",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"@secretlint/secretlint-rule-preset-recommend": "^13.0.2",
|
|
110
110
|
"@testcontainers/localstack": "^12.0.1",
|
|
111
111
|
"@types/node": "catalog:",
|
|
112
|
-
"@vercel/ncc": "^0.
|
|
112
|
+
"@vercel/ncc": "^0.44.0",
|
|
113
113
|
"@vitest/coverage-v8": "catalog:",
|
|
114
114
|
"ajv": "^8.20.0",
|
|
115
115
|
"ajv-formats": "^3.0.1",
|