@go-to-k/cdkd 0.288.5 → 0.288.7

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/index.d.ts CHANGED
@@ -593,6 +593,7 @@ declare class CloudControlProvider implements ResourceProvider {
593
593
  private cloudControlClient;
594
594
  private logger;
595
595
  private patchGenerator;
596
+ private readonly warnedUnresolvableSchemaTypes;
596
597
  private readonly MAX_WAIT_TIME_MS;
597
598
  private readonly INITIAL_POLL_INTERVAL_MS;
598
599
  private readonly MAX_POLL_INTERVAL_MS;
@@ -617,6 +618,7 @@ declare class CloudControlProvider implements ResourceProvider {
617
618
  static isSupportedResourceType(resourceType: string): boolean;
618
619
  readCurrentState(physicalId: string, _logicalId: string, resourceType: string, _properties?: Record<string, unknown>): Promise<Record<string, unknown> | undefined>;
619
620
  import(input: ResourceImportInput): Promise<ResourceImportResult | null>;
621
+ private maskUncertifiedModelValues;
620
622
  }
621
623
  //#endregion
622
624
  //#region src/provisioning/provider-registry.d.ts
@@ -1160,6 +1162,7 @@ declare class DeployEngine {
1160
1162
  private rememberRecoverableMaskedOutputs;
1161
1163
  private redactOutputs;
1162
1164
  private registerNoEchoAttributes;
1165
+ private static maskedRecordRemedyFor;
1163
1166
  private refuseRedactedAttributeReads;
1164
1167
  private redactOperationsForJournal;
1165
1168
  private redactStateForPersist;
@@ -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-noncurrent-version-purge.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;EAyEA,iBAAiB;EAgBjB;EAcA;EAYA;EAGA;;UAMe;EAEf;EAGA;EAGA,YAAY;EAcZ,qBAAqB;EAGrB,aAAa;EAGb;EAGA,WAAW;EAmBX;EAMA;EA0CA;;UAMe;EAEf;EAGA;EAGA;EAGA;;KAMU;UAKK;EAEf;EAGA,YAAY;EAGZ;EAGA,oBAAoB;EAGpB,oBAAoB;EAGpB,kBAAkB;EAWlB,mBAAmB;;UAUJ;EAEf;EACA;EACA;;UAgGe;EAEf;EAGA;EAGA;EAGA;EAYA;;;;KC9lBU,uBAAuB;KAwxLvB,gBAAgB;;;UC3zLX;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,WAAW;EACX,iBAAiB;EACjB,eAAe;EACf;EACA;;UAMe;EACf;EACA;EAOA;EACA;IACE;;;UAgCa;EAKf,sBAAsB;;UA8CP;EAKf;EAWA;;UAMe,6BAA6B,2BA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BAA2B;EAgE7E;IAEE;IACA,YAAY;;EAEd;IAEE;IAEA,UAAU;IAEV,gBAAgB;;EAoBlB,gBAAgB;EAkBhB;EAyBA;EAWA;EAWA;EAaA;EAYA,uBAAuB;;UAkER;EAEf;EAEA;EAEA;EAEA;EAwBA;EAQA;EAEA;EAEA;EAMA,UAAU;EAcV;;cAmQW;UACH;UACA;UACA;UAOA;UAaA;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UAUA;UAMA;UAQA;UAiBA;UAuBA;UAWA;UAOA;UAkBA;UAcA;UAYA;UAQA;UASA;UAkCA;UAOA;EAER,YACE,cAAc,gBACd,aAAa,aACb,YAAY,YACZ,gBAAgB,gBAChB,kBAAkB,kBAClB,SAAS,iCACT,qBACA,mBAAmB;EA+Bf,OAAO,mBAAmB,UAAU,yBAAyB,QAAQ;UAuDnE;UAqHA;UA8DA;UAcA;UAiGA;UAqDA;UAwBA;UAyDA;UAkDA;UA2BA;UAkCM;UAkFA;UAsGN;UA0GM;UA4yBA;UAgnBA;UA6EA;UA2BA;UA+BA;UAuCN;UA+BM;UA4CA;UA+UN;UAwBA;UAWA;UAkDA;UAmBA;UAwBA;UAyCM;UA0CA;UAyLA;UAg8DN;UA+CA;UA4DA;UA6FA;UA0IA;UAgCA;UAOA;UAoCA;UA4EA;UA4BM;UA6BN;UAiCA;UAmBA;UA8DA;UAiEM;UAuYN"}
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-noncurrent-version-purge.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;EAyEA,iBAAiB;EAgBjB;EAcA;EAYA;EAGA;;UAMe;EAEf;EAGA;EAGA,YAAY;EAcZ,qBAAqB;EAGrB,aAAa;EAGb;EAGA,WAAW;EAmBX;EAMA;EA0CA;;UAMe;EAEf;EAGA;EAGA;EAGA;;KAMU;UAKK;EAEf;EAGA,YAAY;EAGZ;EAGA,oBAAoB;EAGpB,oBAAoB;EAGpB,kBAAkB;EAWlB,mBAAmB;;UAUJ;EAEf;EACA;EACA;;UAgGe;EAEf;EAGA;EAGA;EAGA;EAYA;;;;KC9lBU,uBAAuB;KAuyLvB,gBAAgB;;;UC10LX;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,WAAW;EACX,iBAAiB;EACjB,eAAe;EACf;EACA;;UAMe;EACf;EACA;EAOA;EACA;IACE;;;UAgCa;EAKf,sBAAsB;;UA8CP;EAKf;EAWA;;UAMe,6BAA6B,2BAA2B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AmB,OAAO,2BAA2B;EAgE7E;IAEE;IACA,YAAY;;EAEd;IAEE;IAEA,UAAU;IAEV,gBAAgB;;EAoBlB,gBAAgB;EAkBhB;EAyBA;EAWA;EAWA;EAaA;EAYA,uBAAuB;;UAkER;EAEf;EAEA;EAEA;EAEA;EAwBA;EAQA;EAEA;EAEA;EAMA,UAAU;EAcV;;cAmQW;UACH;UACA;UACA;UAOA;UAaA;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UAUA;UAMA;UAQA;UAiBA;UAuBA;UAWA;UAOA;UAkBA;UAcA;UAYA;UAQA;UASA;UAkCA;UAOA;EAER,YACE,cAAc,gBACd,aAAa,aACb,YAAY,YACZ,gBAAgB,gBAChB,kBAAkB,kBAClB,SAAS,iCACT,qBACA,mBAAmB;EA+Bf,OAAO,mBAAmB,UAAU,yBAAyB,QAAQ;UAuDnE;UAkJA;UA8DA;UAcA;UAiGA;iBA6GO;UAgMP;UAoFA;UAyDA;UAkDA;UA2BA;UAkCM;UAkFA;UAsGN;UA0GM;UA4yBA;UAgnBA;UA6EA;UA2BA;UA+BA;UAuCN;UA+BM;UA4CA;UA+UN;UAwBA;UAWA;UAkDA;UAmBA;UAwBA;UAyCM;UA0CA;UAyLA;UAw8DN;UA+CA;UA4DA;UA6FA;UA0IA;UAgCA;UAOA;UAoCA;UA4EA;UA4BM;UA6BN;UAiCA;UAmBA;UA8DA;UAiEM;UAsgBN"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as ProviderRegistry, Br as setAwsClients, Fr as clearBucketRegionCache, Gr as DependencyError, Gt as DiffCalculator, Hr as CdkdError, Ir as resolveBucketRegion, Lr as AwsClients, Nr as AssemblyReader, Qt as TemplateParser, Rr as getAwsClients, Ur as ConfigError, Vr as AssetError, X as IAMRoleProvider, Zr as LockError, Zt as DagBuilder, ai as StateError, ci as isCdkdError, ei as ProvisioningError, gn as S3StateBackend, hn as LockManager, kn as AssetPublisher, li as normalizeAwsError, lr as Synthesizer, lt as CloudControlProvider, oi as SynthesisError, r as DeployEngine, si as formatError, zr as resetAwsClients } from "./deploy-engine-Dsf9bTqH.js";
1
+ import { $ as ProviderRegistry, Br as setAwsClients, Fr as clearBucketRegionCache, Gr as DependencyError, Gt as DiffCalculator, Hr as CdkdError, Ir as resolveBucketRegion, Lr as AwsClients, Nr as AssemblyReader, Qt as TemplateParser, Rr as getAwsClients, Ur as ConfigError, Vr as AssetError, X as IAMRoleProvider, Zr as LockError, Zt as DagBuilder, ai as StateError, ci as isCdkdError, ei as ProvisioningError, gn as S3StateBackend, hn as LockManager, kn as AssetPublisher, li as normalizeAwsError, lr as Synthesizer, lt as CloudControlProvider, oi as SynthesisError, r as DeployEngine, si as formatError, zr as resetAwsClients } from "./deploy-engine-BQUjVO_m.js";
2
2
  import { a as setLogger, n as getLogger, t as ConsoleLogger } from "./logger-Dw-3y48G.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,8 +1,8 @@
1
- import { $ as ProviderRegistry, $n as formatDockerLoginError, $r as PartialFailureError, $t as STATE_SOURCED_BASELINE_RULES, A as renderStatefulReason, An as stringifyValue, Ar as PARTITION_TABLE, At as configStringRefusal, B as red, Bn as getBootstrapMarkerKey, Br as setAwsClients, Bt as s3BucketDomainName, C as refusesFinalSnapshot, Cn as CUSTOM_RESOURCE_RESPONSE_PREFIX, Cr as CFN_TEMPLATE_URL_LIMIT, Ct as refStateLookupFromResource, D as MULTI_REGION_RECREATE_BLOCKED_TYPES, Dn as importableOutputs, Dr as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Dt as assertRegionMatch, E as extractDeploymentEventError, En as importableOutputKeys, Er as uploadCfnTemplate, Et as resolveExplicitPhysicalId, F as formatResourceLine, Fn as rewriteTemplateAssetReferences, Ft as requireConfigString, G as isExportAliasCollision, Gn as validateContainerRepoName, Gt as DiffCalculator, H as collectDeclaredOutputNames, Hn as parseBootstrapMarker, Hr as CdkdError, Ht as s3BucketRegionalDomainName, I as bold, In as AssetModeResolver, Ir as resolveBucketRegion, It as classifyReplaySecretRegion, J as secretSafeKeyDisplay, Jn as buildDockerImage, Jr as IntrinsicResolutionRefusalError, Jt as findSilentDropProperties, K as secretBearing, Kn as buildDenyExternalAccessPolicy, Kr as DeployCancelledError, Kt as INTRINSIC_KEYS, L as cyan, Ln as BOOTSTRAP_MARKER_PREFIX, Lr as AwsClients, Lt as producerRegionsFromState, M as coerceWarmThroughput$1, Mn as buildAssetRedirectMap, Mr as derivePartitionAndUrlSuffix, Mt as replayWarn, N as isWarmThroughputDecrease, Nn as createAssetRedirectResolver, Nr as AssemblyReader, Nt as requireConfigArray, O as isStatefulRecreateTargetForReplace, On as shouldRetainResource, Or as displaySafe, Ot as coerceCfnBoolean, P as toFiniteNumber, Pn as loadPublishableAssetManifest, Pr as processStackMessages, Pt as requireConfigObject, Q as clearOnUpdateRemoval, Qn as dockerSpawnEnvWithSensitive, Qr as NestedStackChildDirectDestroyError, Qt as TemplateParser, R as gray, Rn as assertAssetBucketRegion, Rr as getAwsClients, Rt as withSharedDrainBudget, S as isFinalSnapshotError, Sn as shellQuote, Sr as CFN_TEMPLATE_BODY_LIMIT, St as parameterTypeMayLoseSecretIdentity, T as makeCanonicalizePropertiesFn, Tn as exportNamesCarriedFrom, Tr as findLargeInlineResources, Tt as normalizeAwsTagsToCfn, U as collectPublishedOutputNames, Un as readBootstrapMarkerBody, Ut as s3BucketWebsiteUrl, V as yellow, Vn as isCrossRegionRedirect, Vt as s3BucketDualStackDomainName, W as exportAliasCollisionScrubWarning, Wn as validateAssetBucketName, Wr as CrossAccountSecretRefusalError, Wt as applyRoleArnIfSet, X as IAMRoleProvider, Xn as describeDockerExecFailure, Xr as LocalStartServiceError, Xt as withRetry, Y as getCurrentResourceSecrets, Yn as describeDockerCapturedOutput, Yr as LocalInvokeBuildError$1, Yt as describeTypeWithThrottleRetry, Z as collectInlinePolicyNamesManagedBySiblings, Zn as describeDockerFailure, Zt as DagBuilder, _ as ATOMIC_FINAL_SNAPSHOT_TYPES, _i as retryClassificationText, _n as rebuildClientForBucketRegion, _r as resolveStateBucketWithDefault, _t as carriesDynamicReference, a as DeploymentEventsStore, an as dynamicReferenceTokens, ar as escapeRegExp, at as endCommandInterruptScope, b as ccRoutedFinalSnapshotError, bn as buildLockContentionMessage, br as stateBucketExistenceConfirmed, bt as getAccountInfo, c as replayFailedOperations, cn as isSingleDynamicReferenceToken, cr as getDockerImageBySourceHash, ct as startInterruptWatch, d as updatePartialReason, di as isMarkedNonRetryable, dn as recordMaskOnlyValue, dr as getDefaultStateBucketName, dt as UNSPECIFIED_SKIP_REASON, ei as ProvisioningError, en as STATE_SOURCED_CROSS_GENERATION_RULES, er as getDockerCmd, et as wouldReturnToSdkProvider, f as withResourceDeadline, fi as isRetryableTransientError, fn as recoverMaskedOutput, fr as getLegacyStateBucketName, ft as deleteIndeterminateGuards, g as bindingSkippedOutputs, gi as markRedactedCause, gn as S3StateBackend, gr as resolveSkipPrefix, gt as IntrinsicFunctionResolver, h as computeImplicitDeleteEdges, hi as markNonRetryable, hn as LockManager, hr as resolveCaptureObservedState, ht as isTerminationProtectionPropagationError, i as DeploymentEventsReader, ii as StackTerminationProtectionError, in as createSecretMasker, ir as runDockerStreaming, it as beginCommandInterruptScope, j as WARM_THROUGHPUT_MEMBERS, jn as WorkGraph, jr as canonicalizeRegion, jt as readConfigString, k as isStatefulRecreateTargetSync, kn as AssetPublisher, kr as expectedOwnerParam, kt as configBooleanRefusal, l as replayRollback, li as normalizeAwsError, ln as maskSecretsInError, lr as Synthesizer, lt as CloudControlProvider, m as IMPLICIT_DELETE_DEPENDENCIES, mi as isTransientServerError, mn as scrubResourceRecord, mr as resolveAutoAssetStorage, mt as disableInstanceApiTermination, n as DEFAULT_RESOURCE_WARN_AFTER_MS, ni as ResourceUpdateNotSupportedError, nn as TEMPLATE_SOURCED_RULES, nr as redactDockerArgvValues, nt as maskDeep, o as planFailedOps, on as errorCauseChain, or as stripControlChars, ot as interruptWatchListenerCount, p as maskingRetryLogger, pi as isThrottlingError, pn as redactSecretsForState, pr as resolveApp, pt as deleteSkipReason, q as secretBearingStateKeyWarning, qn as describeAwsFailure, qr as DynamicReferenceRegionAmbiguousError, qt as findActionableSilentDrops, r as DeployEngine, ri as StackHasActiveImportsError, rn as carriesSecretMask, rr as runDockerForeground, rt as maskerOrIdentity, s as planRollback, sn as identityKeyFor, sr as AssetManifestLoader, st as isInterruptedWaitError, t as DEFAULT_RESOURCE_TIMEOUT_MS, ti as ResourceTimeoutError, tn as STATE_SOURCED_READBACK_RULES, tr as partitionSensitiveEnv, tt as createMaskedRetryLogger, u as updatePartialMessage, ui as withErrorHandling, un as maskSecretsInText, ur as synthesisStatusMessage, ut as slowCcOperationTimeoutMs, v as PRE_DELETE_SNAPSHOT_TYPES, vn as UNRENDERABLE, vr as resolveStateBucketWithDefaultAndSource, vt as cfnRefValueFromPhysicalId, w as unsupportedFinalSnapshotError, wn as DEFAULT_STATE_PREFIX, wr as MIGRATE_TMP_PREFIX, wt as WAFv2WebACLProvider, x as createPreDeleteFinalSnapshot, xn as forceQuitRecoveryClause, xr as warnDeprecatedNoPrefixCliFlag, xt as isUnboundTemplateParameter, y as buildFinalSnapshotIdentifier, yn as buildForceUnlockCommand, yr as resolveUseCdkBootstrapAssets, yt as coerceParameterTypedValue, z as green, zn as ensureAssetStorage, zr as resetAwsClients, zt as s3BucketArn } from "./deploy-engine-Dsf9bTqH.js";
1
+ import { $ as ProviderRegistry, $n as formatDockerLoginError, $r as PartialFailureError, $t as STATE_SOURCED_BASELINE_RULES, A as renderStatefulReason, An as stringifyValue, Ar as PARTITION_TABLE, At as configStringRefusal, B as red, Bn as getBootstrapMarkerKey, Br as setAwsClients, Bt as s3BucketDomainName, C as refusesFinalSnapshot, Cn as CUSTOM_RESOURCE_RESPONSE_PREFIX, Cr as CFN_TEMPLATE_URL_LIMIT, Ct as refStateLookupFromResource, D as MULTI_REGION_RECREATE_BLOCKED_TYPES, Dn as importableOutputs, Dr as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Dt as assertRegionMatch, E as extractDeploymentEventError, En as importableOutputKeys, Er as uploadCfnTemplate, Et as resolveExplicitPhysicalId, F as formatResourceLine, Fn as rewriteTemplateAssetReferences, Ft as requireConfigString, G as isExportAliasCollision, Gn as validateContainerRepoName, Gt as DiffCalculator, H as collectDeclaredOutputNames, Hn as parseBootstrapMarker, Hr as CdkdError, Ht as s3BucketRegionalDomainName, I as bold, In as AssetModeResolver, Ir as resolveBucketRegion, It as classifyReplaySecretRegion, J as secretSafeKeyDisplay, Jn as buildDockerImage, Jr as IntrinsicResolutionRefusalError, Jt as findSilentDropProperties, K as secretBearing, Kn as buildDenyExternalAccessPolicy, Kr as DeployCancelledError, Kt as INTRINSIC_KEYS, L as cyan, Ln as BOOTSTRAP_MARKER_PREFIX, Lr as AwsClients, Lt as producerRegionsFromState, M as coerceWarmThroughput$1, Mn as buildAssetRedirectMap, Mr as derivePartitionAndUrlSuffix, Mt as replayWarn, N as isWarmThroughputDecrease, Nn as createAssetRedirectResolver, Nr as AssemblyReader, Nt as requireConfigArray, O as isStatefulRecreateTargetForReplace, On as shouldRetainResource, Or as displaySafe, Ot as coerceCfnBoolean, P as toFiniteNumber, Pn as loadPublishableAssetManifest, Pr as processStackMessages, Pt as requireConfigObject, Q as clearOnUpdateRemoval, Qn as dockerSpawnEnvWithSensitive, Qr as NestedStackChildDirectDestroyError, Qt as TemplateParser, R as gray, Rn as assertAssetBucketRegion, Rr as getAwsClients, Rt as withSharedDrainBudget, S as isFinalSnapshotError, Sn as shellQuote, Sr as CFN_TEMPLATE_BODY_LIMIT, St as parameterTypeMayLoseSecretIdentity, T as makeCanonicalizePropertiesFn, Tn as exportNamesCarriedFrom, Tr as findLargeInlineResources, Tt as normalizeAwsTagsToCfn, U as collectPublishedOutputNames, Un as readBootstrapMarkerBody, Ut as s3BucketWebsiteUrl, V as yellow, Vn as isCrossRegionRedirect, Vt as s3BucketDualStackDomainName, W as exportAliasCollisionScrubWarning, Wn as validateAssetBucketName, Wr as CrossAccountSecretRefusalError, Wt as applyRoleArnIfSet, X as IAMRoleProvider, Xn as describeDockerExecFailure, Xr as LocalStartServiceError, Xt as withRetry, Y as getCurrentResourceSecrets, Yn as describeDockerCapturedOutput, Yr as LocalInvokeBuildError$1, Yt as describeTypeWithThrottleRetry, Z as collectInlinePolicyNamesManagedBySiblings, Zn as describeDockerFailure, Zt as DagBuilder, _ as ATOMIC_FINAL_SNAPSHOT_TYPES, _i as retryClassificationText, _n as rebuildClientForBucketRegion, _r as resolveStateBucketWithDefault, _t as carriesDynamicReference, a as DeploymentEventsStore, an as dynamicReferenceTokens, ar as escapeRegExp, at as endCommandInterruptScope, b as ccRoutedFinalSnapshotError, bn as buildLockContentionMessage, br as stateBucketExistenceConfirmed, bt as getAccountInfo, c as replayFailedOperations, cn as isSingleDynamicReferenceToken, cr as getDockerImageBySourceHash, ct as startInterruptWatch, d as updatePartialReason, di as isMarkedNonRetryable, dn as recordMaskOnlyValue, dr as getDefaultStateBucketName, dt as UNSPECIFIED_SKIP_REASON, ei as ProvisioningError, en as STATE_SOURCED_CROSS_GENERATION_RULES, er as getDockerCmd, et as wouldReturnToSdkProvider, f as withResourceDeadline, fi as isRetryableTransientError, fn as recoverMaskedOutput, fr as getLegacyStateBucketName, ft as deleteIndeterminateGuards, g as bindingSkippedOutputs, gi as markRedactedCause, gn as S3StateBackend, gr as resolveSkipPrefix, gt as IntrinsicFunctionResolver, h as computeImplicitDeleteEdges, hi as markNonRetryable, hn as LockManager, hr as resolveCaptureObservedState, ht as isTerminationProtectionPropagationError, i as DeploymentEventsReader, ii as StackTerminationProtectionError, in as createSecretMasker, ir as runDockerStreaming, it as beginCommandInterruptScope, j as WARM_THROUGHPUT_MEMBERS, jn as WorkGraph, jr as canonicalizeRegion, jt as readConfigString, k as isStatefulRecreateTargetSync, kn as AssetPublisher, kr as expectedOwnerParam, kt as configBooleanRefusal, l as replayRollback, li as normalizeAwsError, ln as maskSecretsInError, lr as Synthesizer, lt as CloudControlProvider, m as IMPLICIT_DELETE_DEPENDENCIES, mi as isTransientServerError, mn as scrubResourceRecord, mr as resolveAutoAssetStorage, mt as disableInstanceApiTermination, n as DEFAULT_RESOURCE_WARN_AFTER_MS, ni as ResourceUpdateNotSupportedError, nn as TEMPLATE_SOURCED_RULES, nr as redactDockerArgvValues, nt as maskDeep, o as planFailedOps, on as errorCauseChain, or as stripControlChars, ot as interruptWatchListenerCount, p as maskingRetryLogger, pi as isThrottlingError, pn as redactSecretsForState, pr as resolveApp, pt as deleteSkipReason, q as secretBearingStateKeyWarning, qn as describeAwsFailure, qr as DynamicReferenceRegionAmbiguousError, qt as findActionableSilentDrops, r as DeployEngine, ri as StackHasActiveImportsError, rn as carriesSecretMask, rr as runDockerForeground, rt as maskerOrIdentity, s as planRollback, sn as identityKeyFor, sr as AssetManifestLoader, st as isInterruptedWaitError, t as DEFAULT_RESOURCE_TIMEOUT_MS, ti as ResourceTimeoutError, tn as STATE_SOURCED_READBACK_RULES, tr as partitionSensitiveEnv, tt as createMaskedRetryLogger, u as updatePartialMessage, ui as withErrorHandling, un as maskSecretsInText, ur as synthesisStatusMessage, ut as slowCcOperationTimeoutMs, v as PRE_DELETE_SNAPSHOT_TYPES, vn as UNRENDERABLE, vr as resolveStateBucketWithDefaultAndSource, vt as cfnRefValueFromPhysicalId, w as unsupportedFinalSnapshotError, wn as DEFAULT_STATE_PREFIX, wr as MIGRATE_TMP_PREFIX, wt as WAFv2WebACLProvider, x as createPreDeleteFinalSnapshot, xn as forceQuitRecoveryClause, xr as warnDeprecatedNoPrefixCliFlag, xt as isUnboundTemplateParameter, y as buildFinalSnapshotIdentifier, yn as buildForceUnlockCommand, yr as resolveUseCdkBootstrapAssets, yt as coerceParameterTypedValue, z as green, zn as ensureAssetStorage, zr as resetAwsClients, zt as s3BucketArn } from "./deploy-engine-BQUjVO_m.js";
2
2
  import { _ as withStackName, c as PATTERN_B_NAME_OPTIONS, f as generateResourceName, g as withSkipPrefix, i as reserveStdoutForPayload, l as PATTERN_B_NAME_PROPERTIES, m as getCurrentStackName, n as getLogger, o as runStackBuffered, p as generateResourceNameWithFallback, s as getLiveRenderer, u as PATTERN_B_RESOURCE_TYPES } from "./logger-Dw-3y48G.js";
3
3
  import { t as awsClientDefaults } from "./aws-client-defaults-D-iYiIJ6.js";
4
- import { t as getCdkdVersion } from "./version-BFmq8S23.js";
5
- import { r as protectedReplacementAdvice, t as ASGProvider } from "./asg-provider-C_AHAmgD.js";
4
+ import { t as getCdkdVersion } from "./version-DPtrXz0m.js";
5
+ import { r as protectedReplacementAdvice, t as ASGProvider } from "./asg-provider-CRxRmEzr.js";
6
6
  import { AsyncLocalStorage } from "node:async_hooks";
7
7
  import { createHash, randomBytes, randomUUID } from "node:crypto";
8
8
  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, NotFound, 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";
@@ -74362,7 +74362,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
74362
74362
  blocked.push({
74363
74363
  logicalId,
74364
74364
  resourceType,
74365
- reason: "cdkd state holds only the redaction mask ('***') for at least one property a NoEcho custom-resource value cdkd cannot re-derive. Forcing the custom resource to update does NOT clear this: the handler supplies the value to the deploy, and cdkd re-masks it on the way into state, so the export still has nothing to declare. Stop setting NoEcho on that response and re-deploy, then export again; or export this stack without that resource and adopt it into CloudFormation by hand. See https://github.com/go-to-k/cdkd/issues/2274."
74365
+ reason: "cdkd state holds only the redaction mask ('***') for at least one property, and cdkd cannot re-derive the value. There are two ways a record comes to hold it. (1) A NoEcho custom-resource value: forcing the custom resource to update does NOT clear this the handler supplies the value to the deploy and cdkd re-masks it on the way into state, so the export still has nothing to declare. Stop setting NoEcho on that response and re-deploy, then export again. (2) The value was SPLICED from a masked record of ANOTHER resource — by 'cdkd orphan --force', or by 'cdkd import' resolving an Fn::GetAtt or a Ref over a value the Cloud Control fallback had masked. Repair the record that HOLDS the mask ('cdkd import <stack> --resource <logicalId>=<physicalId> --force', granting cloudformation:DescribeType first if the import warned that it could not read the schema), then re-run whichever command wrote this property. Either way you can also export this stack without that resource and adopt it into CloudFormation by hand. See https://github.com/go-to-k/cdkd/issues/2274."
74366
74366
  });
74367
74367
  continue;
74368
74368
  }
@@ -79592,6 +79592,13 @@ function resolveCdkPathToLogicalIds(input, index) {
79592
79592
  */
79593
79593
  var AttributeFetcher = class {
79594
79594
  cache = /* @__PURE__ */ new Map();
79595
+ /**
79596
+ * Orphans whose masked-`Ref` `--force` warning has already been printed.
79597
+ * Separate from {@link cache}, which memoizes VALUES keyed by
79598
+ * `(orphan, attribute)`; a `Ref` has no attribute and produces no cacheable
79599
+ * value, so sharing that map would need a sentinel key that means "warned".
79600
+ */
79601
+ warnedMaskedRefs = /* @__PURE__ */ new Set();
79595
79602
  logger = getLogger().child("OrphanRewriter");
79596
79603
  orphans;
79597
79604
  providerRegistry;
@@ -79607,11 +79614,69 @@ var AttributeFetcher = class {
79607
79614
  * is NOT the raw physical id (compound `<parent>|<child>` CC ids, ARN-stored
79608
79615
  * SDK ids like `AWS::Events::Rule`) substitute the same value CloudFormation
79609
79616
  * would have resolved.
79617
+ *
79618
+ * IT CAN FAIL, and the one failure is a REDACTED recovery key (issue
79619
+ * [#2847](https://github.com/go-to-k/cdkd/issues/2847), security review of
79620
+ * the fix round). For a handful of types CFn's `Ref` is a value stored in
79621
+ * `properties` / `attributes` rather than the physical id, and `cdkd import`
79622
+ * now masks any such key it cannot certify is a read-only attribute. The
79623
+ * lookup refuses to serve a mask, so the fall-through emits the RAW PHYSICAL
79624
+ * ID — for a Cloud-Control-routed `AWS::S3Tables::Table` a bare `TableARN`
79625
+ * ending in a UUID, not the table name — and that value would be spliced into
79626
+ * a sibling's persisted properties where NOTHING recognises it.
79627
+ *
79628
+ * That last clause is why this returns a result rather than a string. Before
79629
+ * the lookup learned to refuse a mask it returned the literal `'***'`, which
79630
+ * four unchanged readers DO recognise (`refuseMaskedReplayBaseline`, the
79631
+ * `cdkd export` blocker, drift's mask handling, the deploy-time refusal) — so
79632
+ * silently taking the fall-through here would have traded a guarded sentinel
79633
+ * for an unguarded wrong value, which is a worse outcome than the one the
79634
+ * refusal exists to prevent.
79635
+ *
79636
+ * ## The `--force` arm SUBSTITUTES THE MASK, not the physical id
79637
+ *
79638
+ * `--force`'s contract is "use a possibly-wrong value rather than stranding
79639
+ * me", so this arm still produces a value — but WHICH value is the whole
79640
+ * finding of the issue #2847 round-2 security review, and an earlier
79641
+ * revision of this method got it backwards by handing back the physical id.
79642
+ * That is the unguarded-wrong-value outcome the paragraph above calls worse
79643
+ * than the bug, reached through the one arm that skips the refusal:
79644
+ * `cdkd orphan --force` over a CC-imported `AWS::S3Tables::Table` whose
79645
+ * `TableName` is masked wrote `arn:aws:s3tables:…/<uuid>` into a sibling's
79646
+ * persisted property, every later deploy shipped that ARN where a table name
79647
+ * belongs, and export / rollback / drift / deploy all passed it.
79648
+ *
79649
+ * {@link SECRET_MASK} keeps the `--force` escape hatch open — the rewrite
79650
+ * completes and the orphan leaves state — while leaving a value those four
79651
+ * readers still catch, so the damage stays inside cdkd instead of reaching
79652
+ * AWS. That is also what {@link cacheFallback}, this method's stated mirror,
79653
+ * already does with a masked cached attribute; the two arms now agree.
79610
79654
  */
79611
79655
  ref(orphanLogicalId) {
79612
79656
  const o = this.orphans[orphanLogicalId];
79613
79657
  if (!o) throw new Error(`Internal: Ref to '${orphanLogicalId}' has no orphan entry — should have been filtered out`);
79614
- return cfnRefValueFromPhysicalId(o.resourceType, o.physicalId, refStateLookupFromResource(o));
79658
+ let maskedKey;
79659
+ const value = cfnRefValueFromPhysicalId(o.resourceType, o.physicalId, refStateLookupFromResource(o, (key) => {
79660
+ maskedKey = key;
79661
+ }));
79662
+ if (maskedKey === void 0) return {
79663
+ ok: true,
79664
+ value
79665
+ };
79666
+ const safeType = displaySafe(o.resourceType, { asciiOnly: true });
79667
+ const reason = `state records the redaction mask ('${"***"}') for '${maskedKey}', the key CloudFormation's Ref returns for ${safeType} — cdkd cannot recover it, and the physical id is NOT that value`;
79668
+ if (!this.options.force) return {
79669
+ ok: false,
79670
+ reason
79671
+ };
79672
+ if (!this.warnedMaskedRefs.has(orphanLogicalId)) {
79673
+ this.warnedMaskedRefs.add(orphanLogicalId);
79674
+ this.logger.warn(`--force: '${orphanLogicalId}': ${reason}. Substituting '${"***"}' rather than the physical id, which would be a wrong value no later cdkd command recognises. The referring resource's state row now records a value the live resource does not have: the next 'cdkd diff' / 'cdkd deploy' reports a spurious change there (a REPLACEMENT if the property is create-only), 'cdkd rollback' refuses the record as a replay baseline, and 'cdkd export' blocks it. Re-import the record that holds the mask, or fix the referring property by hand.`);
79675
+ }
79676
+ return {
79677
+ ok: true,
79678
+ value: "***"
79679
+ };
79615
79680
  }
79616
79681
  /**
79617
79682
  * Return the orphan's resolved value for `Fn::GetAtt`. Hits the live
@@ -79678,6 +79743,7 @@ var AttributeFetcher = class {
79678
79743
  }
79679
79744
  this.logger.warn(`--force: live fetch failed for '${orphanLogicalId}.${attribute}' (${reason}); falling back to cached value from state.attributes.`);
79680
79745
  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.`);
79746
+ if (carriesSecretMask(cached)) this.logger.warn(`--force: the cached value for '${orphanLogicalId}.${attribute}' is the REDACTION MASK ('${"***"}'), not the attribute's value — cdkd redacted it into state and cannot recover it. It is being written into the referring resource's state VERBATIM, so that row now records a value the live resource does not have: the next 'cdkd diff' / 'cdkd deploy' reports a spurious change there (a REPLACEMENT if the property is create-only), 'cdkd rollback' refuses the record as a replay baseline, and 'cdkd export' blocks it. Re-run without --force once the live attribute is readable, re-import the record that holds the mask, or fix the referring property by hand.`);
79681
79747
  const cacheKey = `${orphanLogicalId}\0${attribute}`;
79682
79748
  this.cache.set(cacheKey, cached);
79683
79749
  return {
@@ -79786,16 +79852,26 @@ async function rewriteValue(value, pathPrefix, ownerLogicalId, orphanSet, fetche
79786
79852
  if ("Ref" in obj && Object.keys(obj).length === 1 && typeof obj["Ref"] === "string") {
79787
79853
  const target = obj["Ref"];
79788
79854
  if (orphanSet.has(target)) {
79789
- const replaced = fetcher.ref(target);
79855
+ const result = fetcher.ref(target);
79856
+ if (!result.ok) {
79857
+ unresolvable.push({
79858
+ logicalId: ownerLogicalId,
79859
+ path: pathPrefix,
79860
+ orphanLogicalId: target,
79861
+ attribute: "Ref",
79862
+ reason: result.reason
79863
+ });
79864
+ return value;
79865
+ }
79790
79866
  rewrites.push({
79791
79867
  logicalId: ownerLogicalId,
79792
79868
  path: pathPrefix,
79793
79869
  kind: "ref",
79794
79870
  before: { Ref: target },
79795
- after: replaced,
79871
+ after: result.value,
79796
79872
  orphanLogicalId: target
79797
79873
  });
79798
- return replaced;
79874
+ return result.value;
79799
79875
  }
79800
79876
  return value;
79801
79877
  }
@@ -79892,17 +79968,29 @@ async function rewriteSubTemplate(template, ownerLogicalId, pathPrefix, orphanSe
79892
79968
  const dot = inner.indexOf(".");
79893
79969
  if (dot < 0) {
79894
79970
  if (orphanSet.has(inner)) {
79895
- const replaced = fetcher.ref(inner);
79896
- rewrites.push({
79897
- logicalId: ownerLogicalId,
79898
- path: pathPrefix,
79899
- kind: "sub",
79900
- before: m[0],
79901
- after: replaced,
79902
- orphanLogicalId: inner
79903
- });
79904
- out += replaced;
79905
- didChange = true;
79971
+ const result = fetcher.ref(inner);
79972
+ if (!result.ok) {
79973
+ unresolvable.push({
79974
+ logicalId: ownerLogicalId,
79975
+ path: pathPrefix,
79976
+ orphanLogicalId: inner,
79977
+ attribute: "Ref",
79978
+ reason: result.reason
79979
+ });
79980
+ out += m[0];
79981
+ hasUnresolvable = true;
79982
+ } else {
79983
+ rewrites.push({
79984
+ logicalId: ownerLogicalId,
79985
+ path: pathPrefix,
79986
+ kind: "sub",
79987
+ before: m[0],
79988
+ after: result.value,
79989
+ orphanLogicalId: inner
79990
+ });
79991
+ out += result.value;
79992
+ didChange = true;
79993
+ }
79906
79994
  } else out += m[0];
79907
79995
  } else {
79908
79996
  const target = inner.slice(0, dot);
@@ -81148,7 +81236,7 @@ function defaultOnlyParameterTemplate(template) {
81148
81236
  * the clear.
81149
81237
  *
81150
81238
  * The predicate is deliberately CONSERVATIVE — it over-refuses — and that is a
81151
- * decision a review round paid for. Two arms:
81239
+ * decision a review round paid for. Three arms:
81152
81240
  *
81153
81241
  * - **Resolution THREW** — refuse, unconditionally. A throw means the
81154
81242
  * resolver could not finish, so nothing about the persisted bag is
@@ -81176,6 +81264,19 @@ function defaultOnlyParameterTemplate(template) {
81176
81264
  * remedy -- because a populated map makes absence from it real evidence of
81177
81265
  * a public parameter, exactly as the deploy path already relies on.
81178
81266
  *
81267
+ * - **Resolution SUCCEEDED but DISCARDED a subtree that is not provably
81268
+ * inert** (issue [#2850](https://github.com/go-to-k/cdkd/issues/2850)).
81269
+ * The count in arm 2 sees only what the raw bag SPELLS, and that issue
81270
+ * measured two ways past it: a downgraded `Fn::If` dropping one reference
81271
+ * while a parameter-sourced reference is ADDED elsewhere (the totals
81272
+ * balance), and a reference sourced ENTIRELY from a parameter `Default` or
81273
+ * a `Mappings` entry then dropped (both counts read zero, and nothing
81274
+ * warns). {@link resolveDiscardsNonInertSubtree} carries the discard-event
81275
+ * enumeration and the fail-closed rules; "inert" is
81276
+ * {@link isInertDiscardedSubtree}'s definition — pure literals with no
81277
+ * opener text and no intrinsic anywhere, because every way a discarded
81278
+ * subtree could have SOURCED a reference is an intrinsic.
81279
+ *
81179
81280
  * The cost of a false refusal is one resource's drift baseline until its next
81180
81281
  * deploy; the cost of a false pass is a plaintext secret in `state.json`. So an
81181
81282
  * unmeasurable bag refuses too.
@@ -81189,17 +81290,22 @@ function defaultOnlyParameterTemplate(template) {
81189
81290
  * PLAINTEXT CAN STILL BE PERSISTED by this capture. Known ways, each with its
81190
81291
  * issue and none of them proven to be all of them:
81191
81292
  *
81192
- * - the resolve drops a reference, or trades one away, in a manner the opener
81193
- * comparison below cannot see --
81194
- * [#2850](https://github.com/go-to-k/cdkd/issues/2850);
81195
81293
  * - a parameter binds to a placeholder `Default` while the DEPLOYED value was
81196
81294
  * the reference, so no opener exists in any template this walk is handed --
81197
81295
  * [#2854](https://github.com/go-to-k/cdkd/issues/2854);
81198
- * - `redactSecretsForState` cannot PAIR the readback against the source and
81199
- * returns the bag unchanged: a reshaped container, an identity key AWS
81200
- * normalised, a readback key the source lacks, an array whose anchors do not
81201
- * corroborate -- [#2852](https://github.com/go-to-k/cdkd/issues/2852), which
81202
- * carries the measured probe table;
81296
+ * - `redactSecretsForState` cannot PAIR the readback against the source at a
81297
+ * position the source carries NO leaf for -- an observed KEY beside a paired
81298
+ * one -- so there is nothing to refuse from and the value scan has no needle
81299
+ * naming it. The row `refuseUncertifiedReadbackPositions`' own table marks
81300
+ * deliberately open, with the cost argument for leaving it that way;
81301
+ * [#2868](https://github.com/go-to-k/cdkd/issues/2868) owns it.
81302
+ * The OTHER pairing failures this bullet used to list -- a reshaped
81303
+ * container, an identity key AWS normalised, an array whose anchors do not
81304
+ * corroborate -- no longer persist the plaintext: since
81305
+ * [#2885](https://github.com/go-to-k/cdkd/issues/2885) this capture declares
81306
+ * its bag a drift baseline, so an uncertified position is masked. They are
81307
+ * rows of `tests/unit/cli/import-observed-baseline-refusal-matrix.test.ts`
81308
+ * rather than entries here;
81203
81309
  * - the readback holds a secret with NO counterpart in the source at all, set
81204
81310
  * out of band -- [#2868](https://github.com/go-to-k/cdkd/issues/2868), filed
81205
81311
  * as a remit question rather than a defect in this mechanism.
@@ -81268,13 +81374,21 @@ async function resolveImportedProperties(stackState, template, region, stateBack
81268
81374
  logger.warn(`Failed to resolve intrinsics in Properties for imported resource '${logicalId}' (${resource.resourceType}): ${maskSecretsInText(err instanceof Error ? err.message : String(err), recordedSecretValues)}. State will be written with the raw intrinsic shape, which may cause 'cdkd destroy' to fail on this resource — re-import once every referenced sibling is in state, or remove this resource via 'cdkd state orphan'.` + (unboundParameterNames.length > 0 ? ` This template also declares parameter(s) with no 'Default' that an import cannot bind (${unboundParameterNames.join(", ")}), and 'cdkd import' accepts no parameter values — if this property was built from one of those, re-importing a sibling will not change it: give the parameter a 'Default' in the template and re-import, or correct the recorded properties before the next 'cdkd deploy'.` : ""));
81269
81375
  threw = true;
81270
81376
  }
81377
+ if (recordedSecretValues.size > 0 && resource.attributes !== void 0) resource.attributes = redactSecretsForState(resource.attributes, recordedSecretValues);
81271
81378
  if (threw) {
81272
81379
  unsafeObservedBaselineLogicalIds.add(logicalId);
81273
81380
  continue;
81274
81381
  }
81275
81382
  const rawOpeners = countDynamicReferenceOpeners(unresolvedProperties);
81276
81383
  const persistedOpeners = countDynamicReferenceOpeners(resource.properties);
81277
- if (rawOpeners === void 0 || persistedOpeners === void 0 || persistedOpeners < rawOpeners) unsafeObservedBaselineLogicalIds.add(logicalId);
81384
+ let discardsNonInertSubtree;
81385
+ try {
81386
+ discardsNonInertSubtree = resolveDiscardsNonInertSubtree(unresolvedProperties, conditions, template.Mappings);
81387
+ } catch (err) {
81388
+ logger.debug(`observed-baseline discard walk failed for imported ${logicalId} (${resource.resourceType}): ${err instanceof Error ? err.name : typeof err} — refusing the baseline fail-closed.`);
81389
+ discardsNonInertSubtree = true;
81390
+ }
81391
+ if (rawOpeners === void 0 || persistedOpeners === void 0 || persistedOpeners < rawOpeners || discardsNonInertSubtree) unsafeObservedBaselineLogicalIds.add(logicalId);
81278
81392
  }
81279
81393
  return unsafeObservedBaselineLogicalIds;
81280
81394
  }
@@ -81308,6 +81422,199 @@ function countDynamicReferenceOpeners(bag) {
81308
81422
  from = at + 10;
81309
81423
  }
81310
81424
  }
81425
+ /**
81426
+ * Whether an object key can make the resolver treat its object as an
81427
+ * INTRINSIC. Deliberately BROADER than the resolver's own dispatch list
81428
+ * (`resolveValue` names specific keys; this matches any `Fn::`-prefixed one):
81429
+ * the callers below use it to decide what a DISCARDED subtree could have
81430
+ * been, and over-matching there only widens a refusal, never a pass.
81431
+ */
81432
+ function isIntrinsicShapedKey(key) {
81433
+ return key === "Ref" || key.startsWith("Fn::");
81434
+ }
81435
+ /**
81436
+ * Whether a subtree the resolve DISCARDED is provably INERT: pure JSON
81437
+ * literals, carrying no `{{resolve:` opener text in any string leaf and no
81438
+ * intrinsic-shaped object key anywhere.
81439
+ *
81440
+ * This is the capability question of issue
81441
+ * [#2850](https://github.com/go-to-k/cdkd/issues/2850) asked in the
81442
+ * fail-closed direction. Asking "could this subtree have carried or SOURCED a
81443
+ * dynamic reference" precisely would need enumerating every source a reference
81444
+ * can arrive from — a parameter `Default` via `Ref` or `Fn::Sub`, a `Mappings`
81445
+ * entry via `Fn::FindInMap`, another stack's outputs via `Fn::ImportValue` /
81446
+ * `Fn::GetStackOutput` — and the enumeration missing one form is exactly how
81447
+ * the opener COUNT missed the first two. Every one of those source forms is an
81448
+ * intrinsic, so "no intrinsic at all" covers them all without naming any, and
81449
+ * a plain-literal subtree is one whose value at deploy time was the same
81450
+ * public template text this walk can read.
81451
+ */
81452
+ function isInertDiscardedSubtree(node) {
81453
+ if (typeof node === "string") return !node.includes(DYNAMIC_REFERENCE_OPENER);
81454
+ if (node === null || typeof node !== "object") return true;
81455
+ if (Array.isArray(node)) return node.every((element) => isInertDiscardedSubtree(element));
81456
+ const record = node;
81457
+ const keys = Object.keys(record);
81458
+ if (keys.length === 1 && keys[0] === "Ref" && record["Ref"] === "AWS::NoValue") return true;
81459
+ return Object.entries(record).every(([key, value]) => !isIntrinsicShapedKey(key) && isInertDiscardedSubtree(value));
81460
+ }
81461
+ /**
81462
+ * Whether a scalar the resolver consumes RAW (an `Fn::Select` index) is a
81463
+ * template-constant literal that `resolveSelect`'s `resolvedList[index]` read
81464
+ * actually honors: a number, or the CANONICAL digit-string of one. The
81465
+ * canonical form is load-bearing, not pedantry — a delta review round
81466
+ * measured `['a','b']['01']` as `undefined` (a non-canonical string is a
81467
+ * property name, not an index) while CloudFormation integer-parses it to 1,
81468
+ * so `'01'` is exactly as selection-divergent as an intrinsic index and must
81469
+ * not count as static. Anything non-static makes the selection depend on a
81470
+ * value this import cannot reproduce.
81471
+ */
81472
+ function isStaticSelectIndex(value) {
81473
+ if (typeof value === "number") return Number.isInteger(value) && value >= 0;
81474
+ return typeof value === "string" && /^(0|[1-9]\d*)$/.test(value);
81475
+ }
81476
+ /**
81477
+ * A `Fn::FindInMap` lookup-key argument the resolver can only have resolved
81478
+ * to the same key at deploy time: a plain scalar literal CARRYING NO
81479
+ * `{{resolve:` opener. The opener clause is the same delta-review finding one
81480
+ * helper up: `resolveFindInMap` resolves each key through `resolveValue`, so
81481
+ * a dynamic-reference STRING key is decrypted before the lookup and the
81482
+ * selected entry depends on the secret's deploy-time value — not on the
81483
+ * template text this walk reads.
81484
+ */
81485
+ function isStaticLookupKey(value) {
81486
+ if (typeof value === "string") return !value.includes(DYNAMIC_REFERENCE_OPENER);
81487
+ return typeof value === "number" || typeof value === "boolean";
81488
+ }
81489
+ /**
81490
+ * ARM 3 of the observed-baseline refusal (issue
81491
+ * [#2850](https://github.com/go-to-k/cdkd/issues/2850)): did the resolve
81492
+ * DISCARD a subtree it cannot vouch is inert?
81493
+ *
81494
+ * The opener-count comparison (ARM 2) sees only what the raw bag SPELLS, and
81495
+ * the issue measured two ways past it on the success arm: a downgraded
81496
+ * `Fn::If` that drops one reference while a parameter-sourced reference is
81497
+ * added elsewhere (the totals balance), and a reference sourced ENTIRELY from
81498
+ * outside the bag then dropped (both counts read zero, nothing throws, no
81499
+ * warn fires). Both are DISCARD events: the resolver threw a subtree away
81500
+ * unresolved, and whatever that subtree would have produced — which is what
81501
+ * AWS actually holds when the deployed condition took the other branch — is
81502
+ * exactly what the persisted bag cannot position a redaction for.
81503
+ *
81504
+ * So this walk detects the discard EVENTS on the RAW bag instead of comparing
81505
+ * positions across the resolve (which would need a path identity across the
81506
+ * `Fn::If` collapse that does not exist). The discarders, enumerated from
81507
+ * `IntrinsicFunctionResolver` rather than assumed — and re-enumerated by this
81508
+ * PR's review round, which found the first cut had missed TWO (`Fn::FindInMap`
81509
+ * and `Fn::Select` below; an earlier revision called `resolveIf` "the only
81510
+ * LAZY selector" and the resolver's own source refutes it):
81511
+ *
81512
+ * - `resolveIf` — a LAZY selector: it resolves the selected branch
81513
+ * only, so the unselected branch is discarded UNRESOLVED. A missing
81514
+ * condition warns and selects the FALSE branch (no throw), so the success
81515
+ * arm reaches it. Dispatch is `'Fn::If' in obj`, not single-key.
81516
+ * - `resolveFindInMap` — the OTHER lazy site: the 4-argument form's
81517
+ * `DefaultValue` is resolved only on a lookup MISS, so a HIT discards it
81518
+ * unresolved; and a non-literal lookup KEY makes the un-taken mapping
81519
+ * entries discarded template content. The walk's own arm comment carries
81520
+ * both modes.
81521
+ * - `resolveSelect` — eager on the LIST but the INDEX is consumed RAW, never
81522
+ * resolved: an intrinsic index selects `undefined` here while
81523
+ * CloudFormation resolved it at deploy, so the whole list is potentially
81524
+ * discarded content. (With a NUMERIC-LITERAL index the selection is
81525
+ * template-constant and the un-selected elements were discarded at deploy
81526
+ * too — that case discards nothing AWS could hold.)
81527
+ * - Dispatch order itself — `resolveValue` dispatches on the first matching
81528
+ * intrinsic key, so an object holding an intrinsic key AMONG OTHER KEYS
81529
+ * resolves as that intrinsic and silently DROPS the sibling keys'
81530
+ * subtrees.
81531
+ * - NOT `Fn::Sub`: its variable map is resolved eagerly, every entry.
81532
+ * - NOT `Fn::Join`'s delimiter: it is consumed raw too, but CloudFormation
81533
+ * itself admits no intrinsic there, and an intrinsic delimiter joins as
81534
+ * `[object Object]` — a mangled value, not a discarded reference.
81535
+ *
81536
+ * Fail-closed rules, in the order tested (an earlier revision of this list
81537
+ * omitted the two arms the review round added while still claiming to BE the
81538
+ * tested order — a list that claims an order and is not the order is worse
81539
+ * than no list, so keep it complete or delete the claim):
81540
+ *
81541
+ * - an ARRAY recurses element-wise, so a discarder inside a list property
81542
+ * (`SecurityGroupIds: [{Fn::If: ...}]`) is found;
81543
+ * - single-key `Fn::If` with well-formed args and a condition the evaluated
81544
+ * map carries (`Object.hasOwn`, the same test `resolveIf` uses since issue
81545
+ * #2767): the UNSELECTED branch must be inert, and the SELECTED branch is
81546
+ * recursed into;
81547
+ * - single-key `Fn::If` whose condition the map does NOT carry: BOTH
81548
+ * branches must be inert. The resolver warns and takes the false branch,
81549
+ * so this is a SUPERSET of mirroring it — mirroring the lookup exactly is
81550
+ * the two-spellings-of-one-question drift this repo keeps paying for, and
81551
+ * the superset can only over-refuse, never leak;
81552
+ * - single-key `Fn::If` with MALFORMED args: refuse;
81553
+ * - single-key `Fn::FindInMap`: MALFORMED (< 3 args) refuses; a 4th
81554
+ * argument must be inert AS A WHOLE (its `DefaultValue` is resolved only
81555
+ * on a lookup miss, and any sibling key there — or a whole 4th arg with
81556
+ * no `DefaultValue` key — is discarded unconditionally); a non-literal
81557
+ * lookup key refuses unless the map in scope is inert (the NAMED map for
81558
+ * a literal map name, the whole `Mappings` section otherwise); then the
81559
+ * args recurse;
81560
+ * - single-key `Fn::Select`: MALFORMED (not exactly 2 args) refuses; a
81561
+ * non-static index refuses unless the list argument is inert; then the
81562
+ * args recurse;
81563
+ * - a MULTI-KEY object carrying intrinsic-shaped keys: TWO or more such
81564
+ * keys refuse outright (dispatch drops the losers as whole INTRINSICS,
81565
+ * whose values' text is not evidence of what they pull); with exactly
81566
+ * one, every value must be inert — which sibling the dispatch order
81567
+ * drops is deliberately not mirrored here;
81568
+ * - everything else recurses, so a nested `Fn::If` inside an `Fn::Join` /
81569
+ * `Fn::Sub` argument is still found.
81570
+ *
81571
+ * Additive beside ARM 1 (throw) and ARM 2 (count loss): refusal strictly
81572
+ * widens, so no previously-refused shape can start leaking, and the risk
81573
+ * direction is over-refusal alone. The negative controls live in the matrix:
81574
+ * an `Fn::If` discarding pure literals stays ADMITTED, and so does a
81575
+ * multi-key intrinsic object whose sibling values are literals.
81576
+ *
81577
+ * THE CALLER WRAPS EVERY CALL IN A FAIL-CLOSED try (see the ARM 3 note at
81578
+ * the call site): this walk recurses synchronously and a deep-enough bag
81579
+ * overflows the call stack where the JSON.stringify arms still compute.
81580
+ */
81581
+ function resolveDiscardsNonInertSubtree(node, conditions, mappings) {
81582
+ if (node === null || typeof node !== "object") return false;
81583
+ if (Array.isArray(node)) return node.some((element) => resolveDiscardsNonInertSubtree(element, conditions, mappings));
81584
+ const record = node;
81585
+ const keys = Object.keys(record);
81586
+ if (keys.length === 1 && keys[0] === "Fn::If") {
81587
+ const args = record["Fn::If"];
81588
+ if (!Array.isArray(args) || args.length !== 3 || typeof args[0] !== "string") return true;
81589
+ const [conditionName, valueIfTrue, valueIfFalse] = args;
81590
+ if (!Object.hasOwn(conditions, conditionName)) return !isInertDiscardedSubtree(valueIfTrue) || !isInertDiscardedSubtree(valueIfFalse);
81591
+ const selected = conditions[conditionName] ? valueIfTrue : valueIfFalse;
81592
+ if (!isInertDiscardedSubtree(conditions[conditionName] ? valueIfFalse : valueIfTrue)) return true;
81593
+ return resolveDiscardsNonInertSubtree(selected, conditions, mappings);
81594
+ }
81595
+ if (keys.length === 1 && keys[0] === "Fn::FindInMap") {
81596
+ const args = record["Fn::FindInMap"];
81597
+ if (!Array.isArray(args) || args.length < 3 || args.length > 4) return true;
81598
+ if (args.length > 3) {
81599
+ if (!isInertDiscardedSubtree(args[3])) return true;
81600
+ }
81601
+ if (!args.slice(0, 3).every((key) => isStaticLookupKey(key))) {
81602
+ if (!isInertDiscardedSubtree(typeof args[0] === "string" && mappings !== null && typeof mappings === "object" && Object.hasOwn(mappings, args[0]) ? mappings[args[0]] : mappings)) return true;
81603
+ }
81604
+ return args.some((arg) => resolveDiscardsNonInertSubtree(arg, conditions, mappings));
81605
+ }
81606
+ if (keys.length === 1 && keys[0] === "Fn::Select") {
81607
+ const args = record["Fn::Select"];
81608
+ if (!Array.isArray(args) || args.length !== 2) return true;
81609
+ if (!(isStaticSelectIndex(args[0]) && (!Array.isArray(args[1]) || Number(args[0]) < args[1].length)) && !isInertDiscardedSubtree(args[1])) return true;
81610
+ return args.some((arg) => resolveDiscardsNonInertSubtree(arg, conditions, mappings));
81611
+ }
81612
+ if (keys.length > 1 && keys.some((key) => isIntrinsicShapedKey(key))) {
81613
+ if (keys.filter((key) => isIntrinsicShapedKey(key)).length > 1) return true;
81614
+ return !keys.every((key) => isInertDiscardedSubtree(record[key]));
81615
+ }
81616
+ return keys.some((key) => resolveDiscardsNonInertSubtree(record[key], conditions, mappings));
81617
+ }
81311
81618
  function printSummary(rows) {
81312
81619
  const logger = getLogger();
81313
81620
  const counts = {
@@ -81449,7 +81756,7 @@ async function captureObservedForImportedResources(stackState, providerRegistry,
81449
81756
  }).provider;
81450
81757
  if (!provider.readCurrentState) return;
81451
81758
  const observed = await provider.readCurrentState(resource.physicalId, logicalId, resource.resourceType, resource.properties ?? {}, buildReadCurrentStateContext(stackState, logicalId));
81452
- if (observed !== void 0) resource.observedProperties = redactSecretsForState(observed, NO_RECORDED_SECRETS, resource.properties ?? {}, STATE_SOURCED_READBACK_RULES);
81759
+ if (observed !== void 0) resource.observedProperties = redactSecretsForState(observed, NO_RECORDED_SECRETS, resource.properties ?? {}, STATE_SOURCED_BASELINE_RULES);
81453
81760
  } catch (err) {
81454
81761
  logger.debug(`observedProperties capture for imported ${logicalId} (${resource.resourceType}) failed: ${err instanceof Error ? err.name : typeof err} — drift will fall back to template properties for this resource until the next successful deploy.`);
81455
81762
  }
@@ -90852,4 +91159,4 @@ function buildProgram() {
90852
91159
 
90853
91160
  //#endregion
90854
91161
  export { buildProgram };
90855
- //# sourceMappingURL=program-CMhpftan.js.map
91162
+ //# sourceMappingURL=program-BEvh5nqs.js.map