@cdkd/cli 0.373.0 → 0.373.2
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/{ambient-client-defaults-1yRnA0Re.js → ambient-client-defaults-CruQnpD7.js} +18 -4
- package/dist/ambient-client-defaults-CruQnpD7.js.map +1 -0
- package/dist/{asg-provider-3uPCjYQK.js → asg-provider-C76YNNe3.js} +8 -8
- package/dist/{asg-provider-3uPCjYQK.js.map → asg-provider-C76YNNe3.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{replacement-rules-BoZMVFdK.js → created-resource-sink-Bf6U_kyO.js} +1394 -1474
- package/dist/created-resource-sink-Bf6U_kyO.js.map +1 -0
- package/dist/{custom-resource-runtime-DURpNFOa.js → custom-resource-runtime-DNWvFAcJ.js} +6 -6
- package/dist/{custom-resource-runtime-DURpNFOa.js.map → custom-resource-runtime-DNWvFAcJ.js.map} +1 -1
- package/dist/{db-associated-roles-BbvtfXqW.js → db-associated-roles-ChxC2pWo.js} +2 -2
- package/dist/{db-associated-roles-BbvtfXqW.js.map → db-associated-roles-ChxC2pWo.js.map} +1 -1
- package/dist/{delete-started-yz9plykR.js → delete-started-DCNzpczG.js} +4 -4
- package/dist/{delete-started-yz9plykR.js.map → delete-started-DCNzpczG.js.map} +1 -1
- package/dist/{deploy-engine-C12Ygjb-.js → deploy-engine-DkJ03QT5.js} +43557 -42665
- package/dist/deploy-engine-DkJ03QT5.js.map +1 -0
- package/dist/{ec2-termination-protection-UZAZ2Hzv.js → ec2-termination-protection-CmMB_KbJ.js} +3 -3
- package/dist/{ec2-termination-protection-UZAZ2Hzv.js.map → ec2-termination-protection-CmMB_KbJ.js.map} +1 -1
- package/dist/{ecr-uri-C74u9FtL.js → ecr-uri-DH03qkk2.js} +2 -2
- package/dist/{ecr-uri-C74u9FtL.js.map → ecr-uri-DH03qkk2.js.map} +1 -1
- package/dist/{emr-cluster-provider-2ezuxbz3.js → emr-cluster-provider-BdJs64i8.js} +11 -11
- package/dist/emr-cluster-provider-BdJs64i8.js.map +1 -0
- package/dist/{expected-bucket-owner-0yx_Q4Hl.js → expected-bucket-owner-D0nm7Szq.js} +2 -2
- package/dist/{expected-bucket-owner-0yx_Q4Hl.js.map → expected-bucket-owner-D0nm7Szq.js.map} +1 -1
- package/dist/{iam-role-provider-CZtZQJRp.js → iam-role-provider-BSj01gWD.js} +12 -12
- package/dist/{iam-role-provider-CZtZQJRp.js.map → iam-role-provider-BSj01gWD.js.map} +1 -1
- package/dist/{identity-read-denied-DBsqwW85.js → identity-read-denied-CwSWOLvl.js} +5 -6
- package/dist/identity-read-denied-CwSWOLvl.js.map +1 -0
- package/dist/{image-plan-DW_fg6mx.js → image-plan-D7hoLiS-.js} +8 -8
- package/dist/{image-plan-DW_fg6mx.js.map → image-plan-D7hoLiS-.js.map} +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-JtU7m4ph.js → logger-BTKRoxiD.js} +2 -2
- package/dist/{logger-JtU7m4ph.js.map → logger-BTKRoxiD.js.map} +1 -1
- package/dist/{neptune-provider-ClT-eveS.js → neptune-provider-BNvxobyO.js} +9 -9
- package/dist/{neptune-provider-ClT-eveS.js.map → neptune-provider-BNvxobyO.js.map} +1 -1
- package/dist/{program-BPrn1MhZ.js → program-BjmeRD9o.js} +471 -190
- package/dist/program-BjmeRD9o.js.map +1 -0
- package/dist/{provider-classes-Bi3D5zDS.js → provider-classes-Bn4iaev8.js} +263 -112
- package/dist/provider-classes-Bn4iaev8.js.map +1 -0
- package/dist/{rds-provider-D610vnfB.js → rds-provider-CNEA-pHZ.js} +13 -13
- package/dist/{rds-provider-D610vnfB.js.map → rds-provider-CNEA-pHZ.js.map} +1 -1
- package/dist/{read-replica-Br2tFu0d.js → read-replica-0-l8YLR9.js} +3 -3
- package/dist/{read-replica-Br2tFu0d.js.map → read-replica-0-l8YLR9.js.map} +1 -1
- package/dist/{redacted-delete-address-DVgNoeo4.js → redacted-delete-address-Cq-qhxug.js} +5 -5
- package/dist/redacted-delete-address-Cq-qhxug.js.map +1 -0
- package/dist/replacement-rules-BRQEsmYu.js +1867 -0
- package/dist/replacement-rules-BRQEsmYu.js.map +1 -0
- package/dist/{resource-deadline-BkQ9mJAk.js → resource-deadline-B6k_qtRx.js} +2 -2
- package/dist/{resource-deadline-BkQ9mJAk.js.map → resource-deadline-B6k_qtRx.js.map} +1 -1
- package/dist/{restore-source-guard-BkS5tGr5.js → restore-source-guard-Dlh_1tru.js} +5 -5
- package/dist/restore-source-guard-Dlh_1tru.js.map +1 -0
- package/dist/{run-cli-Ds9QnqnH.js → run-cli-fBTOa8id.js} +2 -2
- package/dist/{run-cli-Ds9QnqnH.js.map → run-cli-fBTOa8id.js.map} +1 -1
- package/dist/{secret-reference-immutable-BC4abPuQ.js → secret-reference-immutable-DSSUW_aD.js} +117 -10
- package/dist/{secret-reference-immutable-BC4abPuQ.js.map → secret-reference-immutable-DSSUW_aD.js.map} +1 -1
- package/dist/{settle-own-write-members-D6wzEt7f.js → settle-own-write-members-7riYzUx1.js} +10 -10
- package/dist/{settle-own-write-members-D6wzEt7f.js.map → settle-own-write-members-7riYzUx1.js.map} +1 -1
- package/dist/{tag-list-UEcqQLzY.js → tag-list-lOyb6hiQ.js} +4 -4
- package/dist/{tag-list-UEcqQLzY.js.map → tag-list-lOyb6hiQ.js.map} +1 -1
- package/dist/{version-Dn0kzidt.js → version-BO9jLQis.js} +2 -2
- package/dist/{version-Dn0kzidt.js.map → version-BO9jLQis.js.map} +1 -1
- package/package.json +1 -1
- package/dist/ambient-client-defaults-1yRnA0Re.js.map +0 -1
- package/dist/created-resource-sink-CBOr1ShX.js +0 -1397
- package/dist/created-resource-sink-CBOr1ShX.js.map +0 -1
- package/dist/deploy-engine-C12Ygjb-.js.map +0 -1
- package/dist/emr-cluster-provider-2ezuxbz3.js.map +0 -1
- package/dist/identity-read-denied-DBsqwW85.js.map +0 -1
- package/dist/program-BPrn1MhZ.js.map +0 -1
- package/dist/provider-classes-Bi3D5zDS.js.map +0 -1
- package/dist/redacted-delete-address-DVgNoeo4.js.map +0 -1
- package/dist/replacement-rules-BoZMVFdK.js.map +0 -1
- package/dist/restore-source-guard-BkS5tGr5.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-
|
|
2
|
-
import { $ as renderStacksNoLongerSelected, $t as contextOptions, A as followContainerLogs, An as parseStateKey, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as parsePositiveIntegerOption, Ct as resolveContainerRegion, Dn as describeStateKey, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as STATE_KEY_MAX_CODE_POINTS, Et as taskRoleAssumedInRealAws, F as removeContainer, Ft as legacyStateBucketFallbackRegion, G as nestedOwnerOfLogicalId, Gt as withOtherIndexRemoval, H as resolveRuntimeImage, Ht as resolveEffectiveRegion, It as namedCliRegion, J as renderAllLeftOutStageStacks, Jt as annotationMessageOptions, K as partitionTopLevel, Kt as strandedProfileCredentialsNotice, L as runDetached, Lt as rawCliRegion, M as killAndDrainContainerLogs, Mt as adoptRegionFlag, N as pickFreePort, Nt as exportInferredRegionForSdk, O as ensureDockerAvailable, On as listAllLockKeys, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as commonOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as cliArgParser, St as realAwsException, T as DockerRunnerError, Tn as STATE_FILE_SUFFIX, Tt as stateRoleRecordIsEmulatorSide, U as describeStack, Ut as stackRegionResolver, V as resolveRuntimeFileExtension, Vt as regionShown, W as matchStacks, Wt as stateWithRegion, X as renderAmbiguousTargetStack, Xt as applyWaitFlagEnv, Y as renderAllNoTopLevelStacks, Yt as appOptions, Z as renderNoStackMatch, Zt as collectRepeated, _ as probeHostGatewaySupport, _n as allowUnsupportedTypesOption, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noCfnFallbackOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as resourceTimeoutOptions, bt as prepareLocalLoopbackForwarder, cn as parseStackRegion, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stackOptions, dt as activateLocalAwsAndRoleArn, en as deployOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as stateOptions, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as parseAssumeRoleToken, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as normalizeStartApiAssumeRole, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as guardStackRegionOptions, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kn as listAllStateKeys, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as regionOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as effectiveAssumeRoleArn, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as diffUpdatePolicyOptions, nt as stackMatchesPattern, o as resolveLambdaTarget, on as noLocalCustomResourcesOption, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as useCdkBootstrapAssetsOption, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as exclusivelyOption, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseContextOptions, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as destroyOptions, tt as selectTargetStack, u as assetPathDirs, un as skipFinalSnapshotOption, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as diffReplaceResourceOption, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as LOCK_FILE_SUFFIX, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as validateResourceTimeouts, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as parseDuration, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-
|
|
3
|
-
import {
|
|
1
|
+
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-BO9jLQis.js";
|
|
2
|
+
import { $ as renderStacksNoLongerSelected, $t as contextOptions, A as followContainerLogs, An as parseStateKey, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as parsePositiveIntegerOption, Ct as resolveContainerRegion, Dn as describeStateKey, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as STATE_KEY_MAX_CODE_POINTS, Et as taskRoleAssumedInRealAws, F as removeContainer, Ft as legacyStateBucketFallbackRegion, G as nestedOwnerOfLogicalId, Gt as withOtherIndexRemoval, H as resolveRuntimeImage, Ht as resolveEffectiveRegion, It as namedCliRegion, J as renderAllLeftOutStageStacks, Jt as annotationMessageOptions, K as partitionTopLevel, Kt as strandedProfileCredentialsNotice, L as runDetached, Lt as rawCliRegion, M as killAndDrainContainerLogs, Mt as adoptRegionFlag, N as pickFreePort, Nt as exportInferredRegionForSdk, O as ensureDockerAvailable, On as listAllLockKeys, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as commonOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as cliArgParser, St as realAwsException, T as DockerRunnerError, Tn as STATE_FILE_SUFFIX, Tt as stateRoleRecordIsEmulatorSide, U as describeStack, Ut as stackRegionResolver, V as resolveRuntimeFileExtension, Vt as regionShown, W as matchStacks, Wt as stateWithRegion, X as renderAmbiguousTargetStack, Xt as applyWaitFlagEnv, Y as renderAllNoTopLevelStacks, Yt as appOptions, Z as renderNoStackMatch, Zt as collectRepeated, _ as probeHostGatewaySupport, _n as allowUnsupportedTypesOption, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noCfnFallbackOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as resourceTimeoutOptions, bt as prepareLocalLoopbackForwarder, cn as parseStackRegion, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stackOptions, dt as activateLocalAwsAndRoleArn, en as deployOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as stateOptions, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as parseAssumeRoleToken, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as normalizeStartApiAssumeRole, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as guardStackRegionOptions, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kn as listAllStateKeys, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as regionOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as effectiveAssumeRoleArn, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as diffUpdatePolicyOptions, nt as stackMatchesPattern, o as resolveLambdaTarget, on as noLocalCustomResourcesOption, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as useCdkBootstrapAssetsOption, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as exclusivelyOption, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseContextOptions, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as destroyOptions, tt as selectTargetStack, u as assetPathDirs, un as skipFinalSnapshotOption, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as diffReplaceResourceOption, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as LOCK_FILE_SUFFIX, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as validateResourceTimeouts, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as parseDuration, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-D7hoLiS-.js";
|
|
3
|
+
import { At as resourceTypeShown, Bi as CUSTOM_RESOURCE_RESPONSE_PREFIX, Bn as logOnlyValueCount, C as VALUE_NOT_SHOWN, Ci as recordProvenPublicExpression, Ei as WHOLE_DYNAMIC_REFERENCE_PATTERN, Fi as formatLockExpiry, Gi as withPasteableAwsProfile, Gn as recordLogOnlyValue, Hi as WAIT_CONDITION_SIGNAL_PREFIX, Hn as printingCorpusOf, Hr as keepTemplateLiteralLeaves, Ii as formatLockOperation, In as createUnionSecretMasker, It as maskDeep, Ji as producerCoordinateKey, Jn as createSecretMasker, Jr as DYNAMIC_REFERENCE_TOKEN_SCAN, Ki as injectiveKey, Kn as shareLogOnlyValues, Kr as recordPhysicalNameCopy, Li as formatLockOwner, Lr as recordNestedStackParameterExpressions, M as remedyLogicalId, Mi as buildForceUnlockCommand, Ni as buildLockContentionMessage, Ot as logicalIdShown, P as isMarkedNotGone, Pi as forceQuitRecoveryClause, Pn as carryLogOnlyValues, Q as runDeleteAttempt, Qn as maskSecretsInText, Rn as hasMaskableValues, Si as recordNoEchoParameterFreshValue, St as isInterruptedWaitError, Tr as inheritNestedStackParameterAssociations, Ui as setPasteableAwsCaBundle, Un as recordLogOnlyParameterValue, Vi as DEFAULT_STATE_PREFIX, Wi as setPasteableAwsProfile, Wr as physicalNameCopiesOf, Xr as dynamicReferenceTokens, Yi as producerRecordKey, Yn as errorCauseChain, Yr as dynamicReferenceSpans, Zn as maskSecretsInError, Zt as countDynamicReferenceOpenings, an as mentionsMask, at as isAwsCliLiteral, b as assertRegionMatch, bi as recordMaskOnlyValuesIn, bn as resolvedPlaintextOf, bt as endCommandInterruptScope, cn as recordedSecrecyOf, ct as renderDisableCommand, en as holdsMaskLeaf, gi as provenPublicValue, gr as pathCrossesDottedKey, gt as readRecordedPrincipals, hr as spelledKeysOf, ii as carriesSecretMask, in as mentionsDynamicReferenceTo, ji as UNREPRODUCIBLE_LOCK_CLAUSE, ki as isSingleDynamicReferenceToken, lr as scrubResourceRecord, lt as IAM_PRINCIPAL_NAME, mr as isUncertifiedBaselineMaskPosition, qn as unionOfSecretBags, ri as splitGetAttStringForm, rn as mentionsDynamicReference, sn as opensDynamicReferenceTo, tn as isMaskLeaf, un as valueMentionsDynamicReference, ur as withPhysicalNameCopies, ut as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, v as DriftReadRefusedError, vr as identityKeyFor, wi as wholeStringLeavesOf, wn as redactForState, xi as recordNoEchoAttributeValues, xt as interruptWatchListenerCount, y as RESOURCE_NOT_FOUND, yi as recordMaskOnlyValue, yt as beginCommandInterruptScope, zn as literalSplitDelimitersOf } from "./created-resource-sink-Bf6U_kyO.js";
|
|
4
4
|
import { a as runWithStackAwsClients, i as resetAwsClients, l as s3ClientDefaults, o as setAwsClients, s as resolveS3ClientDefaults, t as AwsClients, u as setS3ClientDefaultsDebugLog } from "./aws-clients-DOkPjjAW.js";
|
|
5
|
-
import { $ as withStackScope, A as configStringRefusal, B as generateResourceName, E as coerceCfnBoolean, F as requireConfigString, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, f as isAwsAuthoredFailure, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-
|
|
6
|
-
import { A as stripControlChars, B as
|
|
5
|
+
import { $ as withStackScope, A as configStringRefusal, B as generateResourceName, E as coerceCfnBoolean, F as requireConfigString, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, f as isAwsAuthoredFailure, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-BTKRoxiD.js";
|
|
6
|
+
import { $ as AccountIdUnavailableError, A as stripControlChars, B as isTransientServerError, F as isAmbiguousOutcomeError, G as markNonRetryable, H as THROTTLING_ERROR_NAMES, J as CrossAccountSecretRefusalError, U as isMarkedNonRetryable, V as retryClassificationText, W as isThrottlingError, X as IntrinsicResolutionRefusalError, Y as DynamicReferenceRegionAmbiguousError, Z as MalformedProducerRecordRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, ct as StateError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, it as LocalInvokeBuildError$1, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, lt as SynthesisError, n as ambientCredentialConfig, nt as DeployCancelledError, o as formatError, ot as ProvisioningError, r as clientDefaultsFor, s as handleError, st as ResourceTimeoutError, t as ambientClientDefaults, tt as CdkdError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isRetryableTransientError } from "./ambient-client-defaults-CruQnpD7.js";
|
|
7
7
|
import { a as getAssumedRoleCredentials, c as setAssumedRoleCredentials, h as formatAuthority, l as setAwsEndpointOverrideSource, m as runInStackAwsScope, n as awsClientDefaults, r as awsEndpointOverrideActive, s as runWithRealAws } from "./aws-client-defaults-DAebi99J.js";
|
|
8
|
-
import { $ as createLegacyAssetParameterBinder, A as runDockerForeground, B as resolveCaptureObservedState, C as finchSecretArgvRefusal, D as isMalformedEnvKey, E as isDockerClientEnvKey, F as getDefaultStateBucketName, G as resolveUpdatePolicy, H as resolveStateBucketWithDefault, I as getLegacyStateBucketName, J as warnDeprecatedNoPrefixCliFlag, K as resolveUseCdkBootstrapAssets, L as loadCdkJson, M as abortInFlightMultipartUploads, N as Synthesizer, O as formatDockerLoginError, P as synthesisStatusMessage, Q as bindLegacyStackAssetParameters, R as resolveApp, S as dockerSpawnEnvWithSensitive, T as warnFinchArgvExposure, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as resolveStateBucketWithSource, X as AssemblyReader, Y as refuseFailedLookups, Z as StageLoadError, _ as describeDockerExecFailure, at as setChildProcessAwsEnv, b as redactedDockerCause, d as isLockInfoExpired, et as legacyPlanAssetCount, f as AssetPublisher, h as resolveDockerContextDirectory, i as mergeDeclaredEntries, it as processStackMessages, j as runDockerStreaming, k as getDockerCmd, l as DagBuilder, m as buildDockerImage, n as declaredStringList, nt as prepareLegacyStackAssets, p as WorkGraph, q as stateBucketExistenceConfirmed, r as inlinePoliciesAreDeclared, rt as CdkToolkitBucketMissingError, s as stringListIsDeclared, t as declaredInlinePolicies, tt as predictedAutoCreatedAssetMode, u as LockManager, v as describeDockerFailure, w as partitionSensitiveEnv, x as redactDockerArgvValues, y as redactedCause, z as resolveAutoAssetStorage } from "./settle-own-write-members-
|
|
9
|
-
import { $ as slashedSsmNameHealPendingNote, $a as supersededHolderOf, $d as loadPublishableAssetManifest, $i as seedsDeleteFirstGuard, $l as malformedLocalResourceEntriesWarning, $n as recordRetainedForReadoption, $r as hintSidesOf, $s as RollbackInlinePolicyWriters, $u as findActionableSdkUnwired, A as parseCfnTemplateWithFormat, Aa as displayTextOrWithheld, Ac as classifyRecordedSecretRegion, Ad as findNestedTemplateTreeDefect, Af as describeFileReadFailure, Ai as replayRollback, Al as getSettledWriteOnlyPropertyPaths, Ao as namingSecretsWithRecordedNoEcho, Ar as withNestedRevertRun, As as classifyHandleUrl, Au as malformedOutputsWarning, B as conditionFingerprint, Ba as collectDeclaredOutputNames, Bd as findLargeInlineResources, Bi as equalModuloMarkedMask, Bl as deployRefusesOrphanRowsReason, Bo as ATOMIC_FINAL_SNAPSHOT_TYPES, Br as sameJournaledOrphans, Bu as refuseMalformedResourcesForDeploy, C as templateMixesDynamicReference, Cc as isIamRoleArn, Cd as isNotImplemented, Cf as defineOwnKey, Ci as recordedRuleIdOf, Co as noEchoParameterNamesOf, Cr as displacedPhysicalIdShown, Cu as refuseMalformedOrphans, D as getCloudFormationResourceTree, Da as reachableDivergentParameters, Dc as applyCallerIdentityCredentials, Dd as isSensitiveAttributeName, Df as ownValue, Di as siblingRecordedSgRuleIds, Dl as secretPhysicalIdSegment, Do as completedReplayEntries, Dr as recordDisplacedSkips, Ds as isCustomResource, Du as malformedExportSourceWarning, E as findReplacedCfnResources, Ea as namesAnyDeclaredParameter, Ec as AWS_CREDENTIAL_ENV_KEYS, Ed as isSecretValuedAttribute, Ef as nullPrototypeRecord, Eo as createReadOnlyAttributeHealerFactory, Er as nestedChildStackName$1, Es as ccBrokenReason, Et as streamPolicyMatchesDeclared, Eu as malformedExportNamesWarning, F as promptYesNo, Fa as carriedExportAliasExposure, Fc as isUnexposedRecordedIdentity, Fi as buildReadCurrentStateContext, Fl as parameterInputsFor, Fo as secretNamedRecordNeedles, Fr as dropFailedCommands, Fs as customResourceResponseExpirationWarning, Fu as STATE_REGION_DIVERGED, G as hasPendingMovesOut, Ga as DEFAULT_RESOURCE_WARN_AFTER_MS, Gc as AWS_NO_VALUE, Gi as findUpdatePolicyReplacementRefusals, Gl as previewableOrphanRecords, Go as isFinalSnapshotError, Gr as DeploymentEventsStore, Gs as customResourcesRunWithoutApp, Gu as JSON_LISTING_HOLE_VALUE, H as parentSuppliedValues, Ha as isExportAliasCollision, Hc as coerceParameterTypedValue, Hd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Hi as undeclaredEmptyObservedKeys, Hl as malformedOrphanRecordsRefusalMessage, Ho as ccRoutedFinalSnapshotError, Hr as makeSiblingClaimReader, Hs as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Hu as refuseMalformedResourcesForExport, I as serializePrompt, Ia as exportNameNoEchoParameters, If as resolveBucketRegion, Ii as recordAfterRollbackUpdate, Il as maskedInputProof, Io as stackSecretNamesMasker, Ir as dropFailedHint, Iu as refuseDivergentRecordRegionForDestroy, J as refusePendingMovesOut, Ja as holdsSupersededResources, Jc as refStateLookupFromResource, Jd as createAssetRedirectResolver, Ji as ledgerForStack, Jl as refuseMalformedOrphansForOrphan, Jo as createPreDeleteFinalSnapshot, Jr as findDestructiveChanges, Js as setLocalCustomResourceRuntimeEnabled, Ju as STATE_RESOURCES_MALFORMED, K as pendingMovesOutOf, Ka as maskingRetryLogger, Kc as cfnRefValueFromPhysicalId, Ki as replacementCreateRoutesToCloudControl, Kl as refuseMalformedOrphanRecords, Ko as refusesFinalSnapshot, Kr as crossStackReadsForPartialSave, Ks as localCustomResourceCommand, Ku as accountArgs, L as NESTED_STACK_RESOURCE_TYPE$1, La as exportNameSecretExposure, Ld as ssmResolvedValueType, Li as settleUnsettledPrevious, Lo as stateSecretNameNeedles, Lr as isHandledOrphan, Ls as TemplateNoEchoReresolver, Lu as malformedRenderedContainersWarning, M as SUPERSEDED_COPY_HINT, Ma as secretBearing, Mc as producerRegionsFromState, Md as listNestedTemplateRows, Mi as PLANNED_EARLY_DELETE_CONSEQUENCE, Ml as tryGetTopLevelWriteOnlyProperties, Mo as secretNamePrintingBag, Mr as getCurrentNestedStackContext, Ms as isSignalKey, Mu as refuseMalformedOutputs, N as cfnFailureText, Na as secretBearingStateKeyWarning, Nc as regionLessSecretName, Nd as renderNestedTemplateTreeDefect, Nf as renderAssemblyPathEscape, Ni as earlyDeleteWhen, Nl as publicReferencesOf, No as secretNamePrintingBags, Nr as withNestedStackContext, Ns as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, Nu as refuseMalformedOutputsForDestroy, O as tryGetCloudFormationResourceMap, Oa as resourcesNamingDeclaredParameter, Oc as callerEnvCredentials, Ol as secretSegmentsOfState, Oo as journaledOrphanPrintingBag, Os as wouldReturnToSdkProvider, Ou as malformedLocalOutputsWarning, P as confirmOrRefuse, Pa as secretSafeKeyDisplay, Pc as withoutLapsedStaleShapeStamp, Pd as templateIdentity, Pf as resolveAssemblyPath, Pi as earlyDeletedOld, Pl as maskedPropertyFingerprintsOf, Pr as deleteJournaledOrphans, Ps as applyCustomResourceResponseExpiration, Pu as repairMalformedOutputsForReadOnly, Q as slashedSsmNameHealNote, Qa as supersededHeldByOtherTypeWarning, Qc as keepHeldTokenProvenance, Qi as planRollback, Ql as isReadableResourceEntry, Qn as keptForRetainedRecord, Qr as findRefactorHints, Qu as hasReadableResources, R as readDbInstanceAvailabilityZone, Ra as isWholeDynamicReferenceValue, Rd as CFN_TEMPLATE_BODY_LIMIT, Ri as withUnprovenUnsettled, Rl as declaresNoEcho, Ro as storedSecretNameNeedles, Rr as journaledOrphanLines, Rs as readsNoEchoDeleteValues, Ru as malformedResourcesWarning, S as taintedNamesOf, Sa as withNameGenerationReached, Sc as explicitRoleArnOrThrow, Sd as isAccessDenied, Si as undeclaredGrantSiblingMembers, So as noEchoComparisonForTemplate, Sr as displacedOpClause, Su as malformedOrphansWarning, T as prepareCloudFormationStackRetirement, Ta as computeParameterTaint, Tc as sendableAssumeRoleCommand, Td as withStackInstanceIdWithheld, Tf as hasPlainPrototype, Ti as sgSiblingDecidedById, Tl as displayPhysicalId, To as noEchoExactEchoLeavesOf, Ts as ProviderRegistry, Tu as repairMalformedOrphansForReadOnly, U as readRecordedConditionVerdicts, Ua as bindingSkippedOutputs, Uc as isUnboundTemplateParameter, Ui as updatePartialMessage, Ul as malformedOrphanRecordsWarning, Uo as ccRoutedInstanceTakesNoSnapshot, Ur as planOrphanAdoption, Uu as refuseMalformedState, V as conditionInputsFrom, Va as collectPublishedOutputNames, Vd as uploadCfnTemplate, Vi as equalModuloMask, Vl as isReadableOrphanRecord, Vo as PRE_DELETE_SNAPSHOT_TYPES, Vr as makeForeignHolderScan, Vs as withPrintingSecrets, Vu as refuseMalformedResourcesForDestroy, W as childTemplateLoader, Wa as DEFAULT_RESOURCE_TIMEOUT_MS, Wc as parameterTypeMayLoseSecretIdentity, Wd as decodeListingKey, Wi as updatePartialReason, Wl as malformedOrphanRowsKeptWarning, Wo as effectiveDeletionPolicy, Wr as DeploymentEventsReader, Ws as customResourcesFailedWithoutApp, Wu as repairMalformedResourcesForReadOnly, X as healSlashedSsmParameterNames, Xa as supersededAfterRollback, Xc as lacksRecordedTableArn, Xi as withCreateTokenLedger, Xl as unpreviewableOrphanRecords, Xr as formatDestructiveChange, Xu as displayLogicalId, Y as warnLegacySpelling, Ya as isSupersededResourceRecord, Yc as lacksRecordedRefArn, Yd as createLazyAssetModeContext, Yl as repairMalformedOrphanRecordsForReadOnly, Yo as buildFinalSnapshotIdentifier, Yr as formatChangeCounts, Ys as withCustomResourceStack, Yu as UNREADABLE_RESOURCES_MAP_ROW, Z as slashedSsmNameHealAdoptedNote, Za as supersededDependentsFirst, Zl as unreadableOrphanRecords, Zn as NestedCleanupQueue, Zr as orphanedLogicalIds, Zs as CloudControlProvider, Zu as hasReadableOutputs, _ as mixedSecretRowKeys, _a as nameGenerationHighWaterOf, _c as producerLookupOver, _d as rebuildClientForBucketRegion, _f as readBootstrapMarkerBody, _i as noEchoMacParametersOf, _l as MULTI_REGION_RECREATE_BLOCKED_TYPES, _o as gray, _r as formatResourceLine, _s as policyDocumentMatchesDeclared, _u as refuseMalformedResourcePropertiesForOrphan, a as mergeNoChangeOutputs, aa as recordUnderIdIsNotOwn, ac as getReadOnlyPropertyPaths, ad as hasNoCloudControlHandlers, ai as changedReferenceReason, al as carriesFetchableDynamicReference, ao as withPreviousPolicies, ar as sameMove, as as revertStackRecordsView, at as deferredServiceTokenWarning, au as refuseMalformedResourceEntriesForDeploy, b as recordedValuesOf, ba as retiredNameGenerationsAfter, bc as assertFlagRoleArn, bd as applyCrossPrefixScan, bf as BOOTSTRAP_MARKER_PREFIX, bi as siblingOwnedRevertDesired, bl as renderStatefulReason, bo as yellow, br as resolvePendingCloudControlRequests, bu as hasReadableOrphans, c as nestedSsmNameRowNote, ca as computeImplicitDeleteEdges, cc as DiffCalculator, ci as looselyEqual, cl as keepsSecretReferenceToken, co as cfnIngressPortValue, cr as isReceiver, ct as diffSecurity, cu as refuseMalformedResourceEntriesForImportSave, d as makeCanonicalizePropertiesFn, da as readsRegeneratingSecret, dc as isAlwaysLiveAttribute, dd as TemplateParser, df as ensureAssetStorage, di as propertiesChangedReason, dl as LEGACY_HANDLE_HEAL_REASON, dn as tagsMatchDeclared, do as sgProtocolKey, dt as PROTECTION_PROPERTY_BY_TYPE, du as unreadableResourceEntries, ea as demoteSupersededOrphans, ec as UNSPECIFIED_SKIP_REASON, ed as findHandledUnwrittenCreateOnly, ei as movedToHint, el as recordedOutputReferenceRegions, eo as supersededResourcesOf, er as readRefactorMarker, et as scanActiveConsumers, eu as malformedLocalResourcesWarning, f as calculatorMaskingPassedSecretLines, fa as segmentCleanupOptions, fc as poisonRenderedSpellingsCollidingIn, fd as S3StateBackend, ff as buildDenyExternalAccessPolicy, fi as proposeRenames, fr as childStackTags, fs as declaredMemberDocument, ft as isProtectionValueActive, fu as malformedDriftResourcePropertiesWarning, g as maskPassedSecretReasons, ga as nameGenerationCarriedFrom, gc as resolveDynamicReferences, gd as hasUnverifiableParameterRefusal, gf as parseBootstrapMarker, gi as noEchoMacBinding, gl as shownType, go as cyan, gs as memberReadFailure, gu as refuseMalformedResourcePropertiesForExport, h as maskPassedSecretOutputs, ha as orphanNeedsIdentity, hd as hasReasonlessBaselineRefusal, hf as getBootstrapMarkerKey, hi as createNoEchoValueMacs, hl as refuseStatefulReplacedReaders, ho as bold, hr as readsOnlyNoEchoParameters, hs as lambdaPermissionMatchesDeclared, hu as refuseMalformedResourcePropertiesForDrift, i as keptWholeReasonText, ia as recheckFailedPlan, id as NO_CC_HANDLERS_REASON, if as getDockerImageBySourceHash, ii as changedReferencePath, il as isImpossibleEmptyStoredAttribute, io as resolveReplacementOldType, ir as refuseRefactorMarker, it as renderUnreplacedTarget, iu as refuseMalformedResourceEntries, j as stringifyCfnTemplate, ja as exportAliasCollisionScrubWarning, jc as classifyReplaySecretRegion, jd as isAbsoluteAssetPath, jf as displayAssemblyPath, ji as DELETED_RESOURCE_REMEDY, jl as getTopLevelKeysHoldingUnreadableCreateOnly, jo as orphanRecordsPrintingBag, jr as collectNestedChildUnaddressed, k as parseCfnTemplate, ka as WITHHELD_NAME_DISPLAY, kc as envCredentialsAreAssumedRole, ki as replayFailedOperations, kl as withSecretPhysicalIdsMaskedInState, ko as maskEventTextWithBoundBags, kr as revertedNestedRowIds, ks as WaitConditionSignalStore, ku as malformedOutputsRefusalMessage, l as crossStackOutputProvenanceSource, la as typesDeletedBefore, lc as IntrinsicFunctionResolver, li as mappingPairs, ll as withSharedDrainBudget, lo as recordedSgRuleId, lr as removeSignalReceiverNamed, ls as LAMBDA_PERMISSION_STATEMENT_KEYS, lt as recordedProtectionEvidence, lu as refuseMalformedResourceEntriesForOrphan, m as maskPassedSecretChanges, ma as removeProtectionTypes, md as readOnlyStateVersionOf, mf as isCrossRegionRedirect, mi as NOECHO_MAC_KEY_ALIAS, ml as findReplacedReadersOfRecreateTargets, mo as canonicalizeIpProtocolValue, mr as macWriteOnlyKeys, ms as efsPolicyMatchesDeclared, mt as readProtection, mu as refuseMalformedResourcePropertiesForDestroy, n as applyStackTagsToTemplate, na as isReplacementOrphan, nc as deleteLeftInPlace, nd as unwrittenCreateOnlyReplacement, nf as rewriteTemplateAssetReferences, ni as withMovedTo, nl as withoutVersionAttestation, nr as refactorMarkerMovesOf, nt as planReplaceResourceTargets, nu as malformedScrubResourceEntriesRefusalMessage, o as checkNestedSsmNames, oa as replacementNeverSwapped, oc as isWaitAbandonedError, od as PROPERTY_COVERAGE_BY_TYPE, oi as differingRemedy, ol as isNamelessDynamicReferenceError, oo as findNestedStackTypeChanges, or as updateRefactorMarker, ot as findServiceTokenRefusals, ou as refuseMalformedResourceEntriesForDestroy, p as crossStackTaintSeeds, pa as removeProtectionTypeList, pc as stackIdTailOf, pd as splitImportedOps, pf as assertAssetBucketRegion, pi as referencedLogicalIds, po as canonicalizeIpv4Cidr, pr as literalRowTags, ps as declaredPolicyDocument, pt as perType, pu as malformedResourcePropertiesWarning, q as pendingMovesRefusalMessage, qa as deleteSupersededEntry, qc as isStalePlaceholderArnAttribute, qd as buildAssetRedirectMap, ql as refuseMalformedOrphanRecordsForDestroy, qo as unsupportedFinalSnapshotError, qr as constructPathOf$1, qu as withheldAccountClause, r as isSecretBearingReferenceString, ra as planFailedOps, rc as deleteSkipReason, rf as AssetManifestLoader, ri as changedReferenceInDiff, rl as getAccountInfo, ro as snapshotSegmentSurvivors, rr as refactorMarkerRefusalMessage, rs as destroyStackRecordsView, rt as refuseStatefulReplaceResourceTargets, ru as refuseMalformedResourceAttributesForOrphan, s as nestedSsmNameDeferredNote, sa as IMPLICIT_DELETE_DEPENDENCIES, sd as providerReplacementOldDeleted, si as isPairableType, sl as carriesDynamicReference, sn as declaredTagsReadback, sr as deleteSignalReceiver, ss as withStackRecords, st as serviceTokenBlockingReason, su as refuseMalformedResourceEntriesForImport, t as DeployEngine, ta as isJournaledOrphan, tc as deleteIndeterminateGuards, ti as rollbackOrphanIds, tl as recordedReferenceRegions, to as withoutSuperseded, tr as readRefactorMarkerOnce, tt as inRunStackKey, tu as malformedResourceEntriesWarning, u as inheritedProvenanceForChildDiff, ua as attemptUsesCompletedCreate, uc as isSelectOutOfBounds, uf as AssetModeResolver, ui as parseMappingFile, ul as INTRINSIC_KEYS, uo as sgCidrKey, ur as settleStackTagChildRuns, ut as recordedProtectionNote, uu as repairMalformedResourceEntriesForReadOnly, v as mixedSecretTagKeys, va as nameScopeOf, vc as refuseUnreadableCdkCrossAccountRefs, vd as CrossPrefixReadError, vf as validateAssetBucketName, vi as noEchoMacVerdict, vl as isStatefulRecreateTargetForReplace, vo as green, vr as startForceQuitFlushes, vs as reReadUntilSettled, vu as repairMalformedResourcePropertiesForReadOnly, w as deleteRetiredCloudFormationStack, wa as inheritProducerRegions, wc as parseIamRoleArn, wd as stackInstanceIdOf, wf as hasOwnKey, wi as sgRuleOwnershipIdentity, wo as withAttemptedItemsMasked, wr as dropSettledNestedJournals, ws as CC_BROKEN_REASON, wu as refuseMalformedOrphansForDestroy, x as securityDiffWithPassedSecretWithheld, xa as retiredNameGenerationsLeaving, xc as assertSendableRoleArn, xd as crossPrefixDeniedWarning, xi as stripSiblingOwnedParentMembers, xo as noEchoAttributeNamesOf, xr as NESTED_PENDING_PARENT_REASON, xs as verbatimEchoDriftKeys, xt as readStreamPolicy, xu as malformedOrphansRefusalMessage, y as readsTainted, ya as retiredAfterRollback, yc as applyRoleArnIfSet, yd as CrossPrefixScanCache, yf as validateContainerRepoName, yi as noEchoValueMacsOf, yl as isStatefulRecreateTargetSync, yo as red, yr as pendingRequestCount, yu as UNREADABLE_ORPHANS_CONTAINER_ROW, z as healZonelessDbInstanceRecords, za as noEchoParameterValueSeed, zd as CFN_TEMPLATE_URL_LIMIT, zi as calculateResourceDrift, zl as maskedPropertyFingerprint, zo as extractDeploymentEventError, zr as loadJournaledOrphans, zs as isCustomResourceType$1, zu as malformedStateRefusalMessage } from "./deploy-engine-C12Ygjb-.js";
|
|
8
|
+
import { $ as createLegacyAssetParameterBinder, A as runDockerForeground, B as resolveCaptureObservedState, C as finchSecretArgvRefusal, D as isMalformedEnvKey, E as isDockerClientEnvKey, F as getDefaultStateBucketName, G as resolveUpdatePolicy, H as resolveStateBucketWithDefault, I as getLegacyStateBucketName, J as warnDeprecatedNoPrefixCliFlag, K as resolveUseCdkBootstrapAssets, L as loadCdkJson, M as abortInFlightMultipartUploads, N as Synthesizer, O as formatDockerLoginError, P as synthesisStatusMessage, Q as bindLegacyStackAssetParameters, R as resolveApp, S as dockerSpawnEnvWithSensitive, T as warnFinchArgvExposure, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as resolveStateBucketWithSource, X as AssemblyReader, Y as refuseFailedLookups, Z as StageLoadError, _ as describeDockerExecFailure, at as setChildProcessAwsEnv, b as redactedDockerCause, d as isLockInfoExpired, et as legacyPlanAssetCount, f as AssetPublisher, h as resolveDockerContextDirectory, i as mergeDeclaredEntries, it as processStackMessages, j as runDockerStreaming, k as getDockerCmd, l as DagBuilder, m as buildDockerImage, n as declaredStringList, nt as prepareLegacyStackAssets, p as WorkGraph, q as stateBucketExistenceConfirmed, r as inlinePoliciesAreDeclared, rt as CdkToolkitBucketMissingError, s as stringListIsDeclared, t as declaredInlinePolicies, tt as predictedAutoCreatedAssetMode, u as LockManager, v as describeDockerFailure, w as partitionSensitiveEnv, x as redactDockerArgvValues, y as redactedCause, z as resolveAutoAssetStorage } from "./settle-own-write-members-7riYzUx1.js";
|
|
9
|
+
import { $a as orphanRecordsPrintingBag, $c as withPrintingSecrets, $i as computeParameterTaint, $l as unreadableOrphanRecords, $n as displacedPhysicalIdShown, $r as sgSiblingDecidedById, $s as regionLessSecretName, $u as hasReadableOutputs, A as renderUnreplacedTarget, Ac as taintedNamesOf, Ai as isReplacementOrphan, Al as secretSegmentsOfState, An as refuseRefactorMarker, Ar as withMovedTo, As as isSelectOutOfBounds, Au as malformedLocalOutputsWarning, B as readProtection, Bc as SUPERSEDED_COPY_HINT, Bd as CFN_TEMPLATE_BODY_LIMIT, Bi as segmentCleanupOptions, Bl as declaresNoEcho, Bn as childStackTags, Bo as reReadUntilSettled, Br as proposeRenames, Bs as assertFlagRoleArn, Bu as malformedResourcesWarning, C as healSlashedSsmParameterNames, Ca as isSupersededResourceRecord, Cc as maskPassedSecretReasons, Cd as crossPrefixDeniedWarning, Cn as NestedCleanupQueue, Cr as formatChangeCounts, Cs as deleteSkipReason, Cu as malformedOrphansRefusalMessage, D as scanActiveConsumers, Da as supersededHolderOf, Dc as readsTainted, Dd as withStackInstanceIdWithheld, Df as hasPlainPrototype, Di as seedsDeleteFirstGuard, Dl as displayPhysicalId, Dn as readRefactorMarkerOnce, Do as revertStackRecordsView, Dr as hintSidesOf, Du as repairMalformedOrphansForReadOnly, E as slashedSsmNameHealPendingNote, Ea as supersededHeldByOtherTypeWarning, Ec as mixesDynamicReference, Ed as stackInstanceIdOf, Ef as hasOwnKey, Ei as planRollback, En as readRefactorMarker, Er as findRefactorHints, Es as isWaitAbandonedError, Eu as refuseMalformedOrphansForDestroy, F as recordedProtectionEvidence, Fc as getCloudFormationResourceTree, Fd as renderNestedTemplateTreeDefect, Ff as renderAssemblyPathEscape, Fi as IMPLICIT_DELETE_DEPENDENCIES, Fl as publicReferencesOf, Fn as removeSignalReceiverNamed, Fo as declaredPolicyDocument, Fr as isPairableType, Fu as refuseMalformedOutputsForDestroy, Ga as noEchoParameterNamesOf, Gc as NESTED_STACK_RESOURCE_TYPE$1, Gi as nameGenerationHighWaterOf, Gl as malformedOrphanRecordsWarning, Gn as formatResourceLine, Gr as noEchoMacParametersOf, Gs as sendableAssumeRoleCommand, Gu as refuseMalformedState, Ha as canonicalizeIpProtocolValue, Hc as confirmOrRefuse, Hd as findLargeInlineResources, Hi as removeProtectionTypes, Hl as deployRefusesOrphanRowsReason, Hn as macWriteOnlyKeys, Hr as NOECHO_MAC_KEY_ALIAS, Hs as explicitRoleArnOrThrow, Hu as refuseMalformedResourcesForDeploy, I as recordedProtectionNote, Ia as cfnIngressPortValue, Ic as tryGetCloudFormationResourceMap, Id as templateIdentity, If as resolveAssemblyPath, Ii as computeImplicitDeleteEdges, Il as maskedPropertyFingerprintsOf, In as childTemplateLoader, Io as efsPolicyMatchesDeclared, Ir as looselyEqual, Is as resolveDynamicReferences, Iu as repairMalformedOutputsForReadOnly, Ja as createReadOnlyAttributeHealerFactory, Jc as gray, Ji as retiredNameGenerationsAfter, Jl as refuseMalformedOrphanRecords, Jn as resolvePendingCloudControlRequests, Jo as ccBrokenReason, Jr as siblingOwnedRevertDesired, Js as callerEnvCredentials, Ju as accountArgs, Ka as withAttemptedItemsMasked, Kc as bold, Kd as decodeListingKey, Ki as nameScopeOf, Kl as malformedOrphanRowsKeptWarning, Kn as startForceQuitFlushes, Ko as CC_BROKEN_REASON, Kr as noEchoMacVerdict, Ks as AWS_CREDENTIAL_ENV_KEYS, Ku as repairMalformedResourcesForReadOnly, L as PROTECTION_PROPERTY_BY_TYPE, La as recordedSgRuleId, Lc as parseCfnTemplate, Li as typesDeletedBefore, Ll as parameterInputsFor, Ln as inRunStackKey, Lo as lambdaPermissionMatchesDeclared, Lr as mappingPairs, Ls as producerLookupOver, Lt as tagsMatchDeclared, Lu as STATE_REGION_DIVERGED, M as findServiceTokenRefusals, Ma as resolveReplacementOldType, Mc as deleteRetiredCloudFormationStack, Md as findNestedTemplateTreeDefect, Mf as describeFileReadFailure, Mi as recheckFailedPlan, Ml as getSettledWriteOnlyPropertyPaths, Mn as updateRefactorMarker, Mr as changedReferencePath, Ms as poisonRenderedSpellingsCollidingIn, Mu as malformedOutputsWarning, N as serviceTokenBlockingReason, Na as withPreviousPolicies, Nc as prepareCloudFormationStackRetirement, Nd as isAbsoluteAssetPath, Nf as displayAssemblyPath, Ni as recordUnderIdIsNotOwn, Nl as getTopLevelKeysHoldingUnreadableCreateOnly, Nn as deleteSignalReceiver, Nr as changedReferenceReason, Ns as stackIdTailOf, Nt as declaredTagsReadback, O as planReplaceResourceTargets, Oa as supersededResourcesOf, Oc as recordedValuesOf, Od as isSecretValuedAttribute, Of as nullPrototypeRecord, Oi as demoteSupersededOrphans, On as refactorMarkerMovesOf, Or as movedToHint, Os as DiffCalculator, Ou as malformedExportNamesWarning, P as diffSecurity, Pa as findNestedStackTypeChanges, Pc as findReplacedCfnResources, Pd as listNestedTemplateRows, Pi as replacementNeverSwapped, Pl as tryGetTopLevelWriteOnlyProperties, Pn as isReceiver, Po as declaredMemberDocument, Pr as differingRemedy, Pu as refuseMalformedOutputs, Q as streamPolicyMatchesDeclared, Qa as namingSecretsWithRecordedNoEcho, Qi as inheritProducerRegions, Ql as unpreviewableOrphanRecords, Qn as displacedOpClause, Qo as classifyHandleUrl, Qr as sgRuleOwnershipIdentity, Qs as producerRegionsFromState, Qu as displayLogicalId, R as isProtectionValueActive, Ra as sgCidrKey, Rc as parseCfnTemplateWithFormat, Rf as resolveBucketRegion, Ri as attemptUsesCompletedCreate, Rl as maskedInputProof, Rn as settleStackTagChildRuns, Ro as memberReadFailure, Rr as parseMappingFile, Rs as refuseUnreadableCdkCrossAccountRefs, Ru as refuseDivergentRecordRegionForDestroy, S as warnLegacySpelling, Sa as holdsSupersededResources, Sc as maskPassedSecretOutputs, Sd as applyCrossPrefixScan, Sf as BOOTSTRAP_MARKER_PREFIX, Si as ledgerForStack, Sl as renderStatefulReason, Sr as findDestructiveChanges, Ss as deleteLeftInPlace, Su as hasReadableOrphans, T as slashedSsmNameHealNote, Ta as supersededDependentsFirst, Tc as mixedSecretTagKeys, Td as isNotImplemented, Tf as defineOwnKey, Tn as recordRetainedForReadoption, To as destroyStackRecordsView, Tr as orphanedLogicalIds, Ts as getReadOnlyPropertyPaths, Tu as refuseMalformedOrphans, Ua as noEchoAttributeNamesOf, Uc as promptYesNo, Ud as uploadCfnTemplate, Ui as orphanNeedsIdentity, Ul as isReadableOrphanRecord, Un as readsOnlyNoEchoParameters, Uo as verbatimEchoDriftKeys, Ur as createNoEchoValueMacs, Us as isIamRoleArn, Uu as refuseMalformedResourcesForDestroy, Va as canonicalizeIpv4Cidr, Vc as cfnFailureText, Vd as CFN_TEMPLATE_URL_LIMIT, Vi as removeProtectionTypeList, Vl as maskedPropertyFingerprint, Vn as literalRowTags, Vr as referencedLogicalIds, Vs as assertSendableRoleArn, Vu as malformedStateRefusalMessage, Wa as noEchoComparisonForTemplate, Wc as serializePrompt, Wd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Wi as nameGenerationCarriedFrom, Wl as malformedOrphanRecordsRefusalMessage, Wr as noEchoMacBinding, Ws as parseIamRoleArn, Wu as refuseMalformedResourcesForExport, Xa as journaledOrphanPrintingBag, Xc as red, Xd as createAssetRedirectResolver, Xi as withNameGenerationReached, Xl as refuseMalformedOrphansForOrphan, Xn as planOrphanAdoption, Xo as wouldReturnToSdkProvider, Xr as undeclaredGrantSiblingMembers, Xs as classifyRecordedSecretRegion, Xu as STATE_RESOURCES_MALFORMED, Ya as completedReplayEntries, Yc as green, Yd as buildAssetRedirectMap, Yi as retiredNameGenerationsLeaving, Yl as refuseMalformedOrphanRecordsForDestroy, Yn as makeSiblingClaimReader, Yo as isCustomResource, Yr as stripSiblingOwnedParentMembers, Ys as envCredentialsAreAssumedRole, Yu as withheldAccountClause, Za as maskEventTextWithBoundBags, Zc as yellow, Zd as createLazyAssetModeContext, Zl as repairMalformedOrphanRecordsForReadOnly, Zn as NESTED_PENDING_PARENT_REASON, Zo as WaitConditionSignalStore, Zr as recordedRuleIdOf, Zs as classifyReplaySecretRegion, Zu as UNREADABLE_RESOURCES_MAP_ROW, _ as readRecordedConditionVerdicts, _a as bindingSkippedOutputs, _d as hasReasonlessBaselineRefusal, _f as getBootstrapMarkerKey, _i as updatePartialMessage, _l as refuseStatefulReplacedReaders, _o as buildFinalSnapshotIdentifier, _r as makeForeignHolderScan, _s as CloudControlProvider, _u as refuseMalformedResourcePropertiesForDrift, a as mergeNoChangeOutputs, aa as exportAliasCollisionScrubWarning, af as AssetManifestLoader, ai as DELETED_RESOURCE_REMEDY, al as getAccountInfo, ao as stateSecretNameNeedles, ar as revertedNestedRowIds, as as TemplateNoEchoReresolver, au as refuseMalformedResourceAttributesForOrphan, b as pendingMovesRefusalMessage, ba as maskingRetryLogger, bc as crossStackTaintSeeds, bd as CrossPrefixReadError, bf as validateAssetBucketName, bi as replacementCreateRoutesToCloudControl, bl as isStatefulRecreateTargetForReplace, br as crossStackReadsForPartialSave, bs as UNSPECIFIED_SKIP_REASON, bu as repairMalformedResourcePropertiesForReadOnly, c as nestedSsmNameRowNote, ca as secretSafeKeyDisplay, cc as coerceParameterTypedValue, cd as PROPERTY_COVERAGE_BY_TYPE, ci as earlyDeletedOld, cl as isNamelessDynamicReferenceError, co as ATOMIC_FINAL_SNAPSHOT_TYPES, cr as getCurrentNestedStackContext, cs as NO_LOCAL_CUSTOM_RESOURCES_FLAG, cu as refuseMalformedResourceEntriesForDestroy, d as makeCanonicalizePropertiesFn, da as exportNameSecretExposure, dc as AWS_NO_VALUE, di as settleUnsettledPrevious, dl as withSharedDrainBudget, do as ccRoutedInstanceTakesNoSnapshot, dr as dropFailedCommands, ds as customResourcesRunWithoutApp, du as refuseMalformedResourceEntriesForOrphan, ea as namesAnyDeclaredParameter, ec as withoutLapsedStaleShapeStamp, ed as hasReadableResources, el as keepHeldTokenProvenance, eo as secretNamePrintingBag, er as dropSettledNestedJournals, es as isSignalKey, eu as isReadableResourceEntry, f as readDbInstanceAvailabilityZone, fa as isWholeDynamicReferenceValue, fc as cfnRefValueFromPhysicalId, ff as AssetModeResolver, fi as withUnprovenUnsettled, fl as INTRINSIC_KEYS, fo as effectiveDeletionPolicy, fr as dropFailedHint, fs as localCustomResourceCommand, fu as repairMalformedResourceEntriesForReadOnly, g as parentSuppliedValues, ga as isExportAliasCollision, gc as lacksRecordedTableArn, gd as readOnlyStateVersionOf, gf as isCrossRegionRedirect, gi as undeclaredEmptyObservedKeys, gl as findReplacedReadersOfRecreateTargets, go as createPreDeleteFinalSnapshot, gr as sameJournaledOrphans, gu as refuseMalformedResourcePropertiesForDestroy, h as conditionInputsFrom, ha as collectPublishedOutputNames, hc as lacksRecordedRefArn, hd as splitImportedOps, hf as assertAssetBucketRegion, hi as equalModuloMask, ho as unsupportedFinalSnapshotError, hr as loadJournaledOrphans, hs as withCustomResourceStack, hu as malformedResourcePropertiesWarning, i as keptWholeReasonText, ia as displayTextOrWithheld, id as unwrittenCreateOnlyReplacement, if as rewriteTemplateAssetReferences, ii as replayRollback, il as withoutVersionAttestation, io as stackSecretNamesMasker, iu as malformedScrubResourceEntriesRefusalMessage, j as deferredServiceTokenWarning, ja as snapshotSegmentSurvivors, jc as templateMixesDynamicReference, ji as planFailedOps, jl as withSecretPhysicalIdsMaskedInState, jn as sameMove, jo as LAMBDA_PERMISSION_STATEMENT_KEYS, jr as changedReferenceInDiff, js as isAlwaysLiveAttribute, ju as malformedOutputsRefusalMessage, k as refuseStatefulReplaceResourceTargets, ka as withoutSuperseded, kc as securityDiffWithPassedSecretWithheld, kd as isSensitiveAttributeName, kf as ownValue, ki as isJournaledOrphan, kl as secretPhysicalIdSegment, kn as refactorMarkerRefusalMessage, ko as withStackRecords, kr as rollbackOrphanIds, ks as IntrinsicFunctionResolver, ku as malformedExportSourceWarning, l as crossStackOutputProvenanceSource, la as carriedExportAliasExposure, lc as isUnboundTemplateParameter, ld as providerReplacementOldDeleted, li as buildReadCurrentStateContext, ll as carriesDynamicReference, lo as PRE_DELETE_SNAPSHOT_TYPES, lr as withNestedStackContext, lu as refuseMalformedResourceEntriesForImport, m as conditionFingerprint, ma as collectDeclaredOutputNames, mc as refStateLookupFromResource, md as S3StateBackend, mf as buildDenyExternalAccessPolicy, mi as equalModuloMarkedMask, mo as refusesFinalSnapshot, mr as journaledOrphanLines, ms as setLocalCustomResourceRuntimeEnabled, mu as malformedDriftResourcePropertiesWarning, n as applyStackTagsToTemplate, na as resourcesNamingDeclaredParameter, nd as findHandledUnwrittenCreateOnly, nl as recordedOutputReferenceRegions, nr as nestedChildStackName$1, ns as applyCustomResourceResponseExpiration, nu as malformedLocalResourcesWarning, o as checkNestedSsmNames, oa as secretBearing, od as NO_CC_HANDLERS_REASON, of as getDockerImageBySourceHash, oi as PLANNED_EARLY_DELETE_CONSEQUENCE, ol as isImpossibleEmptyStoredAttribute, oo as storedSecretNameNeedles, or as withNestedRevertRun, os as readsNoEchoDeleteValues, ou as refuseMalformedResourceEntries, p as healZonelessDbInstanceRecords, pa as noEchoParameterValueSeed, pc as isStalePlaceholderArnAttribute, pd as TemplateParser, pf as ensureAssetStorage, pi as calculateResourceDrift, pl as LEGACY_HANDLE_HEAL_REASON, po as isFinalSnapshotError, pr as isHandledOrphan, pu as unreadableResourceEntries, q as readStreamPolicy, qa as noEchoExactEchoLeavesOf, qc as cyan, qi as retiredAfterRollback, ql as previewableOrphanRecords, qn as pendingRequestCount, qo as ProviderRegistry, qr as noEchoValueMacsOf, qs as applyCallerIdentityCredentials, qu as JSON_LISTING_HOLE_VALUE, r as isSecretBearingReferenceString, ra as WITHHELD_NAME_DISPLAY, ri as replayFailedOperations, rl as recordedReferenceRegions, ro as secretNamedRecordNeedles, rr as recordDisplacedSkips, rs as customResourceResponseExpirationWarning, ru as malformedResourceEntriesWarning, s as nestedSsmNameDeferredNote, sa as secretBearingStateKeyWarning, sd as hasNoCloudControlHandlers, si as earlyDeleteWhen, sl as carriesFetchableDynamicReference, so as extractDeploymentEventError, sr as collectNestedChildUnaddressed, ss as isCustomResourceType$1, su as refuseMalformedResourceEntriesForDeploy, t as DeployEngine, ta as reachableDivergentParameters, tc as isUnexposedRecordedIdentity, td as findActionableSdkUnwired, tf as loadPublishableAssetManifest, ti as siblingRecordedSgRuleIds, to as secretNamePrintingBags, ts as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, tu as malformedLocalResourceEntriesWarning, u as inheritedProvenanceForChildDiff, ua as exportNameNoEchoParameters, uc as parameterTypeMayLoseSecretIdentity, ui as recordAfterRollbackUpdate, ul as keepsSecretReferenceToken, uo as ccRoutedFinalSnapshotError, ur as deleteJournaledOrphans, us as customResourcesFailedWithoutApp, uu as refuseMalformedResourceEntriesForImportSave, v as hasPendingMovesOut, va as DEFAULT_RESOURCE_TIMEOUT_MS, vc as SECURITY_TABLE_WITHHELD, vd as hasUnverifiableParameterRefusal, vf as parseBootstrapMarker, vi as updatePartialReason, vl as shownType, vr as DeploymentEventsReader, vu as refuseMalformedResourcePropertiesForExport, w as slashedSsmNameHealAdoptedNote, wa as supersededAfterRollback, wc as mixedSecretRowKeys, wd as isAccessDenied, wi as withCreateTokenLedger, wn as keptForRetainedRecord, wr as formatDestructiveChange, wu as malformedOrphansWarning, x as refusePendingMovesOut, xa as deleteSupersededEntry, xc as maskPassedSecretChanges, xd as CrossPrefixScanCache, xf as validateContainerRepoName, xl as isStatefulRecreateTargetSync, xr as constructPathOf$1, xs as deleteIndeterminateGuards, xu as UNREADABLE_ORPHANS_CONTAINER_ROW, y as pendingMovesOutOf, ya as DEFAULT_RESOURCE_WARN_AFTER_MS, yc as calculatorMaskingPassedSecretLines, yd as rebuildClientForBucketRegion, yf as readBootstrapMarkerBody, yi as findUpdatePolicyReplacementRefusals, yl as MULTI_REGION_RECREATE_BLOCKED_TYPES, yr as DeploymentEventsStore, ys as RollbackInlinePolicyWriters, yu as refuseMalformedResourcePropertiesForOrphan, z as perType, za as sgProtocolKey, zc as stringifyCfnTemplate, zd as ssmResolvedValueType, zi as readsRegeneratingSecret, zo as policyDocumentMatchesDeclared, zr as propertiesChangedReason, zs as applyRoleArnIfSet, zu as malformedRenderedContainersWarning } from "./deploy-engine-DkJ03QT5.js";
|
|
10
10
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
|
|
11
|
-
import {
|
|
12
|
-
import { l as setResolvedResourceTimeouts } from "./ec2-termination-protection-
|
|
13
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
14
|
-
import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-
|
|
15
|
-
import {
|
|
16
|
-
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-
|
|
17
|
-
import { u as differingIdentityWarning } from "./identity-read-denied-
|
|
18
|
-
import { n as isRedactedRecordedValue } from "./redacted-delete-address-
|
|
19
|
-
import { a as withResourceDeadline } from "./resource-deadline-
|
|
20
|
-
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-
|
|
11
|
+
import { D as describeJsonParseFailure, T as timePhase, a as getCreateOnlyPropertyPaths, b as PhaseClock, c as templateResourceTypes, f as describeTypeWithThrottleRetry, j as utf8ByteLength, k as parseFailureDebugDetail, s as prefetchCreateOnlyPropertyPaths, v as withRetry, w as renderPhaseTimings } from "./secret-reference-immutable-DSSUW_aD.js";
|
|
12
|
+
import { l as setResolvedResourceTimeouts } from "./ec2-termination-protection-CmMB_KbJ.js";
|
|
13
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-D0nm7Szq.js";
|
|
14
|
+
import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-DCNzpczG.js";
|
|
15
|
+
import { B as recordedNoEchoValuesOf, D as maskReadbackAtCoordinates, E as maskAtCoordinates, H as valueAtCoordinate, M as noEchoLeavesOf, N as noEchoOutputsComparison, O as maskWholeValue, R as readsNoEchoSource, S as canonicalCoordinates, W as liveMatchesUnresolvedTokenFrame, b as withOffTemplateEchoesMasked, j as noEchoCoordinatesOf, k as maskedLeafCoordinatesOf, v as maskOffTemplateEchoes, w as isMarkedCoordinate, y as observedMaskedLeavesOf } from "./replacement-rules-BRQEsmYu.js";
|
|
16
|
+
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-Dlh_1tru.js";
|
|
17
|
+
import { u as differingIdentityWarning } from "./identity-read-denied-CwSWOLvl.js";
|
|
18
|
+
import { n as isRedactedRecordedValue } from "./redacted-delete-address-Cq-qhxug.js";
|
|
19
|
+
import { a as withResourceDeadline } from "./resource-deadline-B6k_qtRx.js";
|
|
20
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-DH03qkk2.js";
|
|
21
21
|
import { t as cdkdCacheHome } from "./cache-home-BVYKj3de.js";
|
|
22
22
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
23
23
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -1561,7 +1561,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
|
|
|
1561
1561
|
// src/provisioning/register-providers.ts
|
|
1562
1562
|
let providerClasses;
|
|
1563
1563
|
function loadProviderClasses() {
|
|
1564
|
-
providerClasses ??= import("./provider-classes-
|
|
1564
|
+
providerClasses ??= import("./provider-classes-Bn4iaev8.js");
|
|
1565
1565
|
return providerClasses;
|
|
1566
1566
|
}
|
|
1567
1567
|
function registerAllProviders(registry, classes) {
|
|
@@ -2948,7 +2948,7 @@ async function probeAndRevalidateStateful(input) {
|
|
|
2948
2948
|
|
|
2949
2949
|
// src/cli/commands/recreate-downstream-consumers.ts
|
|
2950
2950
|
function producerNameIsUnresolved(sourceStack) {
|
|
2951
|
-
return sourceStack
|
|
2951
|
+
return mentionsDynamicReference(sourceStack) || mentionsMask(sourceStack);
|
|
2952
2952
|
}
|
|
2953
2953
|
async function findDownstreamConsumers(input) {
|
|
2954
2954
|
const logger = getLogger().child("recreate-downstream");
|
|
@@ -3954,6 +3954,9 @@ var CrossStackPreview = class {
|
|
|
3954
3954
|
markNestedOutputsTainted(topLevelStackNames) {
|
|
3955
3955
|
this.nestedOutputsTaintedOutside = topLevelStackNames;
|
|
3956
3956
|
}
|
|
3957
|
+
holdsAnyTaint() {
|
|
3958
|
+
return this.anyTainted() || this.taintedExports.size > 0;
|
|
3959
|
+
}
|
|
3957
3960
|
anyTainted() {
|
|
3958
3961
|
return this.everyExportTainted || this.taintedOutputs.size > 0;
|
|
3959
3962
|
}
|
|
@@ -3966,7 +3969,7 @@ var CrossStackPreview = class {
|
|
|
3966
3969
|
this.taintedOutputs.add(outputKey);
|
|
3967
3970
|
if (exportName === null) this.everyExportTainted = true;
|
|
3968
3971
|
else if (exportName !== void 0) this.taintedExports.add(exportName);
|
|
3969
|
-
for (const value of values) if (isScalar$1(value) && value !== "" && value
|
|
3972
|
+
for (const value of values) if (isScalar$1(value) && value !== "" && !isMaskLeaf(value)) this.taintedTexts.add(String(value));
|
|
3970
3973
|
return added;
|
|
3971
3974
|
}
|
|
3972
3975
|
exportValue(region, name) {
|
|
@@ -3993,7 +3996,7 @@ function previewProducerValues(input) {
|
|
|
3993
3996
|
for (const change of input.changes.values()) if (change.changeType === "CREATE" || change.changeType === "UPDATE" && (change.resourceType === "AWS::CloudFormation::Stack" || (change.propertyChanges ?? []).some((p) => p.requiresReplacement))) renewed.add(change.logicalId);
|
|
3994
3997
|
const producerStack = input.stackName;
|
|
3995
3998
|
const stored = input.storedOutputs ?? {};
|
|
3996
|
-
const verdict = (desired) => isScalar$1(desired) && desired
|
|
3999
|
+
const verdict = (desired) => isScalar$1(desired) && !isMaskLeaf(desired) && !mentionsDynamicReference(String(desired)) && !input.holdsSecret(String(desired)) ? {
|
|
3997
4000
|
kind: "known",
|
|
3998
4001
|
value: desired,
|
|
3999
4002
|
producerStack
|
|
@@ -4017,7 +4020,7 @@ function previewProducerValues(input) {
|
|
|
4017
4020
|
};
|
|
4018
4021
|
else if (Object.hasOwn(input.desiredOutputs, outputName)) {
|
|
4019
4022
|
const desired = input.desiredOutputs[outputName];
|
|
4020
|
-
if (stored[outputName]
|
|
4023
|
+
if (isMaskLeaf(stored[outputName]) || desired === void 0) continue;
|
|
4021
4024
|
if (JSON.stringify(desired) !== JSON.stringify(stored[outputName])) previewed = verdict(desired);
|
|
4022
4025
|
else if (exportName !== void 0 && !Object.hasOwn(stored, exportName)) {
|
|
4023
4026
|
exports.set(exportName, verdict(desired));
|
|
@@ -4597,7 +4600,7 @@ async function resolveTemplateOutputs(template, resolveFn, conditions, storedOut
|
|
|
4597
4600
|
let resolutionFailed = false;
|
|
4598
4601
|
let passResolvesSecret = false;
|
|
4599
4602
|
const spellsToken = (raw) => {
|
|
4600
|
-
if (typeof raw === "string") return raw
|
|
4603
|
+
if (typeof raw === "string") return mentionsDynamicReference(raw);
|
|
4601
4604
|
if (Array.isArray(raw)) return raw.some(spellsToken);
|
|
4602
4605
|
if (raw !== null && typeof raw === "object") return Object.values(raw).some(spellsToken);
|
|
4603
4606
|
return false;
|
|
@@ -4930,7 +4933,7 @@ function makeTrustClassifier(options) {
|
|
|
4930
4933
|
if (dot > 0) return resourceLeaf(name.slice(0, dot), name.slice(dot + 1));
|
|
4931
4934
|
return resourceLeaf(name, void 0);
|
|
4932
4935
|
};
|
|
4933
|
-
const literalTrusted = (text) => !text
|
|
4936
|
+
const literalTrusted = (text) => !mentionsDynamicReferenceTo(text, "ssm");
|
|
4934
4937
|
const subTrusted = (template, locals) => {
|
|
4935
4938
|
if (typeof template !== "string" || !literalTrusted(template)) return false;
|
|
4936
4939
|
for (const match of template.matchAll(/\$\{([^}]*)\}/g)) {
|
|
@@ -5732,6 +5735,7 @@ async function computeStackDiff(loadedState, template, region, stackName, stateB
|
|
|
5732
5735
|
...Object.keys(classified.bound).length > 0 && { parameters: classified.bound },
|
|
5733
5736
|
...conditions && Object.keys(conditions).length > 0 && { conditions },
|
|
5734
5737
|
skipDynamicReferences: true,
|
|
5738
|
+
...crossStackPreview && { crossStackTaint: crossStackPreview },
|
|
5735
5739
|
staleAttributeHeal: { phase: "probe" }
|
|
5736
5740
|
}),
|
|
5737
5741
|
secrets
|
|
@@ -5918,6 +5922,58 @@ async function computeStackDiff(loadedState, template, region, stackName, stateB
|
|
|
5918
5922
|
};
|
|
5919
5923
|
}
|
|
5920
5924
|
|
|
5925
|
+
// src/cli/commands/diff-recursive/deleted-subtree-taint.ts
|
|
5926
|
+
function deletedRowRecordTainted(record, preview) {
|
|
5927
|
+
const parameters = record.properties?.["Parameters"];
|
|
5928
|
+
if (parameters === null || typeof parameters !== "object" || Array.isArray(parameters)) return false;
|
|
5929
|
+
const tainted = preview?.taintedValues() ?? /* @__PURE__ */ new Set();
|
|
5930
|
+
return Object.values(parameters).some((value) => {
|
|
5931
|
+
if (typeof value !== "string") return false;
|
|
5932
|
+
if (mixesDynamicReference(value)) return true;
|
|
5933
|
+
for (const text of tainted) {
|
|
5934
|
+
if (text === "" || isMaskLeaf(text)) continue;
|
|
5935
|
+
if (value === text || text.length >= 4 && value.includes(text)) return true;
|
|
5936
|
+
}
|
|
5937
|
+
return false;
|
|
5938
|
+
});
|
|
5939
|
+
}
|
|
5940
|
+
function maskLeaves(value) {
|
|
5941
|
+
if (typeof value === "string") return "***";
|
|
5942
|
+
if (Array.isArray(value)) return value.map(maskLeaves);
|
|
5943
|
+
if (value !== null && typeof value === "object") {
|
|
5944
|
+
const out = Object.create(null);
|
|
5945
|
+
for (const [key, leaf] of Object.entries(value)) out[key] = maskLeaves(leaf);
|
|
5946
|
+
return out;
|
|
5947
|
+
}
|
|
5948
|
+
return value;
|
|
5949
|
+
}
|
|
5950
|
+
function maskDeletedSubtree(node) {
|
|
5951
|
+
for (const [logicalId, change] of node.changes) node.changes.set(logicalId, {
|
|
5952
|
+
...change,
|
|
5953
|
+
...change.currentProperties && { currentProperties: maskLeaves(change.currentProperties) },
|
|
5954
|
+
...change.desiredProperties && { desiredProperties: maskLeaves(change.desiredProperties) },
|
|
5955
|
+
...change.propertyChanges && { propertyChanges: change.propertyChanges.map((pc) => ({
|
|
5956
|
+
...pc,
|
|
5957
|
+
oldValue: maskLeaves(pc.oldValue),
|
|
5958
|
+
newValue: maskLeaves(pc.newValue)
|
|
5959
|
+
})) }
|
|
5960
|
+
});
|
|
5961
|
+
node.outputChanges = node.outputChanges.map((oc) => ({
|
|
5962
|
+
...oc,
|
|
5963
|
+
..."oldValue" in oc && { oldValue: maskLeaves(oc.oldValue) },
|
|
5964
|
+
..."newValue" in oc && { newValue: maskLeaves(oc.newValue) }
|
|
5965
|
+
}));
|
|
5966
|
+
const securityDiff = node.securityDiff;
|
|
5967
|
+
if (securityDiff !== void 0) node.securityDiff = async () => {
|
|
5968
|
+
const shown = await securityDiff();
|
|
5969
|
+
return shown.rendered === "" ? shown : {
|
|
5970
|
+
...shown,
|
|
5971
|
+
rendered: SECURITY_TABLE_WITHHELD
|
|
5972
|
+
};
|
|
5973
|
+
};
|
|
5974
|
+
for (const child of node.children) maskDeletedSubtree(child);
|
|
5975
|
+
}
|
|
5976
|
+
|
|
5921
5977
|
// src/cli/commands/diff-recursive/load-state.ts
|
|
5922
5978
|
async function loadStateOrEmpty(stackName, region, stateBackend, refusalRecovery) {
|
|
5923
5979
|
const refactorMarker = readRefactorMarkerOnce(stateBackend);
|
|
@@ -6208,7 +6264,9 @@ async function buildDiffTree(args) {
|
|
|
6208
6264
|
for (const [logicalId, resource] of Object.entries(state.resources ?? {})) {
|
|
6209
6265
|
if (resource.resourceType !== "AWS::CloudFormation::Stack") continue;
|
|
6210
6266
|
if (templateChildIds.has(logicalId)) continue;
|
|
6211
|
-
|
|
6267
|
+
const deleted = await buildDeletedSubtree(`${stackName}~${logicalId}`, region, stateBackend, diffCalculator, secretBearingAbove, printingSecrets, refusalRecovery, diffPrintingSecrets([nodeDerivedNames, nodeStateNames]));
|
|
6268
|
+
if (deletedRowRecordTainted(resource, crossStackPreview)) maskDeletedSubtree(deleted);
|
|
6269
|
+
node.children.push(deleted);
|
|
6212
6270
|
}
|
|
6213
6271
|
return node;
|
|
6214
6272
|
}
|
|
@@ -7181,7 +7239,7 @@ function planExportIndexRepair(entries, stackName, producerRegion, outputs) {
|
|
|
7181
7239
|
continue;
|
|
7182
7240
|
}
|
|
7183
7241
|
const stateValue = outputs[exportName];
|
|
7184
|
-
if (!carriesDynamicReference(stateValue) && !
|
|
7242
|
+
if (!carriesDynamicReference(stateValue) && !holdsMaskLeaf(stateValue)) continue;
|
|
7185
7243
|
if (JSON.stringify(entry.value) === JSON.stringify(stateValue)) continue;
|
|
7186
7244
|
findings.push({
|
|
7187
7245
|
kind: "converge",
|
|
@@ -7551,20 +7609,19 @@ function regionAmbiguousScrubSecretError(origin, stackName, secretName, foreignP
|
|
|
7551
7609
|
function unresolvableForeignScrubSecretError(origin, stackName, secretName, region, cause, secrets, recorded = false) {
|
|
7552
7610
|
return new ScrubRefusalError(`Scrub of ${displayStackName(stackName)} could not resolve the secret reference ${maskedIdent(secretName, secrets)} in ${origin} in ${recorded ? "the region its state record names" : "the region its ARN names"} (${displayIdent(region)}): ${maskSecretsInText(describeAwsFailure(cause).detail, secrets)}. Refusing rather than resolving it in the stack's own region, which would look for a different secret's value and report the stack clean over state that still holds the plaintext.`, "SCRUB_CROSS_REGION_SECRET_UNRESOLVED");
|
|
7553
7611
|
}
|
|
7554
|
-
const
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
`${DYNAMIC_REFERENCE_OPENING}ssm-secure:`
|
|
7612
|
+
const SECRET_REFERENCE_SERVICES = [
|
|
7613
|
+
"secretsmanager",
|
|
7614
|
+
"ssm",
|
|
7615
|
+
"ssm-secure"
|
|
7559
7616
|
];
|
|
7560
7617
|
const SUB_PLACEHOLDER_OPENING = "${";
|
|
7561
7618
|
function countSecretReferenceOpenings(leaf) {
|
|
7562
7619
|
let count = 0;
|
|
7563
|
-
for (const
|
|
7620
|
+
for (const service of SECRET_REFERENCE_SERVICES) count += countDynamicReferenceOpenings(leaf, service);
|
|
7564
7621
|
return count;
|
|
7565
7622
|
}
|
|
7566
7623
|
function isSecretReferenceToken(token) {
|
|
7567
|
-
return
|
|
7624
|
+
return SECRET_REFERENCE_SERVICES.some((service) => opensDynamicReferenceTo(token, service));
|
|
7568
7625
|
}
|
|
7569
7626
|
function isAssembledSecretReference(leaf, secretTokens) {
|
|
7570
7627
|
return countSecretReferenceOpenings(leaf) !== secretTokens.length || secretTokens.some((token) => token.includes(SUB_PLACEHOLDER_OPENING));
|
|
@@ -7617,7 +7674,7 @@ async function resolveForeignRegionTokens(leaf, stackName, ctx) {
|
|
|
7617
7674
|
async function pinCrossRegionSecrets(bag, stackName, ctx) {
|
|
7618
7675
|
const walk = async (v) => {
|
|
7619
7676
|
if (typeof v === "string") {
|
|
7620
|
-
if (!v
|
|
7677
|
+
if (!mentionsDynamicReference(v)) return v;
|
|
7621
7678
|
return await resolveForeignRegionTokens(v, stackName, ctx);
|
|
7622
7679
|
}
|
|
7623
7680
|
if (Array.isArray(v)) {
|
|
@@ -7815,7 +7872,7 @@ function producerPublishesSecretExpression(templates, exportOwners, producerStac
|
|
|
7815
7872
|
} else continue;
|
|
7816
7873
|
for (const rawSubject of subjects) {
|
|
7817
7874
|
const subject = selectTakenConditionalBranches(rawSubject);
|
|
7818
|
-
if (
|
|
7875
|
+
if (valueMentionsDynamicReference(subject ?? null)) {
|
|
7819
7876
|
if (widened) return {
|
|
7820
7877
|
kind: "widened",
|
|
7821
7878
|
via: frame.via
|
|
@@ -8356,6 +8413,86 @@ async function scrubStackResolvePass({ stack, region, logger, newBag, perResourc
|
|
|
8356
8413
|
};
|
|
8357
8414
|
}
|
|
8358
8415
|
|
|
8416
|
+
// src/cli/commands/scrub/twin-references.ts
|
|
8417
|
+
function withObservedTwinsPositioned(walked, stored, positionedProperties, secrets) {
|
|
8418
|
+
if (positionedProperties === void 0) return walked;
|
|
8419
|
+
if (stored.observedProperties === void 0 || walked.observedProperties === void 0) return walked;
|
|
8420
|
+
const observed = positionTwinReferences(stored.observedProperties, walked.observedProperties, positionedProperties, secrets);
|
|
8421
|
+
return observed === walked.observedProperties ? walked : {
|
|
8422
|
+
...walked,
|
|
8423
|
+
observedProperties: observed
|
|
8424
|
+
};
|
|
8425
|
+
}
|
|
8426
|
+
function positionTwinReferences(stored, positioned, template, secrets) {
|
|
8427
|
+
if (secrets.size === 0) return positioned;
|
|
8428
|
+
const plaintexts = [...secrets.keys()].filter((p) => p !== "");
|
|
8429
|
+
const walk = (s, p, t) => {
|
|
8430
|
+
if (typeof t === "string") {
|
|
8431
|
+
if (typeof s !== "string" || typeof p !== "string" || p === t) return p;
|
|
8432
|
+
return provenTemplateText(s, t, secrets, plaintexts) ? t : p;
|
|
8433
|
+
}
|
|
8434
|
+
if (Array.isArray(t)) {
|
|
8435
|
+
if (!Array.isArray(s) || !Array.isArray(p) || s.length !== t.length || p.length !== t.length) return p;
|
|
8436
|
+
let changed = false;
|
|
8437
|
+
const out = p.map((item, i) => {
|
|
8438
|
+
if (!corroborates(s[i], t[i])) return item;
|
|
8439
|
+
const next = walk(s[i], item, t[i]);
|
|
8440
|
+
if (next !== item) changed = true;
|
|
8441
|
+
return next;
|
|
8442
|
+
});
|
|
8443
|
+
return changed ? out : p;
|
|
8444
|
+
}
|
|
8445
|
+
if (!isPlainRecord$4(t) || !isPlainRecord$4(s) || !isPlainRecord$4(p)) return p;
|
|
8446
|
+
let out;
|
|
8447
|
+
for (const key of Object.keys(t)) {
|
|
8448
|
+
if (!Object.hasOwn(s, key) || !Object.hasOwn(p, key)) continue;
|
|
8449
|
+
const next = walk(s[key], p[key], t[key]);
|
|
8450
|
+
if (next !== p[key]) {
|
|
8451
|
+
out ??= copyOwnKeys(p);
|
|
8452
|
+
defineOwnKey(out, key, next);
|
|
8453
|
+
}
|
|
8454
|
+
}
|
|
8455
|
+
return out ?? p;
|
|
8456
|
+
};
|
|
8457
|
+
return walk(stored, positioned, template);
|
|
8458
|
+
}
|
|
8459
|
+
function corroborates(s, t) {
|
|
8460
|
+
if (typeof t === "string") return typeof s === "string" && (dynamicReferenceSpans(t).length > 0 || s === t);
|
|
8461
|
+
if (Array.isArray(t)) return Array.isArray(s) && s.length === t.length && t.every((item, i) => corroborates(s[i], item));
|
|
8462
|
+
if (isPlainRecord$4(t)) {
|
|
8463
|
+
if (!isPlainRecord$4(s)) return false;
|
|
8464
|
+
const keys = Object.keys(t);
|
|
8465
|
+
return keys.length === Object.keys(s).length && keys.every((key) => Object.hasOwn(s, key) && corroborates(s[key], t[key]));
|
|
8466
|
+
}
|
|
8467
|
+
return Object.is(s, t);
|
|
8468
|
+
}
|
|
8469
|
+
function provenTemplateText(value, text, secrets, plaintexts) {
|
|
8470
|
+
const spans = dynamicReferenceSpans(text);
|
|
8471
|
+
let resolved = "";
|
|
8472
|
+
let cursor = 0;
|
|
8473
|
+
for (const { start, end } of spans) {
|
|
8474
|
+
const literal = text.slice(cursor, start);
|
|
8475
|
+
if (plaintexts.some((p) => literal.includes(p))) return false;
|
|
8476
|
+
const plaintext = resolvedPlaintextOf(secrets, text.slice(start, end));
|
|
8477
|
+
if (plaintext === void 0 || !secrets.has(plaintext)) return false;
|
|
8478
|
+
resolved += literal + plaintext;
|
|
8479
|
+
cursor = end;
|
|
8480
|
+
}
|
|
8481
|
+
const tail = text.slice(cursor);
|
|
8482
|
+
if (plaintexts.some((p) => tail.includes(p))) return false;
|
|
8483
|
+
return resolved + tail === value;
|
|
8484
|
+
}
|
|
8485
|
+
function copyOwnKeys(bag) {
|
|
8486
|
+
const copy = Object.getPrototypeOf(bag) === null ? nullPrototypeRecord() : {};
|
|
8487
|
+
for (const key of Object.keys(bag)) defineOwnKey(copy, key, bag[key]);
|
|
8488
|
+
return copy;
|
|
8489
|
+
}
|
|
8490
|
+
function isPlainRecord$4(value) {
|
|
8491
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
8492
|
+
const proto = Object.getPrototypeOf(value);
|
|
8493
|
+
return proto === Object.prototype || proto === null;
|
|
8494
|
+
}
|
|
8495
|
+
|
|
8359
8496
|
// src/cli/commands/scrub/cross-stack-findings.ts
|
|
8360
8497
|
function literalParts(value, tokens) {
|
|
8361
8498
|
const parts = [];
|
|
@@ -8453,7 +8590,7 @@ function planScrubNoEcho(state, template, templateProps, conditions, passedParam
|
|
|
8453
8590
|
attributeIsNoEcho: (id, attribute) => declared.get(id)?.has(attribute) === true,
|
|
8454
8591
|
...Object.keys(conditions).length > 0 && { conditions }
|
|
8455
8592
|
};
|
|
8456
|
-
const persisted = (value) =>
|
|
8593
|
+
const persisted = (value) => holdsMaskLeaf(value) || typeof value === "string" && isSingleDynamicReferenceToken(value);
|
|
8457
8594
|
const templateResources = template.Resources ?? {};
|
|
8458
8595
|
const eligible = Object.entries(resources).filter(([logicalId, record]) => templateProps.has(logicalId) && Object.hasOwn(templateResources, logicalId) && templateResources[logicalId]?.Type === record.resourceType);
|
|
8459
8596
|
const positionFrom = (params, names) => {
|
|
@@ -8743,18 +8880,18 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
|
|
|
8743
8880
|
const ownSecrets = secrets ?? /* @__PURE__ */ new Map();
|
|
8744
8881
|
const positioned = templateProps ? {
|
|
8745
8882
|
...record,
|
|
8746
|
-
properties: redactForState(record.properties, {
|
|
8883
|
+
properties: positionTwinReferences(record.properties, redactForState(record.properties, {
|
|
8747
8884
|
provenance: "template-sourced",
|
|
8748
8885
|
secrets: ownSecrets,
|
|
8749
8886
|
source: templateProps,
|
|
8750
8887
|
generation: "unproven"
|
|
8751
|
-
})
|
|
8888
|
+
}), templateProps, ownSecrets)
|
|
8752
8889
|
} : record;
|
|
8753
|
-
const walked = secrets || templateProps ? scrubResourceRecord(positioned, ownSecrets, void 0, "state-cross-generation", {
|
|
8890
|
+
const walked = secrets || templateProps ? withObservedTwinsPositioned(scrubResourceRecord(positioned, ownSecrets, void 0, "state-cross-generation", {
|
|
8754
8891
|
properties: "unproven",
|
|
8755
8892
|
observed: "unproven",
|
|
8756
8893
|
propertiesPositioned: templateProps !== void 0
|
|
8757
|
-
}) : record;
|
|
8894
|
+
}), record, templateProps && positioned.properties, ownSecrets) : record;
|
|
8758
8895
|
const scrubbed = templateProps && record.observedProperties && walked.observedProperties ? {
|
|
8759
8896
|
...walked,
|
|
8760
8897
|
observedProperties: keepTemplateLiteralLeaves(walked.observedProperties, record.observedProperties, templateProps, ownSecrets)
|
|
@@ -8765,7 +8902,10 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
|
|
|
8765
8902
|
properties: "unproven",
|
|
8766
8903
|
observed: "unproven"
|
|
8767
8904
|
});
|
|
8768
|
-
const rewritten = keepHeldTokenProvenance(applyScrubNoEcho(migrated, record, plan)
|
|
8905
|
+
const rewritten = keepHeldTokenProvenance(withOffTemplateEchoesMasked(applyScrubNoEcho(migrated, record, plan), {
|
|
8906
|
+
properties: record.properties,
|
|
8907
|
+
...record.observedProperties !== void 0 && { readback: record.observedProperties }
|
|
8908
|
+
}, noEchoPublicTokens));
|
|
8769
8909
|
const written = JSON.stringify(rewritten) === JSON.stringify(record) ? rewritten : withoutLapsedStaleShapeStamp(rewritten);
|
|
8770
8910
|
if (JSON.stringify(written) !== JSON.stringify(record)) recordsChanged++;
|
|
8771
8911
|
newResources[logicalId] = written;
|
|
@@ -8909,7 +9049,7 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
|
|
|
8909
9049
|
for (const key of Object.keys(after)) {
|
|
8910
9050
|
const was = before[key];
|
|
8911
9051
|
const now = after[key];
|
|
8912
|
-
if (typeof was === "string" && typeof now === "string" && now
|
|
9052
|
+
if (typeof was === "string" && typeof now === "string" && mentionsDynamicReference(now) && !mentionsDynamicReference(was)) outputRewrites.set(now, was);
|
|
8913
9053
|
}
|
|
8914
9054
|
}
|
|
8915
9055
|
if (outputsChanged) recordsChanged++;
|
|
@@ -9720,7 +9860,7 @@ function notComparedOutcomes(report) {
|
|
|
9720
9860
|
function outcomeExitSignal(outcome) {
|
|
9721
9861
|
return matchOutcome(outcome, {
|
|
9722
9862
|
drifted: () => "drifted",
|
|
9723
|
-
notCompared: (n) => n.notComparedCause === "unresolvedToken" || n.notComparedCause === "noEchoParameter" ? "none" : "incomplete",
|
|
9863
|
+
notCompared: (n) => n.notComparedCause === "unresolvedToken" || n.notComparedCause === "noEchoParameter" || n.notComparedCause === "maskedEcho" ? "none" : "incomplete",
|
|
9724
9864
|
clean: () => "none",
|
|
9725
9865
|
unsupported: () => "incomplete",
|
|
9726
9866
|
skipped: () => "none",
|
|
@@ -9768,6 +9908,10 @@ const UNCOMPARED_REASONS = {
|
|
|
9768
9908
|
kind: "unknown",
|
|
9769
9909
|
phrase: "only PARTIALLY compared: their state holds a NoEcho parameter value only as the redaction mask, which no re-run can clear"
|
|
9770
9910
|
},
|
|
9911
|
+
maskedEcho: {
|
|
9912
|
+
kind: "unknown",
|
|
9913
|
+
phrase: "only PARTIALLY compared: AWS echoes a secret into a property the template does not set, which their state holds only as the redaction mask, so no re-run can clear it"
|
|
9914
|
+
},
|
|
9771
9915
|
skipped: {
|
|
9772
9916
|
kind: "byDesign",
|
|
9773
9917
|
phrase: "not compared AT ALL: cdkd does not drift-check the type"
|
|
@@ -9778,6 +9922,7 @@ const ANY_OF_IT_COMPARED = {
|
|
|
9778
9922
|
unresolvedToken: true,
|
|
9779
9923
|
uncertifiedBaseline: true,
|
|
9780
9924
|
noEchoParameter: true,
|
|
9925
|
+
maskedEcho: true,
|
|
9781
9926
|
readFailed: false,
|
|
9782
9927
|
readAborted: false,
|
|
9783
9928
|
baselineRefused: false,
|
|
@@ -10841,7 +10986,11 @@ const OWN_WRITE_MEMBERS = new Map(Object.entries({
|
|
|
10841
10986
|
}
|
|
10842
10987
|
}],
|
|
10843
10988
|
"AWS::Events::EventBus": [documentHeal("Policy")],
|
|
10844
|
-
"AWS::EC2::SecurityGroup": [sgRulesHeal("SecurityGroupIngress", "ingress"), sgRulesHeal("SecurityGroupEgress", "egress")]
|
|
10989
|
+
"AWS::EC2::SecurityGroup": [sgRulesHeal("SecurityGroupIngress", "ingress"), sgRulesHeal("SecurityGroupEgress", "egress")],
|
|
10990
|
+
"AWS::AppSync::GraphQLSchema": [{
|
|
10991
|
+
key: "Definition",
|
|
10992
|
+
liveIsDeclared: (properties, aws) => typeof properties["Definition"] === "string" && properties["Definition"] !== "" && aws["Definition"] === properties["Definition"]
|
|
10993
|
+
}]
|
|
10845
10994
|
}));
|
|
10846
10995
|
function staleTablePolicyBaseline(observed, properties, aws) {
|
|
10847
10996
|
const recorded = readStreamPolicy(observed);
|
|
@@ -10934,7 +11083,7 @@ function declaredTrueProperties(properties) {
|
|
|
10934
11083
|
|
|
10935
11084
|
// src/cli/commands/drift/secret-resolution.ts
|
|
10936
11085
|
function containsDynamicReference$1(value) {
|
|
10937
|
-
if (typeof value === "string") return value
|
|
11086
|
+
if (typeof value === "string") return mentionsDynamicReference(value);
|
|
10938
11087
|
if (Array.isArray(value)) return value.some(containsDynamicReference$1);
|
|
10939
11088
|
if (value !== null && typeof value === "object") return Object.values(value).some(containsDynamicReference$1);
|
|
10940
11089
|
return false;
|
|
@@ -10951,7 +11100,7 @@ function survivingDynamicReferences(value) {
|
|
|
10951
11100
|
}
|
|
10952
11101
|
function collectDynamicReferencePaths(value, into, path = "") {
|
|
10953
11102
|
if (typeof value === "string") {
|
|
10954
|
-
if (value
|
|
11103
|
+
if (mentionsDynamicReference(value)) into.add(path);
|
|
10955
11104
|
return;
|
|
10956
11105
|
}
|
|
10957
11106
|
if (Array.isArray(value)) {
|
|
@@ -10962,7 +11111,7 @@ function collectDynamicReferencePaths(value, into, path = "") {
|
|
|
10962
11111
|
}
|
|
10963
11112
|
function collectSecretMaskPaths(value, into, path = "") {
|
|
10964
11113
|
if (typeof value === "string") {
|
|
10965
|
-
if (value
|
|
11114
|
+
if (isMaskLeaf(value)) into.add(path);
|
|
10966
11115
|
return;
|
|
10967
11116
|
}
|
|
10968
11117
|
if (Array.isArray(value)) {
|
|
@@ -11091,7 +11240,7 @@ async function resolveStateSecretExpressions(props, resolvers, secrets, options)
|
|
|
11091
11240
|
};
|
|
11092
11241
|
const walk = async (v, path) => {
|
|
11093
11242
|
if (typeof v === "string") {
|
|
11094
|
-
if (!v
|
|
11243
|
+
if (!mentionsDynamicReference(v)) return v;
|
|
11095
11244
|
refuseUnprovenDriftSecret(v, path, logicalId, consumerRegion, producerRegions, recordedRegions);
|
|
11096
11245
|
const resolved = await resolveDriftLeafByRegion(v, path, logicalId, consumerRegion, producerRegions.regions, resolvers, ctx, recordedRegions);
|
|
11097
11246
|
const survivors = survivingDynamicReferences(resolved).filter((t) => v.includes(t));
|
|
@@ -11135,7 +11284,12 @@ function refusedBaselineRemedy(record) {
|
|
|
11135
11284
|
|
|
11136
11285
|
// src/cli/commands/drift/redaction.ts
|
|
11137
11286
|
function noEchoPathsClause(record) {
|
|
11138
|
-
|
|
11287
|
+
return pathsClause(record === void 0 ? void 0 : noEchoLeavesOf(record));
|
|
11288
|
+
}
|
|
11289
|
+
function maskedEchoPathsClause(record) {
|
|
11290
|
+
return pathsClause(record === void 0 ? void 0 : observedMaskedLeavesOf(record));
|
|
11291
|
+
}
|
|
11292
|
+
function pathsClause(marked) {
|
|
11139
11293
|
if (marked === void 0 || marked.length === 0) return "";
|
|
11140
11294
|
return ` at ${marked.map((coordinate) => coordinate.map((segment, i) => typeof segment === "number" ? `[${segment}]` : i === 0 ? segment : `.${segment}`).join("")).map((path) => displaySafe(path)).join(", ")}`;
|
|
11141
11295
|
}
|
|
@@ -11153,38 +11307,62 @@ function revertPathSegments(path) {
|
|
|
11153
11307
|
return segments;
|
|
11154
11308
|
}
|
|
11155
11309
|
function partitionNoEchoParameterChanges(changes, record, baseline) {
|
|
11156
|
-
const
|
|
11310
|
+
const { kept, paths } = partitionMarkedMaskChanges(changes, noEchoLeavesOf(record), record.properties ?? {}, baseline);
|
|
11311
|
+
return {
|
|
11312
|
+
kept,
|
|
11313
|
+
noEchoParameterPaths: paths
|
|
11314
|
+
};
|
|
11315
|
+
}
|
|
11316
|
+
function partitionMaskedEchoChanges(changes, record, baseline) {
|
|
11317
|
+
const { kept, paths } = partitionMarkedMaskChanges(changes, observedMaskedLeavesOf(record), record.properties ?? {}, baseline, true);
|
|
11318
|
+
return {
|
|
11319
|
+
kept,
|
|
11320
|
+
maskedEchoPaths: paths
|
|
11321
|
+
};
|
|
11322
|
+
}
|
|
11323
|
+
function segmentsOf(path, marked) {
|
|
11324
|
+
for (const leaf of marked) {
|
|
11325
|
+
let spelled = "";
|
|
11326
|
+
for (let k = 0; k < leaf.length; k++) {
|
|
11327
|
+
const segment = leaf[k];
|
|
11328
|
+
if (typeof segment === "number") break;
|
|
11329
|
+
spelled = k === 0 ? segment : `${spelled}.${segment}`;
|
|
11330
|
+
if (spelled === path) return leaf.slice(0, k + 1);
|
|
11331
|
+
}
|
|
11332
|
+
}
|
|
11333
|
+
}
|
|
11334
|
+
function partitionMarkedMaskChanges(changes, marked, properties, baseline, bySegments = false) {
|
|
11157
11335
|
if (marked === void 0 || marked.length === 0) return {
|
|
11158
11336
|
kept: changes,
|
|
11159
|
-
|
|
11337
|
+
paths: []
|
|
11160
11338
|
};
|
|
11161
|
-
const properties = record.properties ?? {};
|
|
11162
11339
|
const isMarked = (coordinate) => isMarkedCoordinate(coordinate, marked) || marked.some((leaf) => leaf.length > coordinate.length && coordinate.every((segment, i) => String(segment) === String(leaf[i])));
|
|
11163
11340
|
const isWithinMarked = (coordinate) => marked.some((leaf) => leaf.length <= coordinate.length && leaf.every((segment, i) => String(segment) === String(coordinate[i])));
|
|
11164
11341
|
const kept = [];
|
|
11165
|
-
const
|
|
11342
|
+
const paths = [];
|
|
11166
11343
|
for (const change of changes) {
|
|
11167
|
-
const
|
|
11168
|
-
|
|
11344
|
+
const segmented = bySegments ? segmentsOf(change.path, marked) : void 0;
|
|
11345
|
+
const coordinate = segmented ?? change.path.split(".");
|
|
11346
|
+
if ((segmented !== void 0 || !bySegments && marked.some((leaf) => {
|
|
11169
11347
|
const n = Math.min(leaf.length, coordinate.length);
|
|
11170
11348
|
for (let i = 0; i < n; i++) if (leaf[i] !== coordinate[i]) return false;
|
|
11171
11349
|
return true;
|
|
11172
|
-
}) &&
|
|
11173
|
-
|
|
11350
|
+
})) && holdsMaskLeaf(change.stateValue) && (bySegments || !pathCrossesDottedKey(properties, change.path) && !pathCrossesDottedKey(baseline, change.path)) && equalModuloMarkedMask(change.stateValue, change.awsValue, "***", coordinate, isMarked, isWithinMarked)) {
|
|
11351
|
+
paths.push(change.path);
|
|
11174
11352
|
continue;
|
|
11175
11353
|
}
|
|
11176
11354
|
kept.push(change);
|
|
11177
11355
|
}
|
|
11178
11356
|
return {
|
|
11179
11357
|
kept,
|
|
11180
|
-
|
|
11358
|
+
paths
|
|
11181
11359
|
};
|
|
11182
11360
|
}
|
|
11183
11361
|
function partitionUncertifiedBaselineChanges(changes, properties, baseline) {
|
|
11184
11362
|
const kept = [];
|
|
11185
11363
|
const uncertifiedPaths = [];
|
|
11186
11364
|
for (const change of changes) {
|
|
11187
|
-
if (
|
|
11365
|
+
if (holdsMaskLeaf(change.stateValue) && isUncertifiedBaselineMaskPosition(properties, change.path) && !pathCrossesDottedKey(baseline, change.path) && equalModuloMask(change.stateValue, change.awsValue, "***")) {
|
|
11188
11366
|
uncertifiedPaths.push(change.path);
|
|
11189
11367
|
continue;
|
|
11190
11368
|
}
|
|
@@ -11212,13 +11390,13 @@ function redactDriftValue(value, secrets, secretBearing) {
|
|
|
11212
11390
|
}
|
|
11213
11391
|
function acceptRefusalReason(change, maskedPaths) {
|
|
11214
11392
|
if (!maskedPaths.has(change.path)) return void 0;
|
|
11215
|
-
if (change.path
|
|
11393
|
+
if (mentionsMask(change.path)) return "its property NAME came back carrying a secret value, so cdkd cannot name the key to write — and no redaction pass can clear it either, since they all walk values and never keys. ROTATE the secret; that is the only remedy";
|
|
11216
11394
|
if (change.awsValue === void 0) return "AWS no longer reports it, and accepting an absence DELETES the key — which at or above a secret dynamic reference would erase the reference out of cdkd state. Use --revert to push it back, or re-deploy";
|
|
11217
|
-
if (change.stateValue
|
|
11395
|
+
if (isMaskLeaf(change.stateValue)) return "the value that belongs at this position is unknown to cdkd — the baseline holds only the redaction mask, so accepting would write AWS-held plaintext over a deliberate redaction. Where cdkd wrote that mask because it could not pair the readback with a secret reference, a deploy that CHANGES this resource re-captures the baseline, and a deploy that changes nothing replaces the mask only when the resource still reads back as its baseline records, the resource's own secret reference resolves to the value AWS holds there, and nothing in the resource's recorded properties is masked. Where the mask stands for a NoEcho custom-resource value or for the Fn::Base64 encoding of a secret value, cdkd never records the value, so no deploy replaces the mask";
|
|
11218
11396
|
return "it carries a secret dynamic reference and the value AWS currently holds is not the one the reference resolves to";
|
|
11219
11397
|
}
|
|
11220
11398
|
function redactDriftChanges(changes, secrets, secretPaths, maskPaths) {
|
|
11221
|
-
if (!hasMaskableValues(secrets) && secretPaths.size === 0 && maskPaths.size === 0 && !changes.some((change) =>
|
|
11399
|
+
if (!hasMaskableValues(secrets) && secretPaths.size === 0 && maskPaths.size === 0 && !changes.some((change) => holdsMaskLeaf(change.stateValue))) return {
|
|
11222
11400
|
changes,
|
|
11223
11401
|
maskedPaths: /* @__PURE__ */ new Set()
|
|
11224
11402
|
};
|
|
@@ -11228,12 +11406,12 @@ function redactDriftChanges(changes, secrets, secretPaths, maskPaths) {
|
|
|
11228
11406
|
const maskedPath = maskSecretsInText(change.path, secrets);
|
|
11229
11407
|
const positionIsSecret = isSecretBearingPath(change.path, secretPaths) || isSecretBearingPath(change.path, maskPaths);
|
|
11230
11408
|
const nameCarriesSecret = maskedPath !== change.path;
|
|
11231
|
-
const stateValueIsMask =
|
|
11409
|
+
const stateValueIsMask = holdsMaskLeaf(change.stateValue);
|
|
11232
11410
|
const secretBearing = positionIsSecret || nameCarriesSecret || stateValueIsMask;
|
|
11233
11411
|
if (secretPaths.has(change.path) && change.awsValue === void 0) continue;
|
|
11234
11412
|
const stateValue = redactDriftValue(change.stateValue, secrets, secretBearing);
|
|
11235
11413
|
const awsValue = redactDriftValue(change.awsValue, secrets, secretBearing);
|
|
11236
|
-
if (maskedPath !== change.path || secretBearing && awsValue
|
|
11414
|
+
if (maskedPath !== change.path || secretBearing && isMaskLeaf(awsValue) || secretBearing && change.awsValue === void 0) maskedPaths.add(maskedPath);
|
|
11237
11415
|
redacted.push({
|
|
11238
11416
|
path: maskedPath,
|
|
11239
11417
|
stateValue,
|
|
@@ -11245,11 +11423,30 @@ function redactDriftChanges(changes, secrets, secretPaths, maskPaths) {
|
|
|
11245
11423
|
maskedPaths
|
|
11246
11424
|
};
|
|
11247
11425
|
}
|
|
11248
|
-
function maskMarkedNoEchoBaseline(baseline, record, observed) {
|
|
11426
|
+
function maskMarkedNoEchoBaseline(baseline, record, observed, live) {
|
|
11249
11427
|
const marked = noEchoLeavesOf(record) ?? [];
|
|
11250
11428
|
if (observed) {
|
|
11251
11429
|
const coordinates = [...marked, ...maskedLeafCoordinatesOf(record.properties ?? {})];
|
|
11252
|
-
|
|
11430
|
+
const positioned = coordinates.length === 0 ? baseline : maskReadbackAtCoordinates(baseline, record.properties ?? {}, coordinates);
|
|
11431
|
+
const named = observedMaskedLeavesOf(record) ?? [];
|
|
11432
|
+
const learnedLeaves = live === void 0 || named.length === 0 ? [] : maskOffTemplateEchoes({
|
|
11433
|
+
bag: positioned,
|
|
11434
|
+
readback: live,
|
|
11435
|
+
properties: record.properties ?? {},
|
|
11436
|
+
noEchoLeaves: record.noEchoLeaves,
|
|
11437
|
+
physicalId: record.physicalId
|
|
11438
|
+
}).leaves;
|
|
11439
|
+
const valueMasked = maskAtCoordinates(positioned, learnedLeaves);
|
|
11440
|
+
const byIndex = maskAtCoordinates(valueMasked, named);
|
|
11441
|
+
const remaining = named.map((coordinate) => {
|
|
11442
|
+
const list = coordinate.findIndex((segment) => typeof segment === "number");
|
|
11443
|
+
if (list < 0) return coordinate;
|
|
11444
|
+
const path = coordinate.slice(0, list);
|
|
11445
|
+
const recorded = valueAtCoordinate(record.observedProperties, path);
|
|
11446
|
+
if (JSON.stringify(valueAtCoordinate(byIndex, path)) === JSON.stringify(recorded)) return coordinate;
|
|
11447
|
+
return learnedLeaves.some((leaf) => leaf.length > path.length && path.every((segment, i) => segment === leaf[i])) ? void 0 : path;
|
|
11448
|
+
}).filter((c) => c !== void 0);
|
|
11449
|
+
return maskAtCoordinates(valueMasked, remaining);
|
|
11253
11450
|
}
|
|
11254
11451
|
if (marked.length === 0) return baseline;
|
|
11255
11452
|
const recorded = record.properties ?? {};
|
|
@@ -11280,6 +11477,7 @@ function notComparedReason(cause, record) {
|
|
|
11280
11477
|
unreadableMap: "the record's whole 'resources' map is not a JSON object, so no resource in it could be read or compared (repair or re-import the record)",
|
|
11281
11478
|
baselineRefused: "a `cdkd import` run refused to capture its observed baseline, so the only baseline available is the recorded properties that refusal already found untrustworthy" + (refusedRemedy === void 0 ? " (deploy a change to this resource to restore one)" : `. ${refusedRemedy}`),
|
|
11282
11479
|
noEchoParameter: `its state holds a NoEcho parameter's value only as the redaction mask${noEchoPathsClause(record)}, so that value was not compared — every other property was (permanent by design; a deploy compares it with AWS)`,
|
|
11480
|
+
maskedEcho: `AWS echoes a secret into a property the template does not set${maskedEchoPathsClause(record)}, which its state holds only as the redaction mask, so that value was not compared — every other property was (permanent by design)`,
|
|
11283
11481
|
uncertifiedBaseline: "its recorded baseline holds the redaction mask at a position cdkd could not pair with the secret reference there, so that position was not compared — every other property was (deploy a change to this resource to re-capture the baseline)"
|
|
11284
11482
|
}[cause];
|
|
11285
11483
|
}
|
|
@@ -12034,15 +12232,15 @@ async function runAccept(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
12034
12232
|
logger.warn(` ! ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): '${displayDriftPath(outcome, change.path)}' was NOT recorded — after redaction cdkd state holds a different value at that property. Usually an unresolved '{{resolve:...}}' reference sits there and wins over an accepted value (change the template if that reference is wrong); a readback value cdkd cannot compare is never called recorded.`);
|
|
12035
12233
|
}
|
|
12036
12234
|
if (recordedChanges > 0) acceptedResourceCount++;
|
|
12037
|
-
const written = maskMarkedNoEchoBaseline(redactedBaseline, existing, true);
|
|
12235
|
+
const written = maskMarkedNoEchoBaseline(redactedBaseline, existing, true, outcome.awsProperties);
|
|
12038
12236
|
const settled = await settleUnsettled(existing, outcome.logicalId, () => regionScope(report.region).registry.getProviderFor({
|
|
12039
12237
|
resourceType: outcome.resourceType,
|
|
12040
12238
|
provisionedBy: existing.provisionedBy
|
|
12041
12239
|
}).provider);
|
|
12042
|
-
resources[outcome.logicalId] = {
|
|
12240
|
+
resources[outcome.logicalId] = withOffTemplateEchoesMasked({
|
|
12043
12241
|
...settled,
|
|
12044
12242
|
observedProperties: written
|
|
12045
|
-
};
|
|
12243
|
+
}, { readback: outcome.awsProperties }, /* @__PURE__ */ new Set([report.region, report.stackName]));
|
|
12046
12244
|
}
|
|
12047
12245
|
const { skippedOutputs: _droppedByAccept, ...carriedState } = report.state;
|
|
12048
12246
|
const newState = {
|
|
@@ -12064,7 +12262,7 @@ async function runAccept(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
12064
12262
|
}
|
|
12065
12263
|
|
|
12066
12264
|
// src/cli/commands/drift/revert-live-values.ts
|
|
12067
|
-
function pairedLiveItems(send, live, wildcardLeaf = isMaskLeaf, carriesWildcard =
|
|
12265
|
+
function pairedLiveItems(send, live, wildcardLeaf = isMaskLeaf, carriesWildcard = holdsMaskLeaf, acceptForcedSingleton = false) {
|
|
12068
12266
|
if (!Array.isArray(live)) return void 0;
|
|
12069
12267
|
if (acceptForcedSingleton && send.length === 1 && live.length === 1) return live;
|
|
12070
12268
|
const key = identityKeyFor(send, live);
|
|
@@ -12088,12 +12286,9 @@ function pairedLiveItems(send, live, wildcardLeaf = isMaskLeaf, carriesWildcard
|
|
|
12088
12286
|
if (wildcardSlots > 1 || compared === 0) return void 0;
|
|
12089
12287
|
return live;
|
|
12090
12288
|
}
|
|
12091
|
-
function isMaskLeaf(leaf) {
|
|
12092
|
-
return leaf === "***";
|
|
12093
|
-
}
|
|
12094
12289
|
function isTokenOrMaskLeaf(leaf) {
|
|
12095
|
-
if (leaf
|
|
12096
|
-
return typeof leaf === "string" && leaf
|
|
12290
|
+
if (isMaskLeaf(leaf)) return true;
|
|
12291
|
+
return typeof leaf === "string" && mentionsDynamicReference(leaf) && isSingleDynamicReferenceToken(leaf);
|
|
12097
12292
|
}
|
|
12098
12293
|
function carriesTokenOrMask(value) {
|
|
12099
12294
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -12147,7 +12342,7 @@ function overlayLiveAtUncertifiedPaths(send, uncertifiedPaths, awsProperties, ba
|
|
|
12147
12342
|
}
|
|
12148
12343
|
const needles = [];
|
|
12149
12344
|
const collect = (b, l) => {
|
|
12150
|
-
if (b
|
|
12345
|
+
if (isMaskLeaf(b)) {
|
|
12151
12346
|
if (typeof l === "string") needles.push(l);
|
|
12152
12347
|
else recordMaskOnlyLiveSubtree(l, secrets, spelledKeys);
|
|
12153
12348
|
return;
|
|
@@ -12214,14 +12409,14 @@ function withValueAtPath(bag, path, value) {
|
|
|
12214
12409
|
return out;
|
|
12215
12410
|
}
|
|
12216
12411
|
function preserveLiveValuesAtMaskedLeaves(send, awsProperties, secrets, corroborationSource = send, spelledKeys) {
|
|
12217
|
-
if (!
|
|
12412
|
+
if (!holdsMaskLeaf(send)) return {
|
|
12218
12413
|
properties: send,
|
|
12219
12414
|
unpreservablePaths: []
|
|
12220
12415
|
};
|
|
12221
12416
|
const unpreservablePaths = [];
|
|
12222
12417
|
let changed = false;
|
|
12223
12418
|
const walk = (value, corr, live, path) => {
|
|
12224
|
-
if (value
|
|
12419
|
+
if (isMaskLeaf(value)) {
|
|
12225
12420
|
if (live === void 0) {
|
|
12226
12421
|
unpreservablePaths.push(path);
|
|
12227
12422
|
return value;
|
|
@@ -12238,7 +12433,7 @@ function preserveLiveValuesAtMaskedLeaves(send, awsProperties, secrets, corrobor
|
|
|
12238
12433
|
}
|
|
12239
12434
|
if (value !== null && typeof value === "object") {
|
|
12240
12435
|
if (!hasPlainPrototype(value)) {
|
|
12241
|
-
if (
|
|
12436
|
+
if (holdsMaskLeaf(value)) unpreservablePaths.push(path);
|
|
12242
12437
|
return value;
|
|
12243
12438
|
}
|
|
12244
12439
|
const liveObject = isPlainRecord$2(live) ? live : void 0;
|
|
@@ -12380,7 +12575,7 @@ function mergeUntemplatedValue(awsValue, desiredValue) {
|
|
|
12380
12575
|
}
|
|
12381
12576
|
function preserveLiveValuesAtUnresolvedTokens(send, awsProperties, unresolvedTokens, secrets) {
|
|
12382
12577
|
const walk = (value, live) => {
|
|
12383
|
-
if (typeof value === "string" && value
|
|
12578
|
+
if (typeof value === "string" && mentionsDynamicReference(value)) {
|
|
12384
12579
|
if (!isSingleDynamicReferenceToken(value)) return typeof live === "string" && liveMatchesUnresolvedTokenFrame(value, live, unresolvedTokens, secrets) ? live : value;
|
|
12385
12580
|
if (live === void 0) return value;
|
|
12386
12581
|
return typeof live === "string" ? live : value;
|
|
@@ -12490,8 +12685,8 @@ function keepRecordedAttributesOverMask(redacted, plaintext, recorded, noEchoDec
|
|
|
12490
12685
|
const out = { ...redacted };
|
|
12491
12686
|
for (const key of Object.keys(redacted)) {
|
|
12492
12687
|
if (noEchoDeclared?.has(key)) continue;
|
|
12493
|
-
if (!hasOwnKey(recorded, key) || !
|
|
12494
|
-
if (
|
|
12688
|
+
if (!hasOwnKey(recorded, key) || !holdsMaskLeaf(redacted[key])) continue;
|
|
12689
|
+
if (holdsMaskLeaf(recorded[key])) continue;
|
|
12495
12690
|
if (sameRecordedJson(plaintext[key], recorded[key])) defineOwnKey(out, key, recorded[key]);
|
|
12496
12691
|
}
|
|
12497
12692
|
return out;
|
|
@@ -12503,7 +12698,10 @@ function sameRecordedJson(candidate, recorded) {
|
|
|
12503
12698
|
// src/cli/commands/drift/compare.ts
|
|
12504
12699
|
async function compareDriftReadback(args) {
|
|
12505
12700
|
const { region, resolvePrincipalUniqueId, outcomes, logger, secretResolvers, producerRegions, stackSecretNames, resource, logicalId, provider, secrets, printing, aws, readContext, readOnlyPathsLookup, writeOnlyPathsLookup, notComparedPolicyArns } = args;
|
|
12506
|
-
const ignorePaths = provider.getDriftUnknownPaths ? provider.getDriftUnknownPaths(resource.resourceType, resource.properties ?? {}
|
|
12701
|
+
const ignorePaths = provider.getDriftUnknownPaths ? provider.getDriftUnknownPaths(resource.resourceType, resource.properties ?? {}, {
|
|
12702
|
+
noEchoLeaves: resource.noEchoLeaves,
|
|
12703
|
+
maskedPropertyFingerprints: resource.maskedPropertyFingerprints
|
|
12704
|
+
}) : [];
|
|
12507
12705
|
const unorderedPaths = provider.getDriftUnorderedPaths ? provider.getDriftUnorderedPaths(resource.resourceType) : [];
|
|
12508
12706
|
const useObserved = resource.observedProperties !== void 0;
|
|
12509
12707
|
const baseline = useObserved ? resource.observedProperties : resource.properties ?? {};
|
|
@@ -12582,10 +12780,14 @@ async function compareDriftReadback(args) {
|
|
|
12582
12780
|
resourceType: resource.resourceType
|
|
12583
12781
|
});
|
|
12584
12782
|
const noEchoPartitioned = partitionNoEchoParameterChanges(changes, resource, baseline);
|
|
12585
|
-
const
|
|
12783
|
+
const echoPartitioned = useObserved ? partitionMaskedEchoChanges(noEchoPartitioned.kept, resource, baseline) : {
|
|
12784
|
+
kept: noEchoPartitioned.kept,
|
|
12785
|
+
maskedEchoPaths: []
|
|
12786
|
+
};
|
|
12787
|
+
const partitioned = partitionUncertifiedBaselineChanges(echoPartitioned.kept, resource.properties ?? {}, baseline);
|
|
12586
12788
|
if (provider.getDriftSecretPathAliases) for (const alias of provider.getDriftSecretPathAliases(resource.resourceType, resource.properties ?? {}, /* @__PURE__ */ new Set([...secretResolutionFailed ? seededSecretPaths : secretPaths, ...maskSecretPaths]))) maskSecretPaths.add(alias);
|
|
12587
12789
|
const reported = redactDriftChanges(partitioned.kept, secrets, secretResolutionFailed ? seededSecretPaths : secretPaths, maskSecretPaths);
|
|
12588
|
-
const notComparedCause = secretResolutionFailed ? "refused" : partitioned.uncertifiedPaths.length > 0 ? "uncertifiedBaseline" : unresolvedTokens.size > 0 ? "unresolvedToken" : noEchoPartitioned.noEchoParameterPaths.length > 0 ? "noEchoParameter" : void 0;
|
|
12790
|
+
const notComparedCause = secretResolutionFailed ? "refused" : partitioned.uncertifiedPaths.length > 0 ? "uncertifiedBaseline" : unresolvedTokens.size > 0 ? "unresolvedToken" : noEchoPartitioned.noEchoParameterPaths.length > 0 ? "noEchoParameter" : echoPartitioned.maskedEchoPaths.length > 0 ? "maskedEcho" : void 0;
|
|
12589
12791
|
if (reported.changes.length === 0) {
|
|
12590
12792
|
if (notComparedCause !== void 0) outcomes.push({
|
|
12591
12793
|
kind: "notCompared",
|
|
@@ -12608,6 +12810,7 @@ async function compareDriftReadback(args) {
|
|
|
12608
12810
|
printingNeedles: unionOfSecretBags([printing, stackSecretNames]),
|
|
12609
12811
|
uncertifiedPaths: partitioned.uncertifiedPaths,
|
|
12610
12812
|
noEchoParameterPaths: noEchoPartitioned.noEchoParameterPaths,
|
|
12813
|
+
maskedEchoPaths: echoPartitioned.maskedEchoPaths,
|
|
12611
12814
|
secretsIncomplete: secretResolutionFailed || unresolvedTokens.size > 0,
|
|
12612
12815
|
notComparedCause
|
|
12613
12816
|
});
|
|
@@ -12990,7 +13193,7 @@ function revertWriteOnlyResendNames(resourceType, properties, writeOnlyNames) {
|
|
|
12990
13193
|
if (!hasOwnKey(properties, name) || unreadableCreateOnly.has(name)) continue;
|
|
12991
13194
|
const value = properties[name];
|
|
12992
13195
|
if (value === void 0 || value === null) continue;
|
|
12993
|
-
if (
|
|
13196
|
+
if (holdsMaskLeaf(value) || carriesIntrinsicObject(value)) continue;
|
|
12994
13197
|
names.push(name);
|
|
12995
13198
|
}
|
|
12996
13199
|
return names;
|
|
@@ -13025,7 +13228,7 @@ function withDeclaredWriteOnlyValues(send, resolvedProperties, names, paths) {
|
|
|
13025
13228
|
wholesale.push(name);
|
|
13026
13229
|
}
|
|
13027
13230
|
}
|
|
13028
|
-
if (carriesDynamicReference(next) ||
|
|
13231
|
+
if (carriesDynamicReference(next) || holdsMaskLeaf(next)) {
|
|
13029
13232
|
skipped.push(name);
|
|
13030
13233
|
const at = wholesale.indexOf(name);
|
|
13031
13234
|
if (at !== -1) wholesale.splice(at, 1);
|
|
@@ -13900,7 +14103,7 @@ async function revertDriftedOutcome(args) {
|
|
|
13900
14103
|
logger.error(` ✗ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): ` + (isDriftSecretRefusal(err) ? `refused to re-resolve a dynamic reference this resource's state records — ` : `could not re-resolve the dynamic reference(s) this resource's state records — `) + `${maskSecretsInText(describeAwsFailure(err).detail, secrets)}`);
|
|
13901
14104
|
return;
|
|
13902
14105
|
}
|
|
13903
|
-
const unrevertablePaths = outcome.changes.map((c) => c.path).filter((path) => (path.split(".", 1)[0] ?? "")
|
|
14106
|
+
const unrevertablePaths = outcome.changes.map((c) => c.path).filter((path) => mentionsMask(path.split(".", 1)[0] ?? ""));
|
|
13904
14107
|
if (stateResource.observedProperties === void 0) {
|
|
13905
14108
|
const driftedTopLevelKeys = /* @__PURE__ */ new Set();
|
|
13906
14109
|
for (const change of outcome.changes) {
|
|
@@ -14092,6 +14295,8 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
14092
14295
|
settledCount++;
|
|
14093
14296
|
}
|
|
14094
14297
|
let recordedCount = 0;
|
|
14298
|
+
const liveByLogicalId = /* @__PURE__ */ new Map();
|
|
14299
|
+
for (const o of report.outcomes) if (o.kind === "drifted") liveByLogicalId.set(o.logicalId, o.awsProperties);
|
|
14095
14300
|
for (const [logicalId, delta] of narrowedByLogicalId) {
|
|
14096
14301
|
const existing = resources[logicalId];
|
|
14097
14302
|
if (!existing) continue;
|
|
@@ -14112,7 +14317,8 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
14112
14317
|
}
|
|
14113
14318
|
if (!changed) continue;
|
|
14114
14319
|
recordedCount++;
|
|
14115
|
-
const
|
|
14320
|
+
const live = liveByLogicalId.get(logicalId);
|
|
14321
|
+
const writtenBaseline = maskMarkedNoEchoBaseline(newBaseline, existing, hasObserved, live);
|
|
14116
14322
|
resources[logicalId] = hasObserved ? {
|
|
14117
14323
|
...existing,
|
|
14118
14324
|
observedProperties: writtenBaseline
|
|
@@ -14120,6 +14326,7 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
14120
14326
|
...existing,
|
|
14121
14327
|
properties: writtenBaseline
|
|
14122
14328
|
};
|
|
14329
|
+
if (hasObserved) resources[logicalId] = withOffTemplateEchoesMasked(resources[logicalId], live === void 0 ? {} : { readback: live }, /* @__PURE__ */ new Set([report.region, report.stackName]));
|
|
14123
14330
|
}
|
|
14124
14331
|
let reRecordedCount = 0;
|
|
14125
14332
|
for (const [logicalId, identity] of reRecordedByLogicalId) {
|
|
@@ -18202,7 +18409,13 @@ async function resolveIdentifierValue(entry, ctx, deps) {
|
|
|
18202
18409
|
return entry.resolve(ctx);
|
|
18203
18410
|
} catch (stateOnlyError) {
|
|
18204
18411
|
if (entry.backfill && deps) return await entry.backfill(ctx, deps);
|
|
18205
|
-
if (
|
|
18412
|
+
if (recordedSecrecyOf({
|
|
18413
|
+
attributes: ctx.attributes,
|
|
18414
|
+
noEchoAttributeNames: ctx.noEchoAttributeNames
|
|
18415
|
+
}, {
|
|
18416
|
+
field: "attributes",
|
|
18417
|
+
key: entry.field
|
|
18418
|
+
}) !== "clear") throw new RepairableRefusal(maskedIdentifierAttributeReason(entry.field, ctx.logicalId), importRepairCommand(ctx.logicalId));
|
|
18206
18419
|
throw stateOnlyError;
|
|
18207
18420
|
}
|
|
18208
18421
|
}
|
|
@@ -18599,7 +18812,7 @@ const COMPOSITE_ID_SPLITTERS = {
|
|
|
18599
18812
|
};
|
|
18600
18813
|
|
|
18601
18814
|
// src/cli/commands/export/type-schema.ts
|
|
18602
|
-
async function resolveResourceIdentifier(resourceType, logicalId, physicalId, properties, attributes, entry, backfillDeps) {
|
|
18815
|
+
async function resolveResourceIdentifier(resourceType, logicalId, physicalId, properties, attributes, entry, backfillDeps, noEchoAttributeNames) {
|
|
18603
18816
|
const registered = Object.hasOwn(COMPOSITE_PHYSICAL_ID_IDENTIFIERS, resourceType) ? COMPOSITE_PHYSICAL_ID_IDENTIFIERS[resourceType] : void 0;
|
|
18604
18817
|
const compositeIdentifier = registered && entry.fields.length === 1 && registered.physicalIdIsIdentifierFor?.includes(entry.fields[0]) && !physicalId.trim().startsWith("arn:") ? void 0 : registered;
|
|
18605
18818
|
if (compositeIdentifier) {
|
|
@@ -18607,7 +18820,8 @@ async function resolveResourceIdentifier(resourceType, logicalId, physicalId, pr
|
|
|
18607
18820
|
const value = await resolveIdentifierValue(compositeIdentifier, {
|
|
18608
18821
|
logicalId,
|
|
18609
18822
|
physicalId,
|
|
18610
|
-
attributes
|
|
18823
|
+
attributes,
|
|
18824
|
+
noEchoAttributeNames
|
|
18611
18825
|
}, backfillDeps);
|
|
18612
18826
|
return {
|
|
18613
18827
|
resourceIdentifier: { [compositeIdentifier.field]: value },
|
|
@@ -18819,7 +19033,7 @@ async function resolveChildImportParameters(parentTemplate, parentResolverContex
|
|
|
18819
19033
|
stillSkipped.push(key);
|
|
18820
19034
|
continue;
|
|
18821
19035
|
}
|
|
18822
|
-
if (
|
|
19036
|
+
if (mentionsMask(result ?? null)) throw new CdkdError(`Cannot export the nested stack row ${quotedOrNotShown(childLogicalId)}: its parameter ${quotedOrNotShown(key)} resolves from a value cdkd stores only as the redaction mask (***), a NoEcho value, so the export has no value to pass to the child. Export the stack without that nested stack and adopt it into CloudFormation by hand, passing the parameter value yourself.`, "EXPORT_MASKED_CHILD_PARAMETER");
|
|
18823
19037
|
if (result === void 0 || result === null) {
|
|
18824
19038
|
stillSkipped.push(key);
|
|
18825
19039
|
continue;
|
|
@@ -19430,7 +19644,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
|
|
|
19430
19644
|
continue;
|
|
19431
19645
|
}
|
|
19432
19646
|
const noEchoLeaves = noEchoLeavesOf(stateEntry);
|
|
19433
|
-
const masksOnlyAtNoEchoLeaves = noEchoLeaves !== void 0 && noEchoLeaves.length > 0 &&
|
|
19647
|
+
const masksOnlyAtNoEchoLeaves = noEchoLeaves !== void 0 && noEchoLeaves.length > 0 && holdsMaskLeaf(stateEntry.properties) && !holdsMaskLeaf(withoutCoordinates(stateEntry.properties, noEchoLeaves));
|
|
19434
19648
|
if (masksOnlyAtNoEchoLeaves && IMPORT_UNSUPPORTED_RECREATABLE_TYPES.has(resourceType) && noEchoLeaves.some((coordinate) => typeof coordinate[0] === "string" && NOECHO_PRE_DELETE_KEYS.has(coordinate[0]))) {
|
|
19435
19649
|
blocked.push({
|
|
19436
19650
|
logicalId,
|
|
@@ -19439,7 +19653,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
|
|
|
19439
19653
|
});
|
|
19440
19654
|
continue;
|
|
19441
19655
|
}
|
|
19442
|
-
if (!masksOnlyAtNoEchoLeaves &&
|
|
19656
|
+
if (!masksOnlyAtNoEchoLeaves && holdsMaskLeaf(stateEntry.properties)) {
|
|
19443
19657
|
blocked.push({
|
|
19444
19658
|
logicalId,
|
|
19445
19659
|
resourceType,
|
|
@@ -19524,7 +19738,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
|
|
|
19524
19738
|
});
|
|
19525
19739
|
continue;
|
|
19526
19740
|
}
|
|
19527
|
-
resolved = await resolveResourceIdentifier(resourceType, logicalId, stateEntry.physicalId, stateEntry.properties, stateEntry.attributes ?? {}, schemaInfo, backfillDeps);
|
|
19741
|
+
resolved = await resolveResourceIdentifier(resourceType, logicalId, stateEntry.physicalId, stateEntry.properties, stateEntry.attributes ?? {}, schemaInfo, backfillDeps, stateEntry.noEchoAttributeNames);
|
|
19528
19742
|
} catch (err) {
|
|
19529
19743
|
blocked.push({
|
|
19530
19744
|
logicalId,
|
|
@@ -19535,7 +19749,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
|
|
|
19535
19749
|
continue;
|
|
19536
19750
|
}
|
|
19537
19751
|
const propertiesOverlay = resolved.propertiesOverlay ?? resolved.resourceIdentifier;
|
|
19538
|
-
if ((
|
|
19752
|
+
if ((mentionsMask(resolved.resourceIdentifier) || mentionsMask(propertiesOverlay)) && !(holdsMaskLeaf(resolved.resourceIdentifier) || holdsMaskLeaf(propertiesOverlay))) {
|
|
19539
19753
|
blocked.push({
|
|
19540
19754
|
logicalId,
|
|
19541
19755
|
resourceType,
|
|
@@ -19543,7 +19757,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
|
|
|
19543
19757
|
});
|
|
19544
19758
|
continue;
|
|
19545
19759
|
}
|
|
19546
|
-
if (
|
|
19760
|
+
if (holdsMaskLeaf(resolved.resourceIdentifier) || holdsMaskLeaf(propertiesOverlay)) {
|
|
19547
19761
|
blocked.push({
|
|
19548
19762
|
logicalId,
|
|
19549
19763
|
resourceType,
|
|
@@ -20296,7 +20510,7 @@ function exportedStackTagsByStack(plans, rootStackName, rootStackTags, warn) {
|
|
|
20296
20510
|
if (plan === void 0) return;
|
|
20297
20511
|
for (const row of plan.nestedStackRows) {
|
|
20298
20512
|
let rowTags = literalRowTags(rowTagsProperty(plan.template, row.logicalId));
|
|
20299
|
-
if (rowTags !== void 0 && Object.values(rowTags).some((v) => v
|
|
20513
|
+
if (rowTags !== void 0 && Object.values(rowTags).some((v) => mentionsDynamicReference(v))) rowTags = void 0;
|
|
20300
20514
|
if (rowTags === void 0) {
|
|
20301
20515
|
warn(`The Tags of nested stack row ${rowIdent(row.logicalId)} in ${quotedOrNotShown(cdkdName)} are not literal, so its exported CloudFormation stack gets only its parent's stack tags; the next 'cdk deploy' of the root stack applies the rest.`);
|
|
20302
20516
|
rowTags = {};
|
|
@@ -21066,8 +21280,43 @@ function unsplicableCachedAttribute(resourceType, attribute, cached) {
|
|
|
21066
21280
|
if (carriesDynamicReference(cached)) return "an unresolved dynamic reference";
|
|
21067
21281
|
if (carriesSensitiveNamedLeaf(cached)) return "a value with a credential-named field";
|
|
21068
21282
|
}
|
|
21283
|
+
function recordedAttributeValue(orphan, attributes, attribute) {
|
|
21284
|
+
if (Object.hasOwn(attributes, attribute)) {
|
|
21285
|
+
const stored = attributes[attribute];
|
|
21286
|
+
if (isImpossibleEmptyStoredAttribute(orphan.resourceType, attribute, stored)) return void 0;
|
|
21287
|
+
if (stored !== void 0 && isStalePlaceholderArnAttribute(orphan.resourceType, attribute, stored)) return;
|
|
21288
|
+
return stored;
|
|
21289
|
+
}
|
|
21290
|
+
if (!attribute.includes(".")) return void 0;
|
|
21291
|
+
let cursor = attributes;
|
|
21292
|
+
for (const part of attribute.split(".")) {
|
|
21293
|
+
if (cursor === null || typeof cursor !== "object" || !Object.hasOwn(cursor, part)) return;
|
|
21294
|
+
cursor = cursor[part];
|
|
21295
|
+
}
|
|
21296
|
+
return cursor;
|
|
21297
|
+
}
|
|
21298
|
+
function namesAnything(field) {
|
|
21299
|
+
if (Array.isArray(field)) return field.length > 0;
|
|
21300
|
+
return field !== null && typeof field === "object" && Object.keys(field).length > 0;
|
|
21301
|
+
}
|
|
21302
|
+
function secretDerivedLiveAttribute(orphan, attribute) {
|
|
21303
|
+
if (secretPhysicalIdSegment(orphan.resourceType, orphan.physicalId) !== void 0) return "an attribute of a resource whose identifier is a credential";
|
|
21304
|
+
if (isSensitiveAttributeName(attribute)) return "a credential-named attribute";
|
|
21305
|
+
if (isCustomResourceType$1(orphan.resourceType)) return "a custom resource's attribute";
|
|
21306
|
+
if (isSecretValuedAttribute(orphan.resourceType, attribute)) return "a secret-valued attribute";
|
|
21307
|
+
const top = attribute.split(".")[0];
|
|
21308
|
+
const declared = (field) => Array.isArray(field) && field.some((name) => name === attribute || name === top);
|
|
21309
|
+
if (declared(orphan.noEchoAttributeNames)) return "an attribute its provider declared NoEcho";
|
|
21310
|
+
if (declared(orphan.secretNamedAttributes)) return "an attribute holding a secret-derived name";
|
|
21311
|
+
const bag = orphan.attributes;
|
|
21312
|
+
const recorded = isReadableBag(bag) ? recordedAttributeValue(orphan, bag, attribute) : void 0;
|
|
21313
|
+
const secretIn = (value) => carriesSecretMask(value) || containsSecretDynamicReference(value);
|
|
21314
|
+
if (recorded !== void 0) return secretIn(recorded) || carriesSensitiveNamedLeaf(recorded) ? "an attribute state recorded as secret-derived" : void 0;
|
|
21315
|
+
if (secretIn(orphan.properties) || secretIn(orphan.attributes) || secretIn(orphan.observedProperties) || namesAnything(orphan.noEchoLeaves) || namesAnything(orphan.noEchoAttributeNames) || namesAnything(orphan.secretNamedAttributes) || namesAnything(orphan.maskedPropertyFingerprints) || namesAnything(orphan.noEchoValueMacs)) return "an attribute of a secret-carrying record that does not record it";
|
|
21316
|
+
}
|
|
21069
21317
|
|
|
21070
21318
|
// src/analyzer/orphan-rewriter/attribute-fetcher.ts
|
|
21319
|
+
const SECRET_DERIVED_REMEDY = "Remove the reference from the referring resource in the template (or pass the value in another way, such as a parameter) and deploy, then orphan again; --force leaves the reference in place.";
|
|
21071
21320
|
var AttributeFetcher = class {
|
|
21072
21321
|
cache = /* @__PURE__ */ new Map();
|
|
21073
21322
|
logger = getLogger().child("OrphanRewriter");
|
|
@@ -21095,6 +21344,10 @@ var AttributeFetcher = class {
|
|
|
21095
21344
|
ok: false,
|
|
21096
21345
|
reason: `state records no usable '${healedAttribute}' for this resource, the value CloudFormation's Ref returns, and the physical id is NOT that value`
|
|
21097
21346
|
};
|
|
21347
|
+
if (secretPhysicalIdSegment(o.resourceType, o.physicalId) !== void 0) return {
|
|
21348
|
+
ok: false,
|
|
21349
|
+
reason: `the Ref value of ${displayIdent(orphanLogicalId)} carries a credential, so cdkd does not write it into the referring resource's state. ${SECRET_DERIVED_REMEDY}`
|
|
21350
|
+
};
|
|
21098
21351
|
let maskedKey;
|
|
21099
21352
|
const value = cfnRefValueFromPhysicalId(o.resourceType, o.physicalId, refStateLookupFromResource(o, (key) => {
|
|
21100
21353
|
maskedKey = key;
|
|
@@ -21129,6 +21382,11 @@ var AttributeFetcher = class {
|
|
|
21129
21382
|
reason: `CloudFormation does not expose ${displaySafe(attribute, { asciiOnly: true })} as an attribute of ${displaySafe(orphan.resourceType, { asciiOnly: true })}; cdkd records it for its own identity checks only`
|
|
21130
21383
|
};
|
|
21131
21384
|
const recorded = servableRecordedAttribute(orphan, attribute);
|
|
21385
|
+
const secretDerived = secretDerivedLiveAttribute(orphan, attribute);
|
|
21386
|
+
if (secretDerived !== void 0) return {
|
|
21387
|
+
ok: false,
|
|
21388
|
+
reason: `the value of ${displayIdent(orphanLogicalId)}.${displayIdent(attribute)} is ${secretDerived}, so cdkd does not write it into the referring resource's state. Remove the reference from the referring resource in the template (or pass the value in another way, such as a parameter) and deploy, then orphan again; --force leaves the reference in place.`
|
|
21389
|
+
};
|
|
21132
21390
|
let provider;
|
|
21133
21391
|
try {
|
|
21134
21392
|
provider = this.providerRegistry.getProviderFor({
|
|
@@ -21554,7 +21812,7 @@ async function orphanCommand(pathArgs, options) {
|
|
|
21554
21812
|
printRewriteSummary(result.rewrites, orphanLogicalIds);
|
|
21555
21813
|
if (result.unresolvable.length > 0 && !options.force) {
|
|
21556
21814
|
printUnresolvable(result.unresolvable);
|
|
21557
|
-
throw new Error(`Orphan aborted: ${result.unresolvable.length} reference(s) could not be resolved.\nRe-run with --force to fall back to cached attribute values from state, or fix the underlying provider/AWS issue and retry.`);
|
|
21815
|
+
throw new Error(`Orphan aborted: ${result.unresolvable.length} reference(s) could not be resolved.\nRe-run with --force to fall back to cached attribute values from state, or fix the underlying provider/AWS issue and retry. A reference refused as secret-derived stays in place under --force too.`);
|
|
21558
21816
|
}
|
|
21559
21817
|
if (result.unresolvable.length > 0) {
|
|
21560
21818
|
printUnresolvable(result.unresolvable);
|
|
@@ -21892,7 +22150,7 @@ async function stateOrphanResources(stackName, requested, options) {
|
|
|
21892
22150
|
printRewriteSummary(result.rewrites, logicalIds);
|
|
21893
22151
|
if (result.unresolvable.length > 0 && !options.force) {
|
|
21894
22152
|
printUnresolvable(result.unresolvable);
|
|
21895
|
-
throw new Error(`Orphan aborted: ${result.unresolvable.length} reference(s) could not be resolved.\nRe-run with --force to fall back to cached attribute values from state, or fix the underlying provider/AWS issue and retry.`);
|
|
22153
|
+
throw new Error(`Orphan aborted: ${result.unresolvable.length} reference(s) could not be resolved.\nRe-run with --force to fall back to cached attribute values from state, or fix the underlying provider/AWS issue and retry. A reference refused as secret-derived stays in place under --force too.`);
|
|
21896
22154
|
}
|
|
21897
22155
|
if (result.unresolvable.length > 0) {
|
|
21898
22156
|
printUnresolvable(result.unresolvable);
|
|
@@ -22807,11 +23065,27 @@ async function refreshObservedForStack(stackName, region, stateBackend, lockMana
|
|
|
22807
23065
|
logger.warn(safeMsg` ✗ ${displayStackName(stackName)}/${displayIdent(logicalId)} ` + safeMsg`(${displayIdent(resource.resourceType)}): ` + `not found in AWS — it was deleted outside cdkd; 'cdkd drift' reports it as deleted.`);
|
|
22808
23066
|
return;
|
|
22809
23067
|
}
|
|
22810
|
-
|
|
23068
|
+
const publicSsmProof = await publicSsmProver.proofBagFor(resource.properties ?? {});
|
|
23069
|
+
const redacted = redactForState(maskReadbackAtCoordinates(observed, resource.properties ?? {}, [...maskedLeafCoordinatesOf(resource.properties ?? {}), ...noEchoLeavesOf(resource) ?? []]), {
|
|
22811
23070
|
provenance: "state-baseline",
|
|
22812
|
-
secrets:
|
|
23071
|
+
secrets: publicSsmProof,
|
|
22813
23072
|
source: resource.properties ?? {}
|
|
22814
23073
|
});
|
|
23074
|
+
const echoes = maskOffTemplateEchoes({
|
|
23075
|
+
bag: redacted,
|
|
23076
|
+
readback: observed,
|
|
23077
|
+
properties: resource.properties ?? {},
|
|
23078
|
+
noEchoLeaves: resource.noEchoLeaves,
|
|
23079
|
+
physicalId: resource.physicalId,
|
|
23080
|
+
publicTokens: /* @__PURE__ */ new Set([region, stackName])
|
|
23081
|
+
});
|
|
23082
|
+
resource.observedProperties = redactForState(echoes.bag, {
|
|
23083
|
+
provenance: "state-baseline",
|
|
23084
|
+
secrets: publicSsmProof,
|
|
23085
|
+
source: resource.properties ?? {}
|
|
23086
|
+
});
|
|
23087
|
+
if (echoes.leaves.length > 0) resource.observedMaskedLeaves = echoes.leaves;
|
|
23088
|
+
else delete resource.observedMaskedLeaves;
|
|
22815
23089
|
if (logicalId === acceptId) {
|
|
22816
23090
|
delete resource.observedBaselineRefused;
|
|
22817
23091
|
delete resource.observedBaselineRefusalReason;
|
|
@@ -26855,81 +27129,6 @@ function collectImportableResources(template) {
|
|
|
26855
27129
|
return out;
|
|
26856
27130
|
}
|
|
26857
27131
|
|
|
26858
|
-
// src/cli/commands/import/discarded-subtree.ts
|
|
26859
|
-
const DYNAMIC_REFERENCE_OPENER$1 = "{{resolve:";
|
|
26860
|
-
function countDynamicReferenceOpeners(bag) {
|
|
26861
|
-
let text;
|
|
26862
|
-
try {
|
|
26863
|
-
text = JSON.stringify(bag ?? {}) ?? "";
|
|
26864
|
-
} catch {
|
|
26865
|
-
return;
|
|
26866
|
-
}
|
|
26867
|
-
let count = 0;
|
|
26868
|
-
for (let from = 0;;) {
|
|
26869
|
-
const at = text.indexOf(DYNAMIC_REFERENCE_OPENER$1, from);
|
|
26870
|
-
if (at === -1) return count;
|
|
26871
|
-
count++;
|
|
26872
|
-
from = at + 10;
|
|
26873
|
-
}
|
|
26874
|
-
}
|
|
26875
|
-
function isIntrinsicShapedKey(key) {
|
|
26876
|
-
return key === "Ref" || key.startsWith("Fn::");
|
|
26877
|
-
}
|
|
26878
|
-
function isInertDiscardedSubtree(node) {
|
|
26879
|
-
if (typeof node === "string") return !node.includes(DYNAMIC_REFERENCE_OPENER$1);
|
|
26880
|
-
if (node === null || typeof node !== "object") return true;
|
|
26881
|
-
if (Array.isArray(node)) return node.every((element) => isInertDiscardedSubtree(element));
|
|
26882
|
-
const record = node;
|
|
26883
|
-
const keys = Object.keys(record);
|
|
26884
|
-
if (keys.length === 1 && keys[0] === "Ref" && record["Ref"] === "AWS::NoValue") return true;
|
|
26885
|
-
return Object.entries(record).every(([key, value]) => !isIntrinsicShapedKey(key) && isInertDiscardedSubtree(value));
|
|
26886
|
-
}
|
|
26887
|
-
function isStaticSelectIndex(value) {
|
|
26888
|
-
if (typeof value === "number") return Number.isInteger(value) && value >= 0;
|
|
26889
|
-
return typeof value === "string" && /^(0|[1-9]\d*)$/.test(value);
|
|
26890
|
-
}
|
|
26891
|
-
function isStaticLookupKey(value) {
|
|
26892
|
-
if (typeof value === "string") return !value.includes(DYNAMIC_REFERENCE_OPENER$1);
|
|
26893
|
-
return typeof value === "number" || typeof value === "boolean";
|
|
26894
|
-
}
|
|
26895
|
-
function resolveDiscardsNonInertSubtree(node, conditions, mappings) {
|
|
26896
|
-
if (node === null || typeof node !== "object") return false;
|
|
26897
|
-
if (Array.isArray(node)) return node.some((element) => resolveDiscardsNonInertSubtree(element, conditions, mappings));
|
|
26898
|
-
const record = node;
|
|
26899
|
-
const keys = Object.keys(record);
|
|
26900
|
-
if (keys.length === 1 && keys[0] === "Fn::If") {
|
|
26901
|
-
const args = record["Fn::If"];
|
|
26902
|
-
if (!Array.isArray(args) || args.length !== 3 || typeof args[0] !== "string") return true;
|
|
26903
|
-
const [conditionName, valueIfTrue, valueIfFalse] = args;
|
|
26904
|
-
if (!Object.hasOwn(conditions, conditionName)) return !isInertDiscardedSubtree(valueIfTrue) || !isInertDiscardedSubtree(valueIfFalse);
|
|
26905
|
-
const selected = conditions[conditionName] ? valueIfTrue : valueIfFalse;
|
|
26906
|
-
if (!isInertDiscardedSubtree(conditions[conditionName] ? valueIfFalse : valueIfTrue)) return true;
|
|
26907
|
-
return resolveDiscardsNonInertSubtree(selected, conditions, mappings);
|
|
26908
|
-
}
|
|
26909
|
-
if (keys.length === 1 && keys[0] === "Fn::FindInMap") {
|
|
26910
|
-
const args = record["Fn::FindInMap"];
|
|
26911
|
-
if (!Array.isArray(args) || args.length < 3 || args.length > 4) return true;
|
|
26912
|
-
if (args.length > 3) {
|
|
26913
|
-
if (!isInertDiscardedSubtree(args[3])) return true;
|
|
26914
|
-
}
|
|
26915
|
-
if (!args.slice(0, 3).every((key) => isStaticLookupKey(key))) {
|
|
26916
|
-
if (!isInertDiscardedSubtree(typeof args[0] === "string" && mappings !== null && typeof mappings === "object" && Object.hasOwn(mappings, args[0]) ? mappings[args[0]] : mappings)) return true;
|
|
26917
|
-
}
|
|
26918
|
-
return args.some((arg) => resolveDiscardsNonInertSubtree(arg, conditions, mappings));
|
|
26919
|
-
}
|
|
26920
|
-
if (keys.length === 1 && keys[0] === "Fn::Select") {
|
|
26921
|
-
const args = record["Fn::Select"];
|
|
26922
|
-
if (!Array.isArray(args) || args.length !== 2) return true;
|
|
26923
|
-
if (!(isStaticSelectIndex(args[0]) && (!Array.isArray(args[1]) || Number(args[0]) < args[1].length)) && !isInertDiscardedSubtree(args[1])) return true;
|
|
26924
|
-
return args.some((arg) => resolveDiscardsNonInertSubtree(arg, conditions, mappings));
|
|
26925
|
-
}
|
|
26926
|
-
if (keys.length > 1 && keys.some((key) => isIntrinsicShapedKey(key))) {
|
|
26927
|
-
if (keys.filter((key) => isIntrinsicShapedKey(key)).length > 1) return true;
|
|
26928
|
-
return !keys.every((key) => isInertDiscardedSubtree(record[key]));
|
|
26929
|
-
}
|
|
26930
|
-
return keys.some((key) => resolveDiscardsNonInertSubtree(record[key], conditions, mappings));
|
|
26931
|
-
}
|
|
26932
|
-
|
|
26933
27132
|
// src/cli/commands/import/pseudo-parameters.ts
|
|
26934
27133
|
const IMPORT_PREPASS_PSEUDO_PARAMETERS = /* @__PURE__ */ new Set([
|
|
26935
27134
|
"AWS::AccountId",
|
|
@@ -27033,7 +27232,7 @@ async function resolvePseudoParameterIntrinsics(value, region) {
|
|
|
27033
27232
|
values.set("AWS::AccountId", accountId);
|
|
27034
27233
|
}
|
|
27035
27234
|
const resolved = evaluatePseudoParameterClosure(obj, values);
|
|
27036
|
-
return resolved
|
|
27235
|
+
return mentionsDynamicReference(resolved) ? node : resolved;
|
|
27037
27236
|
}
|
|
27038
27237
|
const result = {};
|
|
27039
27238
|
for (const [k, v] of Object.entries(obj)) defineOwnKey(result, k, await walk(v));
|
|
@@ -27187,11 +27386,26 @@ async function captureObservedForImportedResources(stackState, providerRegistry,
|
|
|
27187
27386
|
const observed = await provider.readCurrentState(resource.physicalId, logicalId, resource.resourceType, resource.properties ?? {}, buildReadCurrentStateContext(stackState, logicalId));
|
|
27188
27387
|
if (observed !== void 0 && observed !== RESOURCE_NOT_FOUND) {
|
|
27189
27388
|
const marked = noEchoLeavesOf(resource) ?? [];
|
|
27190
|
-
|
|
27389
|
+
const redacted = redactForState(marked.length > 0 ? maskReadbackAtCoordinates(observed, resource.properties ?? {}, marked) : observed, {
|
|
27390
|
+
provenance: "state-baseline",
|
|
27391
|
+
secrets: NO_RECORDED_SECRETS,
|
|
27392
|
+
source: resource.properties ?? {}
|
|
27393
|
+
});
|
|
27394
|
+
const echoes = maskOffTemplateEchoes({
|
|
27395
|
+
bag: redacted,
|
|
27396
|
+
readback: observed,
|
|
27397
|
+
properties: resource.properties ?? {},
|
|
27398
|
+
noEchoLeaves: resource.noEchoLeaves,
|
|
27399
|
+
physicalId: resource.physicalId,
|
|
27400
|
+
publicTokens: new Set([stackState.region, stackState.stackName].filter((token) => typeof token === "string" && token !== ""))
|
|
27401
|
+
});
|
|
27402
|
+
resource.observedProperties = redactForState(echoes.bag, {
|
|
27191
27403
|
provenance: "state-baseline",
|
|
27192
27404
|
secrets: NO_RECORDED_SECRETS,
|
|
27193
27405
|
source: resource.properties ?? {}
|
|
27194
27406
|
});
|
|
27407
|
+
if (echoes.leaves.length > 0) resource.observedMaskedLeaves = echoes.leaves;
|
|
27408
|
+
else delete resource.observedMaskedLeaves;
|
|
27195
27409
|
}
|
|
27196
27410
|
} catch (err) {
|
|
27197
27411
|
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.`);
|
|
@@ -27199,6 +27413,74 @@ async function captureObservedForImportedResources(stackState, providerRegistry,
|
|
|
27199
27413
|
})));
|
|
27200
27414
|
}
|
|
27201
27415
|
|
|
27416
|
+
// src/cli/commands/import/discarded-subtree.ts
|
|
27417
|
+
function countDynamicReferenceOpeners(bag) {
|
|
27418
|
+
let text;
|
|
27419
|
+
try {
|
|
27420
|
+
text = JSON.stringify(bag ?? {}) ?? "";
|
|
27421
|
+
} catch {
|
|
27422
|
+
return;
|
|
27423
|
+
}
|
|
27424
|
+
return countDynamicReferenceOpenings(text);
|
|
27425
|
+
}
|
|
27426
|
+
function isIntrinsicShapedKey(key) {
|
|
27427
|
+
return key === "Ref" || key.startsWith("Fn::");
|
|
27428
|
+
}
|
|
27429
|
+
function isInertDiscardedSubtree(node) {
|
|
27430
|
+
if (typeof node === "string") return !mentionsDynamicReference(node);
|
|
27431
|
+
if (node === null || typeof node !== "object") return true;
|
|
27432
|
+
if (Array.isArray(node)) return node.every((element) => isInertDiscardedSubtree(element));
|
|
27433
|
+
const record = node;
|
|
27434
|
+
const keys = Object.keys(record);
|
|
27435
|
+
if (keys.length === 1 && keys[0] === "Ref" && record["Ref"] === "AWS::NoValue") return true;
|
|
27436
|
+
return Object.entries(record).every(([key, value]) => !isIntrinsicShapedKey(key) && isInertDiscardedSubtree(value));
|
|
27437
|
+
}
|
|
27438
|
+
function isStaticSelectIndex(value) {
|
|
27439
|
+
if (typeof value === "number") return Number.isInteger(value) && value >= 0;
|
|
27440
|
+
return typeof value === "string" && /^(0|[1-9]\d*)$/.test(value);
|
|
27441
|
+
}
|
|
27442
|
+
function isStaticLookupKey(value) {
|
|
27443
|
+
if (typeof value === "string") return !mentionsDynamicReference(value);
|
|
27444
|
+
return typeof value === "number" || typeof value === "boolean";
|
|
27445
|
+
}
|
|
27446
|
+
function resolveDiscardsNonInertSubtree(node, conditions, mappings) {
|
|
27447
|
+
if (node === null || typeof node !== "object") return false;
|
|
27448
|
+
if (Array.isArray(node)) return node.some((element) => resolveDiscardsNonInertSubtree(element, conditions, mappings));
|
|
27449
|
+
const record = node;
|
|
27450
|
+
const keys = Object.keys(record);
|
|
27451
|
+
if (keys.length === 1 && keys[0] === "Fn::If") {
|
|
27452
|
+
const args = record["Fn::If"];
|
|
27453
|
+
if (!Array.isArray(args) || args.length !== 3 || typeof args[0] !== "string") return true;
|
|
27454
|
+
const [conditionName, valueIfTrue, valueIfFalse] = args;
|
|
27455
|
+
if (!Object.hasOwn(conditions, conditionName)) return !isInertDiscardedSubtree(valueIfTrue) || !isInertDiscardedSubtree(valueIfFalse);
|
|
27456
|
+
const selected = conditions[conditionName] ? valueIfTrue : valueIfFalse;
|
|
27457
|
+
if (!isInertDiscardedSubtree(conditions[conditionName] ? valueIfFalse : valueIfTrue)) return true;
|
|
27458
|
+
return resolveDiscardsNonInertSubtree(selected, conditions, mappings);
|
|
27459
|
+
}
|
|
27460
|
+
if (keys.length === 1 && keys[0] === "Fn::FindInMap") {
|
|
27461
|
+
const args = record["Fn::FindInMap"];
|
|
27462
|
+
if (!Array.isArray(args) || args.length < 3 || args.length > 4) return true;
|
|
27463
|
+
if (args.length > 3) {
|
|
27464
|
+
if (!isInertDiscardedSubtree(args[3])) return true;
|
|
27465
|
+
}
|
|
27466
|
+
if (!args.slice(0, 3).every((key) => isStaticLookupKey(key))) {
|
|
27467
|
+
if (!isInertDiscardedSubtree(typeof args[0] === "string" && mappings !== null && typeof mappings === "object" && Object.hasOwn(mappings, args[0]) ? mappings[args[0]] : mappings)) return true;
|
|
27468
|
+
}
|
|
27469
|
+
return args.some((arg) => resolveDiscardsNonInertSubtree(arg, conditions, mappings));
|
|
27470
|
+
}
|
|
27471
|
+
if (keys.length === 1 && keys[0] === "Fn::Select") {
|
|
27472
|
+
const args = record["Fn::Select"];
|
|
27473
|
+
if (!Array.isArray(args) || args.length !== 2) return true;
|
|
27474
|
+
if (!(isStaticSelectIndex(args[0]) && (!Array.isArray(args[1]) || Number(args[0]) < args[1].length)) && !isInertDiscardedSubtree(args[1])) return true;
|
|
27475
|
+
return args.some((arg) => resolveDiscardsNonInertSubtree(arg, conditions, mappings));
|
|
27476
|
+
}
|
|
27477
|
+
if (keys.length > 1 && keys.some((key) => isIntrinsicShapedKey(key))) {
|
|
27478
|
+
if (keys.filter((key) => isIntrinsicShapedKey(key)).length > 1) return true;
|
|
27479
|
+
return !keys.every((key) => isInertDiscardedSubtree(record[key]));
|
|
27480
|
+
}
|
|
27481
|
+
return keys.some((key) => resolveDiscardsNonInertSubtree(record[key], conditions, mappings));
|
|
27482
|
+
}
|
|
27483
|
+
|
|
27202
27484
|
// src/cli/commands/import/noecho-position.ts
|
|
27203
27485
|
function positionImportedNoEcho(stackState, inputs, template, conditions, refusals, logger) {
|
|
27204
27486
|
if (inputs.size === 0) return;
|
|
@@ -27600,7 +27882,7 @@ function nestedChildStackTags(parentStackTags, parentDeployedTemplate, rowLogica
|
|
|
27600
27882
|
if (entry === null || typeof entry !== "object" || Array.isArray(entry)) continue;
|
|
27601
27883
|
const { Key: key, Value: value } = entry;
|
|
27602
27884
|
if (typeof key !== "string") continue;
|
|
27603
|
-
if (typeof value === "string" && !value
|
|
27885
|
+
if (typeof value === "string" && !mentionsDynamicReference(value)) defineOwnKey(tags, key, value);
|
|
27604
27886
|
else delete tags[key];
|
|
27605
27887
|
}
|
|
27606
27888
|
return tags;
|
|
@@ -27714,11 +27996,10 @@ function collectNames(value, out) {
|
|
|
27714
27996
|
}
|
|
27715
27997
|
for (const child of Object.values(obj)) collectNames(child, out);
|
|
27716
27998
|
}
|
|
27717
|
-
const DYNAMIC_REFERENCE_OPENER = "{{resolve:";
|
|
27718
27999
|
function dynamicReferenceDowngradePath(synth, deployed, path) {
|
|
27719
28000
|
if (typeof synth === "string") {
|
|
27720
|
-
if (!synth
|
|
27721
|
-
return typeof deployed === "string" && deployed
|
|
28001
|
+
if (!mentionsDynamicReference(synth)) return void 0;
|
|
28002
|
+
return typeof deployed === "string" && mentionsDynamicReference(deployed) ? void 0 : path || "(the whole bag)";
|
|
27722
28003
|
}
|
|
27723
28004
|
if (synth === null || typeof synth !== "object") return void 0;
|
|
27724
28005
|
const deployedNode = deployed !== null && typeof deployed === "object" ? deployed : {};
|
|
@@ -27875,13 +28156,13 @@ function reimportedAttributes(row, prior) {
|
|
|
27875
28156
|
else {
|
|
27876
28157
|
attributes = Object.create(Object.getPrototypeOf(row));
|
|
27877
28158
|
for (const [key, value] of Object.entries(row)) {
|
|
27878
|
-
const keepRecorded =
|
|
28159
|
+
const keepRecorded = holdsMaskLeaf(value) && hasOwnKey(prior, key) && !holdsMaskLeaf(prior[key]);
|
|
27879
28160
|
if (keepRecorded) keptRecordedKeys.push(key);
|
|
27880
28161
|
defineOwnKey(attributes, key, keepRecorded ? prior[key] : value);
|
|
27881
28162
|
}
|
|
27882
|
-
for (const [key, value] of Object.entries(prior)) if (!hasOwnKey(attributes, key) &&
|
|
28163
|
+
for (const [key, value] of Object.entries(prior)) if (!hasOwnKey(attributes, key) && holdsMaskLeaf(value)) defineOwnKey(attributes, key, value);
|
|
27883
28164
|
}
|
|
27884
|
-
const stillMaskedKeys = prior === void 0 ? [] : Object.keys(prior).filter((key) =>
|
|
28165
|
+
const stillMaskedKeys = prior === void 0 ? [] : Object.keys(prior).filter((key) => holdsMaskLeaf(prior[key]) && hasOwnKey(attributes, key) && holdsMaskLeaf(attributes[key])).sort();
|
|
27885
28166
|
return {
|
|
27886
28167
|
attributes,
|
|
27887
28168
|
stillMaskedKeys,
|
|
@@ -27890,7 +28171,7 @@ function reimportedAttributes(row, prior) {
|
|
|
27890
28171
|
}
|
|
27891
28172
|
function withDeclaredNoEchoMasked(attributes, declared) {
|
|
27892
28173
|
if (!Array.isArray(declared)) return attributes;
|
|
27893
|
-
const names = declared.filter((name) => typeof name === "string" && hasOwnKey(attributes, name) && !
|
|
28174
|
+
const names = declared.filter((name) => typeof name === "string" && hasOwnKey(attributes, name) && !holdsMaskLeaf(attributes[name]) && attributes[name] !== void 0 && attributes[name] !== null);
|
|
27894
28175
|
if (names.length === 0) return attributes;
|
|
27895
28176
|
const masked = Object.create(Object.getPrototypeOf(attributes));
|
|
27896
28177
|
for (const [key, value] of Object.entries(attributes)) defineOwnKey(masked, key, names.includes(key) ? maskWholeValue(value) : value);
|
|
@@ -27898,7 +28179,7 @@ function withDeclaredNoEchoMasked(attributes, declared) {
|
|
|
27898
28179
|
}
|
|
27899
28180
|
function noEchoAttributeNamesCarried(prior, attributes) {
|
|
27900
28181
|
if (!Array.isArray(prior) || attributes === void 0) return {};
|
|
27901
|
-
const kept = prior.filter((name) => typeof name === "string" && hasOwnKey(attributes, name) &&
|
|
28182
|
+
const kept = prior.filter((name) => typeof name === "string" && hasOwnKey(attributes, name) && holdsMaskLeaf(attributes[name]));
|
|
27902
28183
|
return kept.length > 0 ? { noEchoAttributeNames: kept } : {};
|
|
27903
28184
|
}
|
|
27904
28185
|
const READS_EVERY_KEY = Symbol("reads every key");
|
|
@@ -37483,4 +37764,4 @@ function collectVerbFlags(program) {
|
|
|
37483
37764
|
}
|
|
37484
37765
|
|
|
37485
37766
|
export { effectiveInventoryItem as $, withRecordedCidrSpelling as A, LIFECYCLE_DEFAULT_STATUS as B, securityGroupReadbackDelays as C, stackIngressRuleHolder as D, singleSecurityGroupRuleId as E, clearLifecycleWritesOf as F, canonicalizeItemList as G, LIFECYCLE_RULE_PATH as H, lifecycleSettleTarget as I, lifecycleUsesFilterForm as J, effectiveLifecycleConfiguration as K, recordLifecycleWrite as L, sgRemovalRuleKey as M, sgRuleListMember as N, survivingRecordOfRuleId as O, LIFECYCLE_BASELINE_REREAD_DELAYS_MS as P, effectiveIntelligentTieringItem as Q, settleLifecycleRead as R, reconcileSgRules as S, sgRuleKey as T, LIFECYCLE_TAG_FILTERS_PATH as U, LIFECYCLE_FILTER_PATH as V, canonicalizeBlock as W, EVENTBRIDGE_CONFIG_PATH as X, parseCfnTimestamp as Y, effectiveAnalyticsItem as Z, ingressRuleIdentity as _, refuseRevertRevokingSiblingRules as a, declaresBucketObjectLock as at, isResendableSocketFailure as b, buildProgram, siblingIdOwnedSgRules as c, isPlainObject as ct, authorizeDefinitelyNotApplied as d, shownLifecycleRuleId as dt, effectiveNotificationConfiguration as et, canonicalizeSgInlineRuleProtocols as f, flattenIpPermissions as g, descriptionKey as h, resolveSecretDerivedPrincipals as i, configItemId as it, markCopiesAgreed as j, tagListsMatch as k, SG_READBACK_RETRY_DELAY_MS as l, manualBucketDeletionClause as lt, comparableIngressIdentity as m, holdsUnprovenSecretPrincipalToken as n, caughtErrorName as nt, sgRuleDiffKey as o, declaresNestedObjectLock as ot, canonicalizeSgRuleProtocol as p, lifecycleRuleScope as q, isResolvableSecretPrincipalList as r, coerceCfnNumber as rt, readSgIngressById as s, describeValue as st, runDestroyForStack as t, eventBridgeEnabledOf as tt, SG_RULE_PAGE_SIZE$1 as u, mergeLegacySingular as ut, isConnectTimeout as v, securityGroupRuleMatchesCfnIngress as w, narrowIngressIpProtocol as x, isDefaultEgressRule as y, takeLifecycleWrite as z };
|
|
37486
|
-
//# sourceMappingURL=program-
|
|
37767
|
+
//# sourceMappingURL=program-BjmeRD9o.js.map
|