envilder 0.12.0 → 0.12.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/docs/changelogs/cli.md +26 -0
- package/docs/changelogs/gha.md +26 -0
- package/docs/changelogs/sdk-nodejs.md +16 -0
- package/lib/envilder/apps/shared/ContainerConfiguration.d.ts.map +1 -1
- package/lib/envilder/apps/shared/ContainerConfiguration.js +3 -3
- package/lib/envilder/apps/shared/ContainerConfiguration.js.map +1 -1
- package/lib/envilder/core/infrastructure/aws/AwsSecretProviderFactory.d.ts +3 -1
- package/lib/envilder/core/infrastructure/aws/AwsSecretProviderFactory.d.ts.map +1 -1
- package/lib/envilder/core/infrastructure/aws/AwsSecretProviderFactory.js +33 -6
- package/lib/envilder/core/infrastructure/aws/AwsSecretProviderFactory.js.map +1 -1
- package/lib/envilder/core/infrastructure/aws/AwsSsmSecretProvider.d.ts +12 -1
- package/lib/envilder/core/infrastructure/aws/AwsSsmSecretProvider.d.ts.map +1 -1
- package/lib/envilder/core/infrastructure/aws/AwsSsmSecretProvider.js +66 -2
- package/lib/envilder/core/infrastructure/aws/AwsSsmSecretProvider.js.map +1 -1
- package/lib/sdks/nodejs/src/infrastructure/secret-provider-factory.d.ts +1 -0
- package/lib/sdks/nodejs/src/infrastructure/secret-provider-factory.d.ts.map +1 -1
- package/lib/sdks/nodejs/src/infrastructure/secret-provider-factory.js +27 -3
- package/lib/sdks/nodejs/src/infrastructure/secret-provider-factory.js.map +1 -1
- package/package.json +2 -1
package/docs/changelogs/cli.md
CHANGED
|
@@ -5,6 +5,32 @@ For SDK-specific changes, see `sdk-dotnet.md`, `sdk-python.md`, or `sdk-nodejs.m
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [0.12.1] - 2026-06-26
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
* **Honor `$config.profile` for the AWS region, not just credentials** —
|
|
13
|
+
When a map file set an AWS profile via `$config.profile`, Envilder applied
|
|
14
|
+
it to credentials only; the AWS SDK fell back to the default profile's
|
|
15
|
+
region and silently read or wrote SSM parameters in the wrong
|
|
16
|
+
account-region. Envilder now sets `AWS_PROFILE` so the AWS SDK resolves
|
|
17
|
+
both the profile's region and its (SSO-capable) credentials natively.
|
|
18
|
+
Region resolution order is `AWS_REGION` > `AWS_DEFAULT_REGION` >
|
|
19
|
+
profile region > `us-east-1` fallback
|
|
20
|
+
([#382](https://github.com/macalbert/envilder/issues/382))
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
* **Log the effective AWS identity before resolving secrets** —
|
|
25
|
+
Before the first read or write, Envilder logs
|
|
26
|
+
`AWS identity → account=… region=… profile=…` so a misrouted account
|
|
27
|
+
or region is immediately visible. The account is read from the active
|
|
28
|
+
credentials, falling back to an STS `GetCallerIdentity` call when not
|
|
29
|
+
present, then `unknown`
|
|
30
|
+
([#382](https://github.com/macalbert/envilder/issues/382))
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
8
34
|
## [0.12.0] - 2026-06-26
|
|
9
35
|
|
|
10
36
|
### Changed
|
package/docs/changelogs/gha.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
## [0.12.1] - 2026-06-26
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
* **Honor `$config.profile` for the AWS region, not just credentials** —
|
|
6
|
+
When a map file set an AWS profile via `$config.profile`, the action
|
|
7
|
+
applied it to credentials only; the AWS SDK fell back to the default
|
|
8
|
+
profile's region and silently read SSM parameters from the wrong
|
|
9
|
+
account-region. The action now sets `AWS_PROFILE` so the AWS SDK resolves
|
|
10
|
+
both the profile's region and its (SSO-capable) credentials natively.
|
|
11
|
+
Region resolution order is `AWS_REGION` > `AWS_DEFAULT_REGION` >
|
|
12
|
+
profile region > `us-east-1` fallback
|
|
13
|
+
([#382](https://github.com/macalbert/envilder/issues/382))
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
* **Log the effective AWS identity before resolving secrets** —
|
|
18
|
+
Before the first read, the action logs
|
|
19
|
+
`AWS identity → account=… region=… profile=…` so a misrouted account
|
|
20
|
+
or region is immediately visible. The account is read from the active
|
|
21
|
+
credentials, falling back to an STS `GetCallerIdentity` call when not
|
|
22
|
+
present, then `unknown`
|
|
23
|
+
([#382](https://github.com/macalbert/envilder/issues/382))
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
1
27
|
## [0.12.0] - 2026-06-26
|
|
2
28
|
|
|
3
29
|
### Changed
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [0.3.1] - 2026-06-26
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
* **Honor the `profile` option for the AWS region, not just credentials** —
|
|
6
|
+
When a profile was set via the `profile` option or `$config.profile`, the
|
|
7
|
+
SDK applied it to credentials only; the AWS SDK fell back to the default
|
|
8
|
+
profile's region and silently read SSM parameters from the wrong
|
|
9
|
+
account-region. The SDK now sets `AWS_PROFILE` so the AWS SDK resolves both
|
|
10
|
+
the profile's region and its (SSO-capable) credentials natively. Region
|
|
11
|
+
resolution order is `AWS_REGION` > `AWS_DEFAULT_REGION` > profile
|
|
12
|
+
region > `us-east-1` fallback
|
|
13
|
+
([#382](https://github.com/macalbert/envilder/issues/382))
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
1
17
|
## [0.3.0] - 2026-05-31
|
|
2
18
|
|
|
3
19
|
### Changed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContainerConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/envilder/apps/shared/ContainerConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAO3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAKxE,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,+DAA+D,CAAC;AAKvE,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ContainerConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/envilder/apps/shared/ContainerConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAO3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAKxE,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,+DAA+D,CAAC;AAKvE,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;AAazD,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,SAAS,EACpB,MAAM,GAAE,aAAkB,EAC1B,OAAO,GAAE,qBAA0B,GAClC,IAAI,CAqCN;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAoBvE"}
|
|
@@ -9,7 +9,7 @@ import { ConsoleLogger } from '../../core/infrastructure/logger/ConsoleLogger.js
|
|
|
9
9
|
import { FileVariableStore } from '../../core/infrastructure/variableStore/FileVariableStore.js';
|
|
10
10
|
import { TYPES } from '../../core/types.js';
|
|
11
11
|
const providerFactories = {
|
|
12
|
-
aws: (config) => createAwsSecretProvider(config),
|
|
12
|
+
aws: (config, _options, logger) => createAwsSecretProvider(config, logger),
|
|
13
13
|
azure: (config, options) => createAzureSecretProvider(config, options),
|
|
14
14
|
};
|
|
15
15
|
export function configureInfrastructureServices(container, config = {}, options = {}) {
|
|
@@ -17,6 +17,7 @@ export function configureInfrastructureServices(container, config = {}, options
|
|
|
17
17
|
if (!container.isBound(TYPES.ILogger)) {
|
|
18
18
|
container.bind(TYPES.ILogger).to(ConsoleLogger).inSingletonScope();
|
|
19
19
|
}
|
|
20
|
+
const logger = container.get(TYPES.ILogger);
|
|
20
21
|
if (!container.isBound(TYPES.IVariableStore)) {
|
|
21
22
|
container
|
|
22
23
|
.bind(TYPES.IVariableStore)
|
|
@@ -25,7 +26,6 @@ export function configureInfrastructureServices(container, config = {}, options
|
|
|
25
26
|
}
|
|
26
27
|
const selectedProvider = ((_a = config.provider) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || 'aws';
|
|
27
28
|
if (config.profile && selectedProvider !== 'aws') {
|
|
28
|
-
const logger = container.get(TYPES.ILogger);
|
|
29
29
|
logger.warn(`--profile is only supported with the aws provider` +
|
|
30
30
|
` and will be ignored` +
|
|
31
31
|
` (current provider: ${selectedProvider}).`);
|
|
@@ -36,7 +36,7 @@ export function configureInfrastructureServices(container, config = {}, options
|
|
|
36
36
|
` Supported providers:` +
|
|
37
37
|
` ${Object.keys(providerFactories).join(', ')}`);
|
|
38
38
|
}
|
|
39
|
-
const secretProvider = factory(config, options);
|
|
39
|
+
const secretProvider = factory(config, options, logger);
|
|
40
40
|
container
|
|
41
41
|
.bind(TYPES.ISecretProvider)
|
|
42
42
|
.toConstantValue(secretProvider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContainerConfiguration.js","sourceRoot":"","sources":["../../../../src/envilder/apps/shared/ContainerConfiguration.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAC/G,OAAO,EAAE,8BAA8B,EAAE,MAAM,2EAA2E,CAAC;AAC3H,OAAO,EAAE,8BAA8B,EAAE,MAAM,2EAA2E,CAAC;AAC3H,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AACzG,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAKhF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AACpG,OAAO,EAEL,yBAAyB,GAC1B,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAC;AACjG,OAAO,EAA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8B,CAAC;SAClC,gBAAgB,EAAE,CAAC;IAEtB,SAAS;SACN,IAAI,CAA2B,KAAK,CAAC,wBAAwB,CAAC;SAC9D,EAAE,CAAC,wBAAwB,CAAC;SAC5B,gBAAgB,EAAE,CAAC;IAEtB,SAAS;SACN,IAAI,CAA+B,KAAK,CAAC,4BAA4B,CAAC;SACtE,EAAE,CAAC,4BAA4B,CAAC;SAChC,gBAAgB,EAAE,CAAC;AACxB,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { MapFileConfig } from '../../domain/MapFileConfig.js';
|
|
2
|
+
import type { ILogger } from '../../domain/ports/ILogger.js';
|
|
2
3
|
import type { ISecretProvider } from '../../domain/ports/ISecretProvider.js';
|
|
3
|
-
export declare function
|
|
4
|
+
export declare function resolveRegionWithFallback(profile?: string): Promise<string>;
|
|
5
|
+
export declare function createAwsSecretProvider(config: MapFileConfig, logger: ILogger): ISecretProvider;
|
|
4
6
|
//# sourceMappingURL=AwsSecretProviderFactory.d.ts.map
|
|
@@ -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,
|
|
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,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAG7E,wBAAsB,yBAAyB,CAC7C,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,CAAC,CAYjB;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,OAAO,GACd,eAAe,CAWjB"}
|
|
@@ -1,10 +1,37 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
1
10
|
import { SSM } from '@aws-sdk/client-ssm';
|
|
2
|
-
import {
|
|
11
|
+
import { STS } from '@aws-sdk/client-sts';
|
|
3
12
|
import { AwsSsmSecretProvider } from './AwsSsmSecretProvider.js';
|
|
4
|
-
export function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
13
|
+
export function resolveRegionWithFallback(profile) {
|
|
14
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
+
if (process.env.AWS_REGION) {
|
|
16
|
+
return process.env.AWS_REGION;
|
|
17
|
+
}
|
|
18
|
+
if (process.env.AWS_DEFAULT_REGION) {
|
|
19
|
+
return process.env.AWS_DEFAULT_REGION;
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
return yield new SSM(profile ? { profile } : {}).config.region();
|
|
23
|
+
}
|
|
24
|
+
catch (_a) {
|
|
25
|
+
return 'us-east-1';
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export function createAwsSecretProvider(config, logger) {
|
|
30
|
+
const { profile } = config;
|
|
31
|
+
const region = () => resolveRegionWithFallback(profile);
|
|
32
|
+
const clientConfig = profile ? { profile, region } : { region };
|
|
33
|
+
const ssm = new SSM(clientConfig);
|
|
34
|
+
const sts = new STS(Object.assign(Object.assign({}, clientConfig), { maxAttempts: 1, requestHandler: { requestTimeout: 2000 } }));
|
|
35
|
+
return new AwsSsmSecretProvider(ssm, logger, sts, profile);
|
|
9
36
|
}
|
|
10
37
|
//# sourceMappingURL=AwsSecretProviderFactory.js.map
|
|
@@ -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,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAI1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,UAAgB,yBAAyB,CAC7C,OAAgB;;QAEhB,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC;YAC3B,OAAO,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;QAChC,CAAC;QACD,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,CAAC;YACnC,OAAO,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;QACxC,CAAC;QACD,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACnE,CAAC;QAAC,WAAM,CAAC;YACP,OAAO,WAAW,CAAC;QACrB,CAAC;IACH,CAAC;CAAA;AAED,MAAM,UAAU,uBAAuB,CACrC,MAAqB,EACrB,MAAe;IAEf,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC3B,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;IACxD,MAAM,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;IAChE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC;IAClC,MAAM,GAAG,GAAG,IAAI,GAAG,iCACd,YAAY,KACf,WAAW,EAAE,CAAC,EACd,cAAc,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,IACxC,CAAC;IACH,OAAO,IAAI,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { type SSM } from '@aws-sdk/client-ssm';
|
|
2
|
+
import { type STS } from '@aws-sdk/client-sts';
|
|
3
|
+
import type { ILogger } from '../../domain/ports/ILogger.js';
|
|
2
4
|
import type { ISecretProvider } from '../../domain/ports/ISecretProvider.js';
|
|
3
5
|
export declare class AwsSsmSecretProvider implements ISecretProvider {
|
|
4
6
|
private ssm;
|
|
5
|
-
|
|
7
|
+
private logger;
|
|
8
|
+
private sts;
|
|
9
|
+
private profile?;
|
|
10
|
+
private identityLogged;
|
|
11
|
+
constructor(ssm: SSM, logger: ILogger, sts: STS, profile?: string);
|
|
6
12
|
getSecret(name: string): Promise<string | undefined>;
|
|
7
13
|
setSecret(name: string, value: string): Promise<void>;
|
|
14
|
+
private logIdentityOnce;
|
|
15
|
+
private resolveRegion;
|
|
16
|
+
private resolveAccount;
|
|
17
|
+
private tryCredentialsAccount;
|
|
18
|
+
private tryStsAccount;
|
|
8
19
|
}
|
|
9
20
|
//# sourceMappingURL=AwsSsmSecretProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AwsSsmSecretProvider.d.ts","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/aws/AwsSsmSecretProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,GAAG,EACT,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"AwsSsmSecretProvider.d.ts","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/aws/AwsSsmSecretProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,GAAG,EACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAA4B,KAAK,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAIzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAE7E,qBACa,oBAAqB,YAAW,eAAe;IAC1D,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,MAAM,CAAU;IACxB,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,cAAc,CAAS;gBAEnB,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM;IAO3D,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IA0BpD,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAW7C,eAAe;YAef,aAAa;YAQb,cAAc;YAQd,qBAAqB;YASrB,aAAa;CAQ5B"}
|
|
@@ -17,15 +17,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
import { GetParameterCommand, PutParameterCommand, } from '@aws-sdk/client-ssm';
|
|
20
|
+
import { GetCallerIdentityCommand } from '@aws-sdk/client-sts';
|
|
20
21
|
import { injectable } from 'inversify';
|
|
21
22
|
import { EnvironmentVariable } from '../../domain/EnvironmentVariable.js';
|
|
22
23
|
import { SecretOperationError } from '../../domain/errors/DomainErrors.js';
|
|
23
24
|
let AwsSsmSecretProvider = class AwsSsmSecretProvider {
|
|
24
|
-
constructor(ssm) {
|
|
25
|
+
constructor(ssm, logger, sts, profile) {
|
|
26
|
+
this.identityLogged = false;
|
|
25
27
|
this.ssm = ssm;
|
|
28
|
+
this.logger = logger;
|
|
29
|
+
this.sts = sts;
|
|
30
|
+
this.profile = profile;
|
|
26
31
|
}
|
|
27
32
|
getSecret(name) {
|
|
28
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
yield this.logIdentityOnce();
|
|
29
35
|
try {
|
|
30
36
|
const command = new GetParameterCommand({
|
|
31
37
|
Name: name,
|
|
@@ -48,6 +54,7 @@ let AwsSsmSecretProvider = class AwsSsmSecretProvider {
|
|
|
48
54
|
}
|
|
49
55
|
setSecret(name, value) {
|
|
50
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
yield this.logIdentityOnce();
|
|
51
58
|
const command = new PutParameterCommand({
|
|
52
59
|
Name: name,
|
|
53
60
|
Value: value,
|
|
@@ -57,10 +64,67 @@ let AwsSsmSecretProvider = class AwsSsmSecretProvider {
|
|
|
57
64
|
yield this.ssm.send(command);
|
|
58
65
|
});
|
|
59
66
|
}
|
|
67
|
+
logIdentityOnce() {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
var _a;
|
|
70
|
+
if (this.identityLogged) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
this.identityLogged = true;
|
|
74
|
+
const [region, account] = yield Promise.all([
|
|
75
|
+
this.resolveRegion(),
|
|
76
|
+
this.resolveAccount(),
|
|
77
|
+
]);
|
|
78
|
+
const profile = (_a = this.profile) !== null && _a !== void 0 ? _a : 'default';
|
|
79
|
+
this.logger.info(`AWS identity → account=${account} region=${region} profile=${profile}`);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
resolveRegion() {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
try {
|
|
85
|
+
return yield this.ssm.config.region();
|
|
86
|
+
}
|
|
87
|
+
catch (_a) {
|
|
88
|
+
return 'unknown';
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
resolveAccount() {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const fromCredentials = yield this.tryCredentialsAccount();
|
|
95
|
+
if (fromCredentials) {
|
|
96
|
+
return fromCredentials;
|
|
97
|
+
}
|
|
98
|
+
return this.tryStsAccount();
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
tryCredentialsAccount() {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
try {
|
|
104
|
+
const credentials = yield this.ssm.config.credentials();
|
|
105
|
+
return credentials.accountId;
|
|
106
|
+
}
|
|
107
|
+
catch (_a) {
|
|
108
|
+
return undefined;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
tryStsAccount() {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
var _a;
|
|
115
|
+
try {
|
|
116
|
+
const identity = yield this.sts.send(new GetCallerIdentityCommand({}));
|
|
117
|
+
return (_a = identity.Account) !== null && _a !== void 0 ? _a : 'unknown';
|
|
118
|
+
}
|
|
119
|
+
catch (_b) {
|
|
120
|
+
return 'unknown';
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
60
124
|
};
|
|
61
125
|
AwsSsmSecretProvider = __decorate([
|
|
62
126
|
injectable(),
|
|
63
|
-
__metadata("design:paramtypes", [Function])
|
|
127
|
+
__metadata("design:paramtypes", [Function, Object, Function, String])
|
|
64
128
|
], AwsSsmSecretProvider);
|
|
65
129
|
export { AwsSsmSecretProvider };
|
|
66
130
|
//# sourceMappingURL=AwsSsmSecretProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AwsSsmSecretProvider.js","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/aws/AwsSsmSecretProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,GAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"AwsSsmSecretProvider.js","sourceRoot":"","sources":["../../../../../src/envilder/core/infrastructure/aws/AwsSsmSecretProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,GAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,wBAAwB,EAAY,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAKpE,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAO/B,YAAY,GAAQ,EAAE,MAAe,EAAE,GAAQ,EAAE,OAAgB;QAFzD,mBAAc,GAAG,KAAK,CAAC;QAG7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAA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I,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,wBAAwB,CAAC,EAAE,CAAC,CAAC,CAAC;gBACvE,OAAO,MAAA,QAAQ,CAAC,OAAO,mCAAI,SAAS,CAAC;YACvC,CAAC;YAAC,WAAM,CAAC;gBACP,OAAO,SAAS,CAAC;YACnB,CAAC;QACH,CAAC;KAAA;CACF,CAAA;AAnGY,oBAAoB;IADhC,UAAU,EAAE;;GACA,oBAAoB,CAmGhC"}
|
|
@@ -2,4 +2,5 @@ import type { EnvilderOptions } from '../domain/envilder-options.js';
|
|
|
2
2
|
import type { MapFileConfig } from '../domain/map-file-config.js';
|
|
3
3
|
import type { ISecretProvider } from '../domain/ports/secret-provider.js';
|
|
4
4
|
export declare function createSecretProvider(config: MapFileConfig, options?: EnvilderOptions): ISecretProvider;
|
|
5
|
+
export declare function resolveRegionWithFallback(profile?: string): Promise<string>;
|
|
5
6
|
//# sourceMappingURL=secret-provider-factory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-provider-factory.d.ts","sourceRoot":"","sources":["../../../../../src/sdks/nodejs/src/infrastructure/secret-provider-factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"secret-provider-factory.d.ts","sourceRoot":"","sources":["../../../../../src/sdks/nodejs/src/infrastructure/secret-provider-factory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAK1E,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,aAAa,EACrB,OAAO,CAAC,EAAE,eAAe,GACxB,eAAe,CAmBjB;AAcD,wBAAsB,yBAAyB,CAC7C,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,CAAC,CAYjB"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
1
10
|
import { SSMClient } from '@aws-sdk/client-ssm';
|
|
2
|
-
import { fromIni } from '@aws-sdk/credential-providers';
|
|
3
11
|
import { DefaultAzureCredential } from '@azure/identity';
|
|
4
12
|
import { SecretClient } from '@azure/keyvault-secrets';
|
|
5
13
|
import { SecretProviderType } from '../domain/secret-provider-type.js';
|
|
@@ -30,9 +38,25 @@ function createAzureProvider(vaultUrl) {
|
|
|
30
38
|
const client = new SecretClient(vaultUrl, credential);
|
|
31
39
|
return new AzureKeyVaultSecretProvider(client);
|
|
32
40
|
}
|
|
41
|
+
export function resolveRegionWithFallback(profile) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
if (process.env.AWS_REGION) {
|
|
44
|
+
return process.env.AWS_REGION;
|
|
45
|
+
}
|
|
46
|
+
if (process.env.AWS_DEFAULT_REGION) {
|
|
47
|
+
return process.env.AWS_DEFAULT_REGION;
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
return yield new SSMClient(profile ? { profile } : {}).config.region();
|
|
51
|
+
}
|
|
52
|
+
catch (_a) {
|
|
53
|
+
return 'us-east-1';
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
33
57
|
function createAwsProvider(profile) {
|
|
34
|
-
const
|
|
35
|
-
const client = new SSMClient(
|
|
58
|
+
const region = () => resolveRegionWithFallback(profile);
|
|
59
|
+
const client = new SSMClient(profile ? { profile, region } : { region });
|
|
36
60
|
return new AwsSsmSecretProvider(client);
|
|
37
61
|
}
|
|
38
62
|
function normalize(value) {
|
|
@@ -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,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,k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ACP,OAAO,WAAW,CAAC;QACrB,CAAC;IACH,CAAC;CAAA;AAED,SAAS,iBAAiB,CAAC,OAA2B;IACpD,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;IACxD,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IACzE,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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "envilder",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
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",
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
"type": "module",
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"@aws-sdk/client-ssm": "^3.1063.0",
|
|
95
|
+
"@aws-sdk/client-sts": "^3.1075.0",
|
|
95
96
|
"@aws-sdk/credential-providers": "^3.1063.0",
|
|
96
97
|
"@azure/core-rest-pipeline": "^1.23.0",
|
|
97
98
|
"@azure/identity": "^4.13.1",
|