@go-to-k/cdkd 0.284.62 → 0.284.64
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/dist/{asg-provider-BfX7AwFi.js → asg-provider-DGJz_iFy.js} +2 -2
- package/dist/{asg-provider-BfX7AwFi.js.map → asg-provider-DGJz_iFy.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{deploy-engine-D8AIgkwy.js → deploy-engine-BtqjWvh5.js} +383 -32
- package/dist/deploy-engine-BtqjWvh5.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{program-XLMSMzWe.js → program-I-xR_ceK.js} +167 -32
- package/dist/{program-XLMSMzWe.js.map → program-I-xR_ceK.js.map} +1 -1
- package/dist/{version-DoW7XkO0.js → version-BtSUTHs5.js} +2 -2
- package/dist/{version-DoW7XkO0.js.map → version-BtSUTHs5.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-D8AIgkwy.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ interface PropertyChange {
|
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region src/deployment/secret-redaction.d.ts
|
|
93
|
+
type RecordedSecretValues = Map<string, string>;
|
|
93
94
|
type SecretMasker = (text: string) => string;
|
|
94
95
|
//#endregion
|
|
95
96
|
//#region src/provisioning/region-check.d.ts
|
|
@@ -1048,6 +1049,7 @@ interface DeployEngineOptions {
|
|
|
1048
1049
|
parentLogicalId: string;
|
|
1049
1050
|
parentRegion: string;
|
|
1050
1051
|
};
|
|
1052
|
+
inheritedSecrets?: RecordedSecretValues;
|
|
1051
1053
|
onCurrentStateLoaded?: (stackName: string, state: StackState | undefined) => Promise<void>;
|
|
1052
1054
|
recreateViaCcApiTargets?: ReadonlySet<string>;
|
|
1053
1055
|
recreateViaSdkProviderTargets?: ReadonlySet<string>;
|
|
@@ -1098,6 +1100,7 @@ declare class DeployEngine {
|
|
|
1098
1100
|
constructor(stateBackend: S3StateBackend, lockManager: LockManager, dagBuilder: DagBuilder, diffCalculator: DiffCalculator, providerRegistry: ProviderRegistry, options: DeployEngineOptions | undefined, stackRegion: string, exportIndexStore?: ExportIndexStore);
|
|
1099
1101
|
deploy(stackName: string, template: CloudFormationTemplate): Promise<DeployResult>;
|
|
1100
1102
|
private buildResolverContext;
|
|
1103
|
+
private redactParametersForDiff;
|
|
1101
1104
|
private redactOutputs;
|
|
1102
1105
|
private redactOperationsForJournal;
|
|
1103
1106
|
private redactStateForPersist;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/state.ts","../src/deployment/secret-redaction.ts","../src/provisioning/region-check.ts","../src/types/resource.ts","../src/types/config.ts","../src/utils/logger.ts","../src/utils/error-handler.ts","../src/utils/aws-clients.ts","../src/utils/aws-region-resolver.ts","../src/types/assembly.ts","../src/synthesis/stack-messages.ts","../src/synthesis/assembly-reader.ts","../src/cli/upload-cfn-template.ts","../src/synthesis/macro-expander.ts","../src/synthesis/synthesizer.ts","../src/types/deployment-events.ts","../src/provisioning/cloud-control-provider.ts","../src/provisioning/provider-registry.ts","../src/provisioning/final-snapshot.ts","../src/deployment/rollback-executor.ts","../src/types/rollback-journal.ts","../src/state/s3-state-backend.ts","../src/assets/asset-redirect.ts","../src/deployment/work-graph.ts","../src/assets/asset-publisher.ts","../src/state/lock-manager.ts","../src/analyzer/template-parser.ts","../src/analyzer/dag-builder.ts","../src/analyzer/diff-calculator.ts","../src/provisioning/providers/iam-role-provider.ts","../src/state/export-index-store.ts","../src/deployment/deploy-engine.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;KAuGY;UAyBK;EAEf;EAMA;EAEA;;UAsBe;EAEf;EAMA;EAEA;;UAMe;EAKf,SAAS;EAGT;EAMA;EAGA,WAAW,eAAe;EAG1B,SAAS;E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AyB;UAUhD;EAaR,WAAW;UAcH;UAWA;UAyCA;UAkBA;UAyBA;UAqDA;UA0CN;UAsBM;UAQA;UAkBA;UAYA;UA+BN;UAMA;;;;UCzfO;EAEf;EAEA;EAEA;EAEA,aAAa;EAEb;EAOA;EAWA;EASA;EAOA,0BAA0B;EAM1B,wBAAwB;EAaxB;EAaA,gBAAgB;EAgBhB;IACE;IACA;IACA;;EA4BF,wBAAwB,mBAAmB,OAAO,2BAA2B;EAuB7E,0BAA0B;EAmB1B,gCAAgC;EAmBhC,gBAAgB;EAkBhB;EASA;EAWA;EAWA;EAaA;EAYA,uBAAuB;;UAkER;EAEf;EAEA;EAEA;EAEA;EAwBA;EAQA;EAEA;EAEA;EAMA,UAAU;EAcV;;cAoOW;UACH;UACA;UACA;UAOA;UAaA;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UAUA;UAMA;UAQA;UAiBA;UAWA;UAOA;UASA;UAWA;UAQA;UASA;UAOA;EAER,YACE,cAAc,gBACd,aAAa,aACb,YAAY,YACZ,gBAAgB,gBAChB,kBAAkB,kBAClB,SAAS,iCACT,qBACA,mBAAmB;EA+Bf,OAAO,mBAAmB,UAAU,yBAAyB,QAAQ;UA8BnE;UAiDA;UA8DA;UA8BA;UAkDA;UA2BA;UAkCM;UAgDA;UAsGN;UAqEM;UAkqBA;UAokBA;UA4EA;UA2BA;UA+BA;UAuCN;UA+BM;UA4CA;UAqSN;UAaA;UAmBA;UAwBA;UAyCM;UA0CA;UAkKA;UAgtCN;UA8BA;UA4BA;UAkCA;UAgCA;UAOA;UAoCA;UA4EA;UA4BM;UA6BN;UAiCA;UAmBA;UAgBA;UAwCM;UAmRN"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/state.ts","../src/deployment/secret-redaction.ts","../src/provisioning/region-check.ts","../src/types/resource.ts","../src/types/config.ts","../src/utils/logger.ts","../src/utils/error-handler.ts","../src/utils/aws-clients.ts","../src/utils/aws-region-resolver.ts","../src/types/assembly.ts","../src/synthesis/stack-messages.ts","../src/synthesis/assembly-reader.ts","../src/cli/upload-cfn-template.ts","../src/synthesis/macro-expander.ts","../src/synthesis/synthesizer.ts","../src/types/deployment-events.ts","../src/provisioning/cloud-control-provider.ts","../src/provisioning/provider-registry.ts","../src/provisioning/final-snapshot.ts","../src/deployment/rollback-executor.ts","../src/types/rollback-journal.ts","../src/state/s3-state-backend.ts","../src/assets/asset-redirect.ts","../src/deployment/work-graph.ts","../src/assets/asset-publisher.ts","../src/state/lock-manager.ts","../src/analyzer/template-parser.ts","../src/analyzer/dag-builder.ts","../src/analyzer/diff-calculator.ts","../src/provisioning/providers/iam-role-provider.ts","../src/state/export-index-store.ts","../src/deployment/deploy-engine.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;KAuGY;UAyBK;EAEf;EAMA;EAEA;;UAsBe;EAEf;EAMA;EAEA;;UAMe;EAKf,SAAS;EAGT;EAMA;EAGA,WAAW,eAAe;EAG1B,SAAS;EAUT,UAAU;EAoBV,cAAc;EAqBd;EAgBA;EAcA;EAYA;EAGA;;UAMe;EAEf;EAGA;EAGA,YAAY;EAcZ,qBAAqB;EAGrB,aAAa;EAGb;EAGA,WAAW;EAmBX;EAMA;EAyBA;;UAMe;EAEf;EAGA;EAGA;EAGA;;KAMU;UAKK;EAEf;EAGA,YAAY;EAGZ;EAGA,oBAAoB;EAGpB,oBAAoB;EAGpB,kBAAkB;EAWlB,mBAAmB;;UAUJ;EAEf;EACA;EACA;;UAiFe;EAEf;EAGA;EAGA;EAGA;EAYA;;;;KC1fU,uBAAuB;KAkkFvB,gBAAgB;;;UChmFX;EASf;EAyCA;EAwBA;EA0BA;;;;UClHe;EACf;EACA;EACA,aAAa,eAAe;EAC5B,WAAW,eAAe;EAC1B,UAAU,eAAe;EACzB,aAAa;EACb,WAAW;EAWX;EACA,QAAQ;;UAMO;EACf;EACA;EACA;EACA;EACA;EACA;EAMA;;UAMe;EACf;EACA,aAAa;EACb;EACA;EACA,WAA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;UAOA;EAER,YACE,cAAc,gBACd,aAAa,aACb,YAAY,YACZ,gBAAgB,gBAChB,kBAAkB,kBAClB,SAAS,iCACT,qBACA,mBAAmB;EA+Bf,OAAO,mBAAmB,UAAU,yBAAyB,QAAQ;UA8BnE;UAqFA;UA0BA;UA8DA;UA8BA;UAkDA;UA2BA;UAkCM;UAgDA;UAsGN;UAqEM;UAqrBA;UAokBA;UA4EA;UA2BA;UA+BA;UAuCN;UA+BM;UA4CA;UAqSN;UAaA;UAmBA;UAwBA;UAyCM;UA0CA;UAwKA;UAguCN;UA8BA;UA4BA;UAkCA;UAgCA;UAOA;UAoCA;UA4EA;UA4BM;UA6BN;UAiCA;UAmBA;UAgBA;UAwCM;UAmRN"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as S3StateBackend, Ar as SynthesisError, G as IAMRoleProvider, Gt as DiffCalculator, J as ProviderRegistry, Mr as isCdkdError, Nr as normalizeAwsError, Pn as Synthesizer, Xt as TemplateParser, Yt as DagBuilder, Zt as LockManager, an as AssetPublisher, ar as resolveBucketRegion, br as LockError, cr as resetAwsClients, dr as CdkdError, fr as ConfigError, ir as clearBucketRegionCache, it as CloudControlProvider, jr as formatError, kr as StateError, lr as setAwsClients, mr as DependencyError, nr as AssemblyReader, or as AwsClients, r as DeployEngine, sr as getAwsClients, ur as AssetError, wr as ProvisioningError } from "./deploy-engine-BtqjWvh5.js";
|
|
2
2
|
import { n as getLogger, r as setLogger, t as ConsoleLogger } from "./logger-zRrlbaQt.js";
|
|
3
3
|
|
|
4
4
|
export { AssemblyReader, AssetError, AssetPublisher, AwsClients, CdkdError, CloudControlProvider, ConfigError, ConsoleLogger, DagBuilder, DependencyError, DeployEngine, DiffCalculator, IAMRoleProvider, LockError, LockManager, ProviderRegistry, ProvisioningError, S3StateBackend, StateError, SynthesisError, Synthesizer, TemplateParser, clearBucketRegionCache, formatError, getAwsClients, getLogger, isCdkdError, normalizeAwsError, resetAwsClients, resolveBucketRegion, setAwsClients, setLogger };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as beginCommandInterruptScope, $n as PARTITION_TABLE, $t as S3StateBackend, A as renderStatefulReason, An as runDockerForeground, At as dynamicReferenceTokens, B as exportAliasCollisionScrubWarning, Bn as resolveCaptureObservedState, Bt as s3BucketDomainName, C as isFinalSnapshotError, Cn as validateContainerRepoName, Cr as PartialFailureError, Ct as requireConfigArray, D as extractDeploymentEventError, Dn as formatDockerLoginError, Dr as StackHasActiveImportsError, Dt as STATE_SOURCED_READBACK_RULES, E as makeCanonicalizePropertiesFn, En as dockerSpawnEnvWithSensitive, Er as ResourceUpdateNotSupportedError, Et as STATE_SOURCED_CROSS_GENERATION_RULES, F as green, Fn as synthesisStatusMessage, Fr as isMarkedNonRetryable, Ft as redactSecretsForState, G as IAMRoleProvider, Gn as stateBucketExistenceConfirmed, Gt as DiffCalculator, H as secretBearingStateKeyWarning, Hn as resolveStateBucketWithDefault, Ht as s3BucketRegionalDomainName, I as red, In as getDefaultStateBucketName, Ir as isRetryableTransientError, It as scrubResourceRecord, J as ProviderRegistry, Jn as CFN_TEMPLATE_URL_LIMIT, Jt as withRetry, K as collectInlinePolicyNamesManagedBySiblings, Kn as warnDeprecatedNoPrefixCliFlag, Kt as INTRINSIC_KEYS, L as yellow, Ln as getLegacyStateBucketName, Lr as isThrottlingError, Lt as classifyReplaySecretRegion, M as bold, Mn as AssetManifestLoader, Mt as isSingleDynamicReferenceToken, N as cyan, Nn as getDockerImageBySourceHash, Nr as normalizeAwsError, Nt as maskSecretsInError, O as MULTI_REGION_RECREATE_BLOCKED_TYPES, On as getDockerCmd, Or as StackTerminationProtectionError, Ot as TEMPLATE_SOURCED_RULES, P as gray, Pn as Synthesizer, Pr as withErrorHandling, Pt as maskSecretsInText, Q as DEFAULT_STATE_PREFIX, Qn as expectedOwnerParam, Qt as displaySafe, R as collectDeclaredOutputNames, Rn as resolveApp, Rr as markNonRetryable, Rt as producerRegionsFromState, S as createPreDeleteFinalSnapshot, Sn as validateAssetBucketName, Sr as NestedStackChildDirectDestroyError, St as replayWarn, T as unsupportedFinalSnapshotError, Tn as buildDockerImage, Tr as ResourceTimeoutError, Tt as requireConfigString, U as stateKeySecretExposure, Un as resolveStateBucketWithDefaultAndSource, Ut as s3BucketWebsiteUrl, V as isExportAliasCollision, Vn as resolveSkipPrefix, Vt as s3BucketDualStackDomainName, W as getCurrentResourceSecrets, Wn as resolveUseCdkBootstrapAssets, Wt as applyRoleArnIfSet, X as findSilentDropProperties, Xn as findLargeInlineResources, Xt as TemplateParser, Y as findActionableSilentDrops, Yn as MIGRATE_TMP_PREFIX, Yt as DagBuilder, Z as CUSTOM_RESOURCE_RESPONSE_PREFIX, Zn as uploadCfnTemplate, Zt as LockManager, _ as computeImplicitDeleteEdges, _n as ensureAssetStorage, _r as LocalInvokeBuildError$1, _t as assertRegionMatch, a as DeploymentEventsStore, an as AssetPublisher, ar as resolveBucketRegion, at as slowCcOperationTimeoutMs, b as buildFinalSnapshotIdentifier, bn as parseBootstrapMarker, bt as configStringRefusal, c as replayFailedOperations, cn as buildAssetRedirectMap, cr as resetAwsClients, ct as IntrinsicFunctionResolver, d as updatePartialReason, dn as rewriteTemplateAssetReferences, dr as CdkdError, dt as getAccountInfo, en as rebuildClientForBucketRegion, er as canonicalizeRegion, et as endCommandInterruptScope, f as UNSPECIFIED_SKIP_REASON, fn as escapeRegExp, ft as parameterTypeMayLoseSecretIdentity, g as IMPLICIT_DELETE_DEPENDENCIES, gn as assertAssetBucketRegion, gr as DynamicReferenceRegionAmbiguousError, gt as resolveExplicitPhysicalId, h as maskingRetryLogger, hn as BOOTSTRAP_MARKER_PREFIX, hr as DeployCancelledError, ht as normalizeAwsTagsToCfn, i as DeploymentEventsReader, in as shouldRetainResource, it as CloudControlProvider, j as formatResourceLine, jn as runDockerStreaming, jt as errorCauseChain, k as isStatefulRecreateTargetSync, kn as partitionSensitiveEnv, kt as createSecretMasker, l as replayRollback, ln as createAssetRedirectResolver, lr as setAwsClients, lt as carriesDynamicReference, m as withResourceDeadline, mn as AssetModeResolver, mt as WAFv2WebACLProvider, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as importableOutputKeys, nr as AssemblyReader, nt as isInterruptedWaitError, o as planFailedOps, on as stringifyValue, or as AwsClients, ot as disableInstanceApiTermination, p as deleteSkipReason, pn as stripControlChars, pr as CrossAccountSecretRefusalError, pt as refStateLookupFromResource, q as clearOnUpdateRemoval, qn as CFN_TEMPLATE_BODY_LIMIT, qt as describeTypeWithThrottleRetry, r as DeployEngine, rn as importableOutputs, rr as processStackMessages, rt as startInterruptWatch, s as planRollback, sn as WorkGraph, sr as getAwsClients, st as isTerminationProtectionPropagationError, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as exportNamesCarriedFrom, tr as derivePartitionAndUrlSuffix, tt as interruptWatchListenerCount, u as updatePartialMessage, un as loadPublishableAssetManifest, ut as cfnRefValueFromPhysicalId, v as ATOMIC_FINAL_SNAPSHOT_TYPES, vn as getBootstrapMarkerKey, vr as LocalMigrateError, vt as coerceCfnBoolean, w as refusesFinalSnapshot, wn as buildDenyExternalAccessPolicy, wr as ProvisioningError, wt as requireConfigObject, x as ccRoutedFinalSnapshotError, xn as readBootstrapMarkerBody, xr as MissingCdkCliError, xt as readConfigString, y as PRE_DELETE_SNAPSHOT_TYPES, yn as isCrossRegionRedirect, yr as LocalStartServiceError, yt as configBooleanRefusal, z as collectPublishedOutputNames, zn as resolveAutoAssetStorage, zt as s3BucketArn } from "./deploy-engine-BtqjWvh5.js";
|
|
2
2
|
import { a as getLiveRenderer, c as PATTERN_B_RESOURCE_TYPES, d as generateResourceNameWithFallback, f as getCurrentStackName, h as withStackName, i as runStackBuffered, m as withSkipPrefix, n as getLogger, o as PATTERN_B_NAME_OPTIONS, s as PATTERN_B_NAME_PROPERTIES, u as generateResourceName } from "./logger-zRrlbaQt.js";
|
|
3
|
-
import { t as getCdkdVersion } from "./version-
|
|
4
|
-
import { t as ASGProvider } from "./asg-provider-
|
|
3
|
+
import { t as getCdkdVersion } from "./version-BtSUTHs5.js";
|
|
4
|
+
import { t as ASGProvider } from "./asg-provider-DGJz_iFy.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
7
7
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -59963,7 +59963,7 @@ var NestedStackProvider = class {
|
|
|
59963
59963
|
await this.runChildDeploy(ctx, logicalId, childStackName, childRegion, childTemplate, childParameters, grandchildTemplates);
|
|
59964
59964
|
const attributes = await this.readChildOutputsAsAttributes(ctx, childStackName, childRegion);
|
|
59965
59965
|
return {
|
|
59966
|
-
physicalId: this.synthesizeArn(ctx.accountId,
|
|
59966
|
+
physicalId: this.synthesizeArn(ctx.accountId, childRegion, ctx.parentStackName, logicalId),
|
|
59967
59967
|
attributes
|
|
59968
59968
|
};
|
|
59969
59969
|
}
|
|
@@ -60038,9 +60038,11 @@ var NestedStackProvider = class {
|
|
|
60038
60038
|
throw new Error(`AWS::CloudFormation::Stack: attribute '${attributeName}' is not in the recorded Outputs map. Only 'Outputs.<Key>' references to declared Output names on the child template are supported.`);
|
|
60039
60039
|
}
|
|
60040
60040
|
async runChildDeploy(parentCtx, logicalId, childStackName, childRegion, childTemplate, childParameters, grandchildTemplates) {
|
|
60041
|
+
const inheritedSecrets = getCurrentResourceSecrets();
|
|
60041
60042
|
const childEngine = new DeployEngine(parentCtx.stateBackend, parentCtx.lockManager, parentCtx.dagBuilder, parentCtx.diffCalculator, parentCtx.providerRegistry, {
|
|
60042
60043
|
...parentCtx.options ?? {},
|
|
60043
60044
|
parameters: childParameters,
|
|
60045
|
+
...inheritedSecrets && inheritedSecrets.size > 0 && { inheritedSecrets },
|
|
60044
60046
|
parentStackInfo: {
|
|
60045
60047
|
parentStack: parentCtx.parentStackName,
|
|
60046
60048
|
parentLogicalId: logicalId,
|
|
@@ -60070,8 +60072,22 @@ var NestedStackProvider = class {
|
|
|
60070
60072
|
deriveChildStackName(parentStackName, nestedLogicalId) {
|
|
60071
60073
|
return `${parentStackName}~${nestedLogicalId}`;
|
|
60072
60074
|
}
|
|
60073
|
-
|
|
60074
|
-
|
|
60075
|
+
/**
|
|
60076
|
+
* The synthesized `physicalId` recorded on the PARENT's
|
|
60077
|
+
* `AWS::CloudFormation::Stack` row.
|
|
60078
|
+
*
|
|
60079
|
+
* `childRegion` is the region the child stack was deployed into (its own
|
|
60080
|
+
* `StackState.region`), and the segment is LOAD-BEARING as of issue
|
|
60081
|
+
* [#2055](https://github.com/go-to-k/cdkd/issues/2055):
|
|
60082
|
+
* `IntrinsicFunctionResolver` reads it back as the producer region when a
|
|
60083
|
+
* parent property consumes `Fn::GetAtt: [<Child>, 'Outputs.<Name>']` and the
|
|
60084
|
+
* child's persisted output is a redacted `{{resolve:...}}` expression. A
|
|
60085
|
+
* secret NAME is regional, so resolving that expression anywhere but the
|
|
60086
|
+
* child's own region can answer with a different secret. Equal to the
|
|
60087
|
+
* parent's region today; do not collapse the two.
|
|
60088
|
+
*/
|
|
60089
|
+
synthesizeArn(accountId, childRegion, parentStackName, logicalId) {
|
|
60090
|
+
return `arn:cdkd-local:${childRegion}:${accountId}:nested-stack/${parentStackName}/${logicalId}`;
|
|
60075
60091
|
}
|
|
60076
60092
|
extractParameters(properties) {
|
|
60077
60093
|
const params = properties["Parameters"];
|
|
@@ -60113,6 +60129,42 @@ var NestedStackProvider = class {
|
|
|
60113
60129
|
}
|
|
60114
60130
|
return result;
|
|
60115
60131
|
}
|
|
60132
|
+
/**
|
|
60133
|
+
* Surface the child's PERSISTED outputs as the parent's `Outputs.<Key>`
|
|
60134
|
+
* attributes, VERBATIM — including a secret-bearing one, which PR #1899
|
|
60135
|
+
* persists as its unresolved `{{resolve:...}}` expression.
|
|
60136
|
+
*
|
|
60137
|
+
* DELIBERATELY NOT the place the expression is re-resolved (issue
|
|
60138
|
+
* [#2055](https://github.com/go-to-k/cdkd/issues/2055)). Re-resolving here
|
|
60139
|
+
* would be easy — `readChildOutputsAsAttributes` is already async — and it
|
|
60140
|
+
* would trade one bug for a worse one: this map becomes the parent's
|
|
60141
|
+
* `ResourceState.attributes`, and every CONSUMER resource then reads the
|
|
60142
|
+
* plaintext through `Fn::GetAtt` with no entry in its OWN
|
|
60143
|
+
* `recordedSecretValues`, so the deploy engine's save choke point has nothing
|
|
60144
|
+
* to redact it back to and the consumer's `state.json` persists the decrypted
|
|
60145
|
+
* secret. Keeping the expression here keeps BOTH the parent's nested-stack row
|
|
60146
|
+
* and every consumer's record redacted.
|
|
60147
|
+
*
|
|
60148
|
+
* The re-resolution therefore lives at the READ site, in
|
|
60149
|
+
* `IntrinsicFunctionResolver.resolveGetAtt`, where the CONSUMER's resolver
|
|
60150
|
+
* context is in hand — the same seam and the same reason as the
|
|
60151
|
+
* `Fn::ImportValue` / `Fn::GetStackOutput` arms of issue #1934.
|
|
60152
|
+
*
|
|
60153
|
+
* "A read site risks missing a caller" is answered for the RESOLUTION path by
|
|
60154
|
+
* there being exactly one: the flat-key attribute lookup, which
|
|
60155
|
+
* `getAttribute()` below exists to prove is the only route (it throws for
|
|
60156
|
+
* anything that falls through it).
|
|
60157
|
+
*
|
|
60158
|
+
* It is NOT answered for every reader of `ResourceState.attributes` in the
|
|
60159
|
+
* codebase, and an earlier revision of this note claimed it was.
|
|
60160
|
+
* `AttributeFetcher.cacheFallback` in `src/analyzer/orphan-rewriter.ts` reads
|
|
60161
|
+
* `orphan.attributes?.[attribute]` directly under `cdkd orphan --force` and
|
|
60162
|
+
* has no resolver context to re-resolve with, so it splices the token
|
|
60163
|
+
* verbatim into the referring resource's state and warns about exactly that.
|
|
60164
|
+
* The seam decision above is unchanged — putting the plaintext here would
|
|
60165
|
+
* make EVERY consumer persist it — but the count is "one resolution path",
|
|
60166
|
+
* not "one reader".
|
|
60167
|
+
*/
|
|
60116
60168
|
buildOutputsAttributes(outputs) {
|
|
60117
60169
|
const attributes = {};
|
|
60118
60170
|
for (const [key, value] of Object.entries(outputs)) attributes[`Outputs.${key}`] = value;
|
|
@@ -62697,6 +62749,55 @@ function isStackNotFoundError(err) {
|
|
|
62697
62749
|
//#endregion
|
|
62698
62750
|
//#region src/cli/commands/diff-recursive.ts
|
|
62699
62751
|
const logger = getLogger().child("DiffRecursive");
|
|
62752
|
+
/** Every `Ref` target reachable from a value, collected in one walk. */
|
|
62753
|
+
function collectRefTargets(value, refs) {
|
|
62754
|
+
if (Array.isArray(value)) {
|
|
62755
|
+
for (const element of value) collectRefTargets(element, refs);
|
|
62756
|
+
return;
|
|
62757
|
+
}
|
|
62758
|
+
if (!value || typeof value !== "object") return;
|
|
62759
|
+
const obj = value;
|
|
62760
|
+
if (typeof obj["Ref"] === "string") refs.add(obj["Ref"]);
|
|
62761
|
+
for (const nested of Object.values(obj)) collectRefTargets(nested, refs);
|
|
62762
|
+
}
|
|
62763
|
+
/**
|
|
62764
|
+
* Whether ANY condition in `template` references one of `tokenParameterNames`
|
|
62765
|
+
* (issue #1903, review round 2).
|
|
62766
|
+
*
|
|
62767
|
+
* WHY THIS EXISTS AND WHY THE BROAD FORM IS NOT MERELY CONSERVATIVE. The
|
|
62768
|
+
* token-parameter guard originally skipped condition evaluation for the WHOLE
|
|
62769
|
+
* template as soon as any bound parameter was a redacted token, on the argument
|
|
62770
|
+
* that the cost is "a condition-false resource is diffed rather than pruned".
|
|
62771
|
+
* That is only half of it: leaving `conditions` UNDEFINED also means `resolveIf`
|
|
62772
|
+
* finds no entry, warns, and takes the FALSE branch for every `Fn::If` in every
|
|
62773
|
+
* property value — so a condition-TRUE property diffs as a spurious UPDATE
|
|
62774
|
+
* (perpetual, and `--fail` exits 1) and condition-gated resources surface as
|
|
62775
|
+
* phantom CREATEs. And it fired whenever ANY parameter was token-valued, even
|
|
62776
|
+
* when not one condition mentioned it.
|
|
62777
|
+
*
|
|
62778
|
+
* So the skip is narrowed to what it can actually get wrong: a condition whose
|
|
62779
|
+
* verdict DEPENDS on a value this side does not have.
|
|
62780
|
+
*
|
|
62781
|
+
* NO TRANSITIVE `{Condition: X}` WALK, and its absence is a reachability
|
|
62782
|
+
* argument rather than an omission. An `Fn::And` over a NAMED condition (issue
|
|
62783
|
+
* #840's shape) does inherit that condition's dependency — but the named
|
|
62784
|
+
* condition is itself an entry in this same `Conditions` map, and this scan
|
|
62785
|
+
* visits EVERY entry, so the dependency is already found directly on the
|
|
62786
|
+
* referenced condition. A chain walk was written first and measured dead: with
|
|
62787
|
+
* it removed, a template whose `IsDev` wraps `{Condition: IsProd}` while only
|
|
62788
|
+
* `IsProd` names the token parameter still answers `true`.
|
|
62789
|
+
*/
|
|
62790
|
+
function conditionsDependOnTokenParameters(template, tokenParameterNames) {
|
|
62791
|
+
const templateConditions = template.Conditions;
|
|
62792
|
+
if (!templateConditions || typeof templateConditions !== "object") return false;
|
|
62793
|
+
if (tokenParameterNames.size === 0) return false;
|
|
62794
|
+
for (const definition of Object.values(templateConditions)) {
|
|
62795
|
+
const refs = /* @__PURE__ */ new Set();
|
|
62796
|
+
collectRefTargets(definition, refs);
|
|
62797
|
+
for (const ref of refs) if (tokenParameterNames.has(ref)) return true;
|
|
62798
|
+
}
|
|
62799
|
+
return false;
|
|
62800
|
+
}
|
|
62700
62801
|
/** Empty template used to diff a removed nested child's state → all DELETE. */
|
|
62701
62802
|
const EMPTY_TEMPLATE = { Resources: {} };
|
|
62702
62803
|
/**
|
|
@@ -62787,6 +62888,11 @@ async function computeStackDiff(currentState, template, region, stackName, state
|
|
|
62787
62888
|
const intrinsicResolver = new IntrinsicFunctionResolver(region, { cfnFallback: cfnFallback ?? true });
|
|
62788
62889
|
let mergedParameters = parameters;
|
|
62789
62890
|
let parametersBound = false;
|
|
62891
|
+
const tokenParameterNames = new Set(Object.entries(parameters ?? {}).filter(([, value]) => carriesDynamicReference(value)).map(([name]) => name));
|
|
62892
|
+
for (const name of tokenParameterNames) {
|
|
62893
|
+
const declaredType = (template.Parameters?.[name])?.Type;
|
|
62894
|
+
if (typeof declaredType === "string" && parameterTypeMayLoseSecretIdentity(declaredType)) logger.warn(`Stack ${stackName}: parameter '${name}' is declared 'Type: ${declaredType}' and is fed a secret dynamic reference. 'cdkd deploy' refuses this — declare it 'Type: String' — and this diff keeps the unresolved reference rather than coercing it.`);
|
|
62895
|
+
}
|
|
62790
62896
|
try {
|
|
62791
62897
|
const userParameters = {};
|
|
62792
62898
|
for (const [name, value] of Object.entries(parameters ?? {})) if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") userParameters[name] = String(value);
|
|
@@ -62795,13 +62901,14 @@ async function computeStackDiff(currentState, template, region, stackName, state
|
|
|
62795
62901
|
...parameters,
|
|
62796
62902
|
...templateParameters
|
|
62797
62903
|
};
|
|
62904
|
+
for (const name of tokenParameterNames) mergedParameters[name] = (parameters ?? {})[name];
|
|
62798
62905
|
parametersBound = true;
|
|
62799
62906
|
} catch (error) {
|
|
62800
62907
|
logger.debug(`Diff parameter binding for stack ${stackName} is partial: ${error instanceof Error ? error.message : String(error)}`);
|
|
62801
62908
|
}
|
|
62802
62909
|
let effectiveTemplate = template;
|
|
62803
62910
|
let conditions;
|
|
62804
|
-
if (parametersBound) try {
|
|
62911
|
+
if (parametersBound && !conditionsDependOnTokenParameters(template, tokenParameterNames)) try {
|
|
62805
62912
|
conditions = await intrinsicResolver.evaluateConditions({
|
|
62806
62913
|
template,
|
|
62807
62914
|
resources: currentState.resources,
|
|
@@ -62874,7 +62981,8 @@ async function resolveChildStackParameters(parentStackRow, parentTemplate, paren
|
|
|
62874
62981
|
stateBackend,
|
|
62875
62982
|
stackName: parentStackName,
|
|
62876
62983
|
bestEffort: true,
|
|
62877
|
-
...parentParameters && { parameters: parentParameters }
|
|
62984
|
+
...parentParameters && { parameters: parentParameters },
|
|
62985
|
+
skipDynamicReferences: true
|
|
62878
62986
|
});
|
|
62879
62987
|
} catch {}
|
|
62880
62988
|
return resolved;
|
|
@@ -65076,7 +65184,7 @@ function makeCrossStackPrePass(deps) {
|
|
|
65076
65184
|
try {
|
|
65077
65185
|
loaded = await backend.getState(producer.stack, producer.region);
|
|
65078
65186
|
} catch (err) {
|
|
65079
|
-
logger.debug(`Scrub of ${stackName}: could not re-read producer '${producer.stack}' (${producer.region}) to classify its stored value: ${maskSecretsInText(err instanceof Error ? err.message : String(err), secrets)}`);
|
|
65187
|
+
logger.debug(`Scrub of ${stackName}: could not re-read producer '${maskSecretsInText(producer.stack, secrets)}' (${producer.region}) to classify its stored value: ${maskSecretsInText(err instanceof Error ? err.message : String(err), secrets)}`);
|
|
65080
65188
|
return;
|
|
65081
65189
|
}
|
|
65082
65190
|
const outputs = loaded?.state?.outputs;
|
|
@@ -65089,15 +65197,16 @@ function makeCrossStackPrePass(deps) {
|
|
|
65089
65197
|
recordedImports: [],
|
|
65090
65198
|
recordedOutputReads: []
|
|
65091
65199
|
};
|
|
65200
|
+
const where = `${key} in ${origin}${path ? ` at ${path}` : ""}`;
|
|
65092
65201
|
try {
|
|
65093
65202
|
await resolver.resolve({ [key]: node[key] }, probe);
|
|
65094
65203
|
} catch (err) {
|
|
65095
65204
|
if (!nodeCanRefuse) {
|
|
65096
|
-
logger.debug(`Scrub of ${stackName}: ${
|
|
65205
|
+
logger.debug(`Scrub of ${stackName}: ${where} could not be resolved, and this position cannot refuse: ${maskSecretsInText(err instanceof Error ? err.message : String(err), secrets)}`);
|
|
65097
65206
|
return;
|
|
65098
65207
|
}
|
|
65099
65208
|
if (isByDesignRefusal(err)) {
|
|
65100
|
-
const detail = `${
|
|
65209
|
+
const detail = `${where}: ${maskSecretsInText(err instanceof Error ? err.message : String(err), secrets)}`;
|
|
65101
65210
|
findings.unverifiable.push(detail);
|
|
65102
65211
|
logger.warn(`Scrub of ${stackName} cannot verify ${detail} — cdkd declines this read by design, so no re-run can change it. The rest of the stack is still scrubbed; this stack is NOT reported clean.`);
|
|
65103
65212
|
return;
|
|
@@ -65105,19 +65214,36 @@ function makeCrossStackPrePass(deps) {
|
|
|
65105
65214
|
throw unresolvableCrossStackReadError(origin, stackName, key, path, err, secrets);
|
|
65106
65215
|
}
|
|
65107
65216
|
const producer = recordedProducer(key, probe);
|
|
65108
|
-
if (!producer)
|
|
65109
|
-
|
|
65217
|
+
if (!producer) {
|
|
65218
|
+
logger.debug(`Scrub of ${stackName}: ${where} resolved, but the resolver recorded no cdkd cross-stack read for it — the value came from a CloudFormation fallback or a cross-account arm that records nothing, so scrub cannot name a producer to classify. Not classified as a plaintext producer.`);
|
|
65219
|
+
return;
|
|
65220
|
+
}
|
|
65221
|
+
const loggedKey = maskSecretsInText(producer.key, secrets);
|
|
65222
|
+
const loggedStack = maskSecretsInText(producer.stack, secrets);
|
|
65223
|
+
if (!producerTemplates.has(producer.stack)) {
|
|
65224
|
+
logger.debug(`Scrub of ${stackName}: ${where} resolved through producer '${loggedStack}' (${producer.region}), which is not a stack of this app — scrub has no template to classify export '${loggedKey}' with. Not classified as a plaintext producer.`);
|
|
65225
|
+
return;
|
|
65226
|
+
}
|
|
65110
65227
|
const verdict = secretExpressionVerdict(producer.stack, producer.key);
|
|
65111
|
-
if (verdict.kind === "no")
|
|
65228
|
+
if (verdict.kind === "no") {
|
|
65229
|
+
logger.debug(`Scrub of ${stackName}: ${where} resolved through producer '${loggedStack}', whose template declares no {{resolve:...}} expression for '${loggedKey}' and no re-export chain reaching one. Not classified as a plaintext producer.`);
|
|
65230
|
+
return;
|
|
65231
|
+
}
|
|
65112
65232
|
const stored = await storedProducerValue(producer, context.stateBackend);
|
|
65113
|
-
if (!stored)
|
|
65114
|
-
|
|
65233
|
+
if (!stored) {
|
|
65234
|
+
logger.debug(`Scrub of ${stackName}: ${where} resolved through producer '${loggedStack}' (${producer.region}), whose state record could not be read or does not carry the key '${loggedKey}' — cannot classify, so this is not classified as a plaintext producer.`);
|
|
65235
|
+
return;
|
|
65236
|
+
}
|
|
65237
|
+
if (carriesDynamicReference(stored.stored)) {
|
|
65238
|
+
logger.debug(`Scrub of ${stackName}: ${where} resolved through producer '${loggedStack}', whose stored value for '${loggedKey}' already carries a {{resolve:...}} expression — the producer is scrubbed and there is nothing wrong with this read.`);
|
|
65239
|
+
return;
|
|
65240
|
+
}
|
|
65115
65241
|
if (storedValueCarriesNoPlaintext(stored.stored)) {
|
|
65116
|
-
logger.debug(`Scrub of ${stackName}: ${
|
|
65242
|
+
logger.debug(`Scrub of ${stackName}: ${where} resolved through producer '${loggedStack}', whose stored value for that key carries no text — nothing to redact, so this is not classified as a plaintext producer.`);
|
|
65117
65243
|
return;
|
|
65118
65244
|
}
|
|
65119
65245
|
if (!nodeCanRefuse) {
|
|
65120
|
-
logger.debug(`Scrub of ${stackName}: ${
|
|
65246
|
+
logger.debug(`Scrub of ${stackName}: ${where} resolved to a plaintext from unscrubbed producer '${loggedStack}', and this position cannot refuse.`);
|
|
65121
65247
|
return;
|
|
65122
65248
|
}
|
|
65123
65249
|
throw plaintextProducerCrossStackReadError(origin, stackName, key, path, producer.stack, producer.key, verdict, secrets);
|
|
@@ -67629,6 +67755,7 @@ async function runAccept(reports, stateBackend, stateConfig, awsClients, options
|
|
|
67629
67755
|
}));
|
|
67630
67756
|
try {
|
|
67631
67757
|
const resources = { ...report.state.resources };
|
|
67758
|
+
let acceptedResourceCount = 0;
|
|
67632
67759
|
for (const outcome of driftedOutcomes) {
|
|
67633
67760
|
const existing = resources[outcome.logicalId];
|
|
67634
67761
|
if (!existing) continue;
|
|
@@ -67646,10 +67773,15 @@ async function runAccept(reports, stateBackend, stateConfig, awsClients, options
|
|
|
67646
67773
|
accepted.push(change);
|
|
67647
67774
|
}
|
|
67648
67775
|
const redactedBaseline = redactSecretsForState(newBaseline, outcome.secrets, existing.properties ?? {}, STATE_SOURCED_READBACK_RULES);
|
|
67776
|
+
let recordedChanges = 0;
|
|
67649
67777
|
for (const change of accepted) {
|
|
67650
|
-
if (deepEqualUnordered(getAtPath(redactedBaseline, change.path), change.awsValue))
|
|
67778
|
+
if (deepEqualUnordered(getAtPath(redactedBaseline, change.path), change.awsValue)) {
|
|
67779
|
+
recordedChanges++;
|
|
67780
|
+
continue;
|
|
67781
|
+
}
|
|
67651
67782
|
logger.warn(` ! ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): '${change.path}' was NOT recorded — cdkd state holds an unresolved '{{resolve:...}}' reference at that property, and the reference wins over an accepted value. Change the template if that reference is wrong.`);
|
|
67652
67783
|
}
|
|
67784
|
+
if (recordedChanges > 0) acceptedResourceCount++;
|
|
67653
67785
|
resources[outcome.logicalId] = hasObserved ? {
|
|
67654
67786
|
...existing,
|
|
67655
67787
|
observedProperties: redactedBaseline
|
|
@@ -67666,7 +67798,7 @@ async function runAccept(reports, stateBackend, stateConfig, awsClients, options
|
|
|
67666
67798
|
const saveOptions = { expectedEtag: report.etag };
|
|
67667
67799
|
if (report.migrationPending) saveOptions.migrateLegacy = true;
|
|
67668
67800
|
await stateBackend.saveState(report.stackName, report.region, newState, saveOptions);
|
|
67669
|
-
logger.info(`✓ State updated for ${report.stackName} (${report.region}): accepted drift on ${
|
|
67801
|
+
logger.info(`✓ State updated for ${report.stackName} (${report.region}): ` + (acceptedResourceCount === 0 ? "0 resource(s) accepted — no drifted change was recorded, and this write carried only the positioned re-redaction." : `accepted drift on ${acceptedResourceCount} resource(s).`));
|
|
67670
67802
|
} finally {
|
|
67671
67803
|
await lockManager.releaseLock(report.stackName, report.region).catch((err) => {
|
|
67672
67804
|
logger.warn(`Failed to release lock for ${report.stackName} (${report.region}): ` + (err instanceof Error ? err.message : String(err)));
|
|
@@ -68017,11 +68149,10 @@ function mergeUntemplatedValue(awsValue, desiredValue) {
|
|
|
68017
68149
|
}
|
|
68018
68150
|
/**
|
|
68019
68151
|
* Replace every leaf of a revert payload that still holds a `{{resolve:...}}`
|
|
68020
|
-
* token with the value AWS currently has at that position (issue #1914
|
|
68021
|
-
* round-3 review).
|
|
68152
|
+
* token with the value AWS currently has at that position (issue #1914).
|
|
68022
68153
|
*
|
|
68023
|
-
*
|
|
68024
|
-
*
|
|
68154
|
+
* cdkd downgrades an unresolvable reference from a per-resource failure to a
|
|
68155
|
+
* warning, on the premise that `cdkd deploy` resolves through the
|
|
68025
68156
|
* resolver's same unsupported-service arm — so AWS already holds the literal
|
|
68026
68157
|
* and replaying it is a no-op. **That premise holds only for records cdkd
|
|
68027
68158
|
* deployed.** CloudFormation resolves `ssm-secure` SERVER-side, so a record
|
|
@@ -68417,18 +68548,22 @@ function printAcceptPlan(reports) {
|
|
|
68417
68548
|
skipped: () => []
|
|
68418
68549
|
}));
|
|
68419
68550
|
if (drifted.length === 0) continue;
|
|
68420
|
-
|
|
68551
|
+
const lines = [];
|
|
68552
|
+
let plannedWrites = 0;
|
|
68421
68553
|
for (const o of drifted) {
|
|
68422
|
-
|
|
68554
|
+
lines.push(` ~ ${o.logicalId} (${o.resourceType})\n`);
|
|
68423
68555
|
for (const change of o.changes) {
|
|
68424
68556
|
const refusal = acceptRefusalReason(change, o.maskedPaths);
|
|
68425
68557
|
if (refusal !== void 0) {
|
|
68426
|
-
|
|
68558
|
+
lines.push(` ${change.path}: SKIPPED — ${refusal}\n`);
|
|
68427
68559
|
continue;
|
|
68428
68560
|
}
|
|
68429
|
-
|
|
68561
|
+
plannedWrites++;
|
|
68562
|
+
lines.push(` ${change.path}: ${formatScalar(change.stateValue)} -> ${formatScalar(change.awsValue)}\n`);
|
|
68430
68563
|
}
|
|
68431
68564
|
}
|
|
68565
|
+
process.stdout.write(plannedWrites === 0 ? `\nPlan (--accept): no accepted values will be written to cdkd state for ${report.stackName} (${report.region}) — every drifted change below is refused (the run still writes the positioned re-redaction):\n` : `\nPlan (--accept): update cdkd state for ${report.stackName} (${report.region}):\n`);
|
|
68566
|
+
for (const line of lines) process.stdout.write(line);
|
|
68432
68567
|
}
|
|
68433
68568
|
}
|
|
68434
68569
|
/**
|
|
@@ -68454,9 +68589,8 @@ function printRevertPlan(reports) {
|
|
|
68454
68589
|
const stateResource = report.state.resources[o.logicalId];
|
|
68455
68590
|
if (stateResource) {
|
|
68456
68591
|
const preserved = findRevertPreservedTagKeys(o.changes, stateResource.observedProperties ?? stateResource.properties ?? {}, o.awsProperties);
|
|
68457
|
-
|
|
68458
|
-
if (
|
|
68459
|
-
if (!cannotMaskKeys && preserved.length > 0) {
|
|
68592
|
+
if (o.notComparedCause !== void 0 && preserved.length > 0) process.stdout.write(` ! ${preserved.length} AWS-authored tag(s) will be preserved, but cdkd could not resolve this resource's dynamic reference(s), so their names are withheld — they come from the live readback and cannot be checked for secrets without them.\n`);
|
|
68593
|
+
else if (preserved.length > 0) {
|
|
68460
68594
|
const tagWord = preserved.length === 1 ? "tag" : "tags";
|
|
68461
68595
|
process.stdout.write(` ! reverting this tag list KEEPS ${preserved.length} AWS-authored ${tagWord} the baseline does not carry:\n`);
|
|
68462
68596
|
for (const path of preserved) process.stdout.write(` ${maskSecretsInText(path, o.secrets)}\n`);
|
|
@@ -76325,6 +76459,7 @@ var AttributeFetcher = class {
|
|
|
76325
76459
|
};
|
|
76326
76460
|
}
|
|
76327
76461
|
this.logger.warn(`--force: live fetch failed for '${orphanLogicalId}.${attribute}' (${reason}); falling back to cached value from state.attributes.`);
|
|
76462
|
+
if (carriesDynamicReference(cached)) this.logger.warn(`--force: the cached value for '${orphanLogicalId}.${attribute}' is an UNRESOLVED dynamic reference (a nested stack's redacted output, issue #2055). It is being written into the referring resource's state VERBATIM — cdkd cannot re-resolve it from here. Re-run without --force once the live attribute is readable, or fix the referring property by hand.`);
|
|
76328
76463
|
const cacheKey = `${orphanLogicalId}\0${attribute}`;
|
|
76329
76464
|
this.cache.set(cacheKey, cached);
|
|
76330
76465
|
return {
|
|
@@ -87985,4 +88120,4 @@ function buildProgram() {
|
|
|
87985
88120
|
|
|
87986
88121
|
//#endregion
|
|
87987
88122
|
export { buildProgram };
|
|
87988
|
-
//# sourceMappingURL=program-
|
|
88123
|
+
//# sourceMappingURL=program-I-xR_ceK.js.map
|