envilder 0.11.0 → 0.12.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 CHANGED
@@ -5,8 +5,9 @@
5
5
  </p>
6
6
 
7
7
  <p align="center">
8
- <b>One model. Your secrets. Every runtime.</b><br>
9
- <span>Define secret mappings once. Resolve them consistently from AWS SSM or Azure Key Vault.</span>
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
  [![npm version](https://img.shields.io/npm/v/envilder.svg)](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 in one command.**
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 vendor lock-in. Secrets stay in your cloud.
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 source of truth.** Without a versioned contract, dev/staging/production configs
46
- drift apart. Deployments break. Nobody knows which config is correct.
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 file for everything.** A single `envilder.json` defines what secrets your app
51
- needs. Git-versioned, PR-reviewable, the same across every environment.
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 all secrets. Git-versioned, PR-reviewable, diff-able |
64
- | ☁️ **Multi-Provider** | AWS SSM + Azure Key Vault. No vendor lock-in |
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
- | 🔄 **Bidirectional Sync** | Pull secrets to `.env` or push values back to the cloud |
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
- ### 🎥 See it in action
73
+ ### 1. Run with npx
74
+
75
+ ```bash
76
+ npx envilder --version
77
+ ```
75
78
 
76
- Watch how easy it is to automate your .env management in less than 1 minute:
79
+ Or install globally:
77
80
 
78
- ![Watch the video](https://github.com/user-attachments/assets/9f194143-117d-49f3-a6fb-f400040ea514)
81
+ ```bash
82
+ npm install -g envilder
83
+ ```
79
84
 
80
- ### 🏁 Get Started (2 steps)
85
+ > **Requirements:** Node.js v22.12+. AWS CLI or Azure CLI configured.
86
+ > See [full requirements](docs/requirements-installation.md).
81
87
 
82
- **1. Create a mapping file** (`envilder.json`):
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
- **2. Generate your `.env` file:**
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
- ### 💾 Installation
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
- - [📖 Full Documentation](https://envilder.com): the complete guide at envilder.com
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
+ ![Watch the video](https://github.com/user-attachments/assets/9f194143-117d-49f3-a6fb-f400040ea514)
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 Model (envilder.json)"] --> B[Envilder]:::core
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. **Push**: rotate or add secrets from your local environment back to the cloud
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
- ## 🔍 Envilder vs. Alternatives
366
+ ## What Envilder is not
371
367
 
372
- Envilder is not a secrets manager. It is a **configuration resolution layer** that reads from your
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
- | | Envilder | dotenvx | Infisical |
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
- > **When Envilder shines:** you already have secrets in AWS SSM or Azure Key Vault and want
386
- > a versioned mapping file that resolves them everywhere: local dev, CI/CD, and app runtime.
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
- For detailed tool-by-tool comparison including
390
- [chamber](https://github.com/segmentio/chamber) and
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 the full dev-to-production lifecycle with CLI, GitHub Action,
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
- 👉 **[Full roadmap with priorities](./ROADMAP.md)**
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 help is welcome! PRs, issues, ideas.
389
+ All contributions are welcome: PRs, issues, docs, examples, and feedback from real usage.
418
390
 
419
- - 🔧 Use our [Pull Request Template](.github/pull_request_template.md)
420
- - 🧪 Add tests where possible
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)
@@ -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.12.0] - 2026-06-26
9
+
10
+ ### Changed
11
+
12
+ * **Preserve existing `.env` formatting on pull** — When the target `.env`
13
+ file already exists, Envilder now updates values in place instead of
14
+ rewriting the file from scratch. Full-line comments, blank lines, key
15
+ ordering, `export` prefixes, and surrounding spacing are preserved; only
16
+ the values of mapped keys are replaced, and new keys are appended at the
17
+ end. (Inline comments after a value, e.g. `KEY=val # note`, are not
18
+ preserved.)
19
+
20
+ ---
21
+
8
22
  ## [0.11.0] - 2026-05-31
9
23
 
10
24
  ### Changed
@@ -1,3 +1,21 @@
1
+ ## [0.12.0] - 2026-06-26
2
+
3
+ ### Changed
4
+
5
+ * **Preserve existing `.env` formatting on pull** — When the target `.env`
6
+ file already exists, the action now updates values in place instead of
7
+ rewriting the file from scratch. Full-line comments, blank lines, key
8
+ ordering, `export` prefixes, and surrounding spacing are preserved; only
9
+ the values of mapped keys are replaced, and new keys are appended at the
10
+ end. (Inline comments after a value, e.g. `KEY=val # note`, are not
11
+ preserved.)
12
+
13
+ ### Dependencies
14
+
15
+ * Bundle updated with latest CLI core
16
+
17
+ ---
18
+
1
19
  ## [0.11.0] - 2026-05-31
2
20
 
3
21
  ### Changed
@@ -9,6 +9,9 @@ export declare class FileVariableStore implements IVariableStore {
9
9
  private readJsonFile;
10
10
  getEnvironment(source: string): Promise<Record<string, string>>;
11
11
  saveEnvironment(destination: string, envVariables: Record<string, string>): Promise<void>;
12
+ private readExistingEnvContent;
13
+ private buildEnvContent;
14
+ private formatValue;
12
15
  private escapeEnvValue;
13
16
  }
14
17
  export declare function readMapFileConfig(mapPath: string): Promise<MapFileConfig>;
@@ -1 +1 @@
1
- {"version":3,"file":"FileVariableStore.d.ts","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/variableStore/FileVariableStore.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAG3E,qBACa,iBAAkB,YAAW,cAAc;IACtD,OAAO,CAAC,MAAM,CAAU;gBAEW,MAAM,EAAE,OAAO;IAO5C,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAK3D,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;YAchD,YAAY;IAmBpB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAc/D,eAAe,CACnB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,OAAO,CAAC,IAAI,CAAC;IAiBhB,OAAO,CAAC,cAAc;CASvB;AAED,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,aAAa,CAAC,CAkBxB"}
1
+ {"version":3,"file":"FileVariableStore.d.ts","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/variableStore/FileVariableStore.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAG3E,qBACa,iBAAkB,YAAW,cAAc;IACtD,OAAO,CAAC,MAAM,CAAU;gBAEW,MAAM,EAAE,OAAO;IAO5C,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAK3D,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;YAchD,YAAY;IAmBpB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAc/D,eAAe,CACnB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,OAAO,CAAC,IAAI,CAAC;YAgBF,sBAAsB;IAoBpC,OAAO,CAAC,eAAe;IA+CvB,OAAO,CAAC,WAAW;IAqBnB,OAAO,CAAC,cAAc;CASvB;AAED,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,aAAa,CAAC,CAkBxB"}
@@ -99,9 +99,8 @@ let FileVariableStore = class FileVariableStore {
99
99
  }
100
100
  saveEnvironment(destination, envVariables) {
101
101
  return __awaiter(this, void 0, void 0, function* () {
102
- const envContent = Object.entries(envVariables)
103
- .map(([key, value]) => `${key}=${this.escapeEnvValue(value)}`)
104
- .join('\n');
102
+ const existingContent = yield this.readExistingEnvContent(destination);
103
+ const envContent = this.buildEnvContent(existingContent, envVariables);
105
104
  try {
106
105
  yield fs.writeFile(destination, envContent);
107
106
  }
@@ -112,6 +111,76 @@ let FileVariableStore = class FileVariableStore {
112
111
  }
113
112
  });
114
113
  }
114
+ readExistingEnvContent(destination) {
115
+ return __awaiter(this, void 0, void 0, function* () {
116
+ try {
117
+ return yield fs.readFile(destination, 'utf-8');
118
+ }
119
+ catch (error) {
120
+ if (error instanceof Error &&
121
+ error.code === 'ENOENT') {
122
+ return null;
123
+ }
124
+ const message = error instanceof Error ? error.message : String(error);
125
+ this.logger.error(`Failed to read environment file: ${message}`);
126
+ throw new EnvironmentFileError(`Failed to read environment file: ${message}`);
127
+ }
128
+ });
129
+ }
130
+ buildEnvContent(existingContent, envVariables) {
131
+ const pending = Object.assign({}, envVariables);
132
+ if (existingContent === null) {
133
+ return Object.entries(pending)
134
+ .map(([key, value]) => `${key}=${this.escapeEnvValue(value)}`)
135
+ .join('\n');
136
+ }
137
+ const newline = existingContent.includes('\r\n') ? '\r\n' : '\n';
138
+ const hasTrailingNewline = /\r?\n$/.test(existingContent);
139
+ const lines = existingContent === '' ? [] : existingContent.split(/\r?\n/);
140
+ if (hasTrailingNewline) {
141
+ lines.pop();
142
+ }
143
+ const assignmentRegex = /^(\s*(?:export\s+)?)([\w.-]+)(\s*=\s*)(.*)$/;
144
+ const updatedKeys = new Set();
145
+ const mergedLines = lines.map((line) => {
146
+ const match = assignmentRegex.exec(line);
147
+ if (match === null) {
148
+ return line;
149
+ }
150
+ const [, prefix, key, separator, originalValue] = match;
151
+ if (!Object.hasOwn(pending, key)) {
152
+ return line;
153
+ }
154
+ updatedKeys.add(key);
155
+ const value = this.formatValue(pending[key], originalValue);
156
+ return `${prefix}${key}${separator}${value}`;
157
+ });
158
+ for (const key of updatedKeys) {
159
+ delete pending[key];
160
+ }
161
+ const appended = Object.entries(pending).map(([key, value]) => `${key}=${this.escapeEnvValue(value)}`);
162
+ const allLines = appended.length > 0 ? [...mergedLines, ...appended] : mergedLines;
163
+ const result = allLines.join(newline);
164
+ return hasTrailingNewline ? result + newline : result;
165
+ }
166
+ formatValue(newValue, originalValue) {
167
+ const trimmed = originalValue.trim();
168
+ const quote = trimmed[0];
169
+ const isQuoted = trimmed.length >= 2 &&
170
+ (quote === '"' || quote === "'") &&
171
+ trimmed[trimmed.length - 1] === quote;
172
+ // Only keep the original quotes when the new value can be wrapped safely.
173
+ // A value containing the same quote, a backslash, or a newline would
174
+ // produce a string dotenv cannot parse back, so fall back to the
175
+ // unquoted escaped form instead of corrupting the value.
176
+ const isSafeToWrap = !newValue.includes(quote) &&
177
+ !newValue.includes('\\') &&
178
+ !/[\r\n]/.test(newValue);
179
+ if (isQuoted && isSafeToWrap) {
180
+ return `${quote}${newValue}${quote}`;
181
+ }
182
+ return this.escapeEnvValue(newValue);
183
+ }
115
184
  escapeEnvValue(value) {
116
185
  // codeql[js/incomplete-sanitization]
117
186
  // CodeQL flags this as incomplete sanitization because we don't escape backslashes
@@ -1 +1 @@
1
- {"version":3,"file":"FileVariableStore.js","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/variableStore/FileVariableStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,qCAAqC,CAAC;AAO7C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGhC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAG5B,YAAmC,MAAe;QAChD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,sBAAsB,CAAC,0BAA0B,CAAC,CAAC;QAC/D,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEK,UAAU,CAAC,MAAc;;YAC7B,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;YACzD,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;IAEK,gBAAgB,CAAC,MAAc;;YACnC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;YAC5C,MAAM,EAAE,OAAO,KAAc,GAAG,EAAZ,IAAI,UAAK,GAAG,EAA1B,WAAoB,CAAM,CAAC;YACjC,MAAM,MAAM,GACV,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;YACxD,MAAM,QAAQ,GAA2B,EAAE,CAAC;YAC5C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAA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AAM,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACpD,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBAChC,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;gBAC3B,OAAO,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5D,CAAC;YAAC,WAAM,CAAC;gBACP,MAAM,IAAI,oBAAoB,CAC5B,uCAAuC,OAAO,EAAE,CACjD,CAAC;YACJ,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,oBAAoB,EAAE,CAAC;gBAC1C,MAAM,KAAK,CAAC;YACd,CAAC;YACD,MAAM,IAAI,oBAAoB,CAAC,4BAA4B,OAAO,EAAE,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;CAAA"}
1
+ {"version":3,"file":"FileVariableStore.js","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/variableStore/FileVariableStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,qCAAqC,CAAC;AAO7C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGhC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAG5B,YAAmC,MAAe;QAChD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,sBAAsB,CAAC,0BAA0B,CAAC,CAAC;QAC/D,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,MAAM,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,OAAO,KAAK,CAAC,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;CACF,CAAA;AAlLY,iBAAiB;IAD7B,UAAU,EAAE;IAIE,WAAA,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;;GAHvB,iBAAiB,CAkL7B;;AAED,MAAM,UAAgB,iBAAiB,CACrC,OAAe;;QAEf,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACpD,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBAChC,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;gBAC3B,OAAO,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5D,CAAC;YAAC,WAAM,CAAC;gBACP,MAAM,IAAI,oBAAoB,CAC5B,uCAAuC,OAAO,EAAE,CACjD,CAAC;YACJ,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,oBAAoB,EAAE,CAAC;gBAC1C,MAAM,KAAK,CAAC;YACd,CAAC;YACD,MAAM,IAAI,oBAAoB,CAAC,4BAA4B,OAAO,EAAE,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "envilder",
3
- "version": "0.11.0",
4
- "packageManager": "pnpm@11.5.0",
3
+ "version": "0.12.0",
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.1057.0",
95
- "@aws-sdk/credential-providers": "^3.1057.0",
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.38.4",
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",