@cdkd/cli 0.373.1 → 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-BLKND30a.js → ambient-client-defaults-CruQnpD7.js} +18 -4
- package/dist/ambient-client-defaults-CruQnpD7.js.map +1 -0
- package/dist/{asg-provider-DXL1CE4m.js → asg-provider-C76YNNe3.js} +8 -8
- package/dist/{asg-provider-DXL1CE4m.js.map → asg-provider-C76YNNe3.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{replacement-rules-BkUZIP44.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-DK4-5kRC.js → custom-resource-runtime-DNWvFAcJ.js} +6 -6
- package/dist/{custom-resource-runtime-DK4-5kRC.js.map → custom-resource-runtime-DNWvFAcJ.js.map} +1 -1
- package/dist/{db-associated-roles-zv71gI1O.js → db-associated-roles-ChxC2pWo.js} +2 -2
- package/dist/{db-associated-roles-zv71gI1O.js.map → db-associated-roles-ChxC2pWo.js.map} +1 -1
- package/dist/{delete-started-E38sSyUX.js → delete-started-DCNzpczG.js} +4 -4
- package/dist/{delete-started-E38sSyUX.js.map → delete-started-DCNzpczG.js.map} +1 -1
- package/dist/{deploy-engine-BDueF79_.js → deploy-engine-DkJ03QT5.js} +3568 -2887
- package/dist/deploy-engine-DkJ03QT5.js.map +1 -0
- package/dist/{ec2-termination-protection-DI-aPxET.js → ec2-termination-protection-CmMB_KbJ.js} +3 -3
- package/dist/{ec2-termination-protection-DI-aPxET.js.map → ec2-termination-protection-CmMB_KbJ.js.map} +1 -1
- package/dist/{ecr-uri-kW_K5U02.js → ecr-uri-DH03qkk2.js} +2 -2
- package/dist/{ecr-uri-kW_K5U02.js.map → ecr-uri-DH03qkk2.js.map} +1 -1
- package/dist/{emr-cluster-provider-BcqnxYsN.js → emr-cluster-provider-BdJs64i8.js} +11 -11
- package/dist/emr-cluster-provider-BdJs64i8.js.map +1 -0
- package/dist/{expected-bucket-owner-j5BCLzAB.js → expected-bucket-owner-D0nm7Szq.js} +2 -2
- package/dist/{expected-bucket-owner-j5BCLzAB.js.map → expected-bucket-owner-D0nm7Szq.js.map} +1 -1
- package/dist/{iam-role-provider-BlUbRjQo.js → iam-role-provider-BSj01gWD.js} +12 -12
- package/dist/{iam-role-provider-BlUbRjQo.js.map → iam-role-provider-BSj01gWD.js.map} +1 -1
- package/dist/{identity-read-denied-BhnkMyxk.js → identity-read-denied-CwSWOLvl.js} +5 -6
- package/dist/identity-read-denied-CwSWOLvl.js.map +1 -0
- package/dist/{image-plan-CUvO0Qe2.js → image-plan-D7hoLiS-.js} +8 -8
- package/dist/{image-plan-CUvO0Qe2.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-B673mhBe.js → logger-BTKRoxiD.js} +2 -2
- package/dist/{logger-B673mhBe.js.map → logger-BTKRoxiD.js.map} +1 -1
- package/dist/{neptune-provider-BOIjF_i3.js → neptune-provider-BNvxobyO.js} +9 -9
- package/dist/{neptune-provider-BOIjF_i3.js.map → neptune-provider-BNvxobyO.js.map} +1 -1
- package/dist/{program-avOxa_7W.js → program-BjmeRD9o.js} +467 -190
- package/dist/program-BjmeRD9o.js.map +1 -0
- package/dist/{provider-classes-BMrkl7zN.js → provider-classes-Bn4iaev8.js} +263 -112
- package/dist/provider-classes-Bn4iaev8.js.map +1 -0
- package/dist/{rds-provider-DD8ka8NG.js → rds-provider-CNEA-pHZ.js} +13 -13
- package/dist/{rds-provider-DD8ka8NG.js.map → rds-provider-CNEA-pHZ.js.map} +1 -1
- package/dist/{read-replica-Ddvkib9A.js → read-replica-0-l8YLR9.js} +3 -3
- package/dist/{read-replica-Ddvkib9A.js.map → read-replica-0-l8YLR9.js.map} +1 -1
- package/dist/{redacted-delete-address-CkcTwr-O.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-B2z0yyKo.js → resource-deadline-B6k_qtRx.js} +2 -2
- package/dist/{resource-deadline-B2z0yyKo.js.map → resource-deadline-B6k_qtRx.js.map} +1 -1
- package/dist/{restore-source-guard-1UD7ucv5.js → restore-source-guard-Dlh_1tru.js} +5 -5
- package/dist/restore-source-guard-Dlh_1tru.js.map +1 -0
- package/dist/{run-cli-Dm2l-FUd.js → run-cli-fBTOa8id.js} +2 -2
- package/dist/{run-cli-Dm2l-FUd.js.map → run-cli-fBTOa8id.js.map} +1 -1
- package/dist/{secret-reference-immutable-Bk60ZfqH.js → secret-reference-immutable-DSSUW_aD.js} +108 -10
- package/dist/{secret-reference-immutable-Bk60ZfqH.js.map → secret-reference-immutable-DSSUW_aD.js.map} +1 -1
- package/dist/{settle-own-write-members-YQxWAEvB.js → settle-own-write-members-7riYzUx1.js} +10 -10
- package/dist/{settle-own-write-members-YQxWAEvB.js.map → settle-own-write-members-7riYzUx1.js.map} +1 -1
- package/dist/{tag-list-C8pMq_W3.js → tag-list-lOyb6hiQ.js} +4 -4
- package/dist/{tag-list-C8pMq_W3.js.map → tag-list-lOyb6hiQ.js.map} +1 -1
- package/dist/{version-D2qdiEuf.js → version-BO9jLQis.js} +2 -2
- package/dist/{version-D2qdiEuf.js.map → version-BO9jLQis.js.map} +1 -1
- package/package.json +1 -1
- package/dist/ambient-client-defaults-BLKND30a.js.map +0 -1
- package/dist/created-resource-sink-DlVo2nqB.js +0 -1397
- package/dist/created-resource-sink-DlVo2nqB.js.map +0 -1
- package/dist/deploy-engine-BDueF79_.js.map +0 -1
- package/dist/emr-cluster-provider-BcqnxYsN.js.map +0 -1
- package/dist/identity-read-denied-BhnkMyxk.js.map +0 -1
- package/dist/program-avOxa_7W.js.map +0 -1
- package/dist/provider-classes-BMrkl7zN.js.map +0 -1
- package/dist/redacted-delete-address-CkcTwr-O.js.map +0 -1
- package/dist/replacement-rules-BkUZIP44.js.map +0 -1
- package/dist/restore-source-guard-1UD7ucv5.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 { $a as orphanRecordsPrintingBag, $d as loadPublishableAssetManifest, $i as computeParameterTaint, $l as malformedLocalResourceEntriesWarning, $r as sgSiblingDecidedById, $s as regionLessSecretName, $u as findActionableSdkUnwired, A as planReplaceResourceTargets, Ac as deleteRetiredCloudFormationStack, Ad as findNestedTemplateTreeDefect, Af as describeFileReadFailure, Ai as isReplacementOrphan, Al as getSettledWriteOnlyPropertyPaths, An as refactorMarkerMovesOf, Ar as withMovedTo, As as isSelectOutOfBounds, Au as malformedOutputsWarning, B as isProtectionValueActive, Bc as confirmOrRefuse, Bd as findLargeInlineResources, Bi as segmentCleanupOptions, Bl as deployRefusesOrphanRowsReason, Bn as childStackTags, Bo as reReadUntilSettled, Br as proposeRenames, Bs as assertFlagRoleArn, Bu as refuseMalformedResourcesForDeploy, C as warnLegacySpelling, Ca as isSupersededResourceRecord, Cc as mixedSecretRowKeys, Cd as isNotImplemented, Cf as defineOwnKey, Cr as formatChangeCounts, Cs as deleteSkipReason, Cu as refuseMalformedOrphans, D as slashedSsmNameHealPendingNote, Da as supersededHolderOf, Dc as securityDiffWithPassedSecretWithheld, Dd as isSensitiveAttributeName, Df as ownValue, Di as seedsDeleteFirstGuard, Dl as secretPhysicalIdSegment, Dn as recordRetainedForReadoption, Do as revertStackRecordsView, Dr as hintSidesOf, Du as malformedExportSourceWarning, E as slashedSsmNameHealNote, Ea as supersededHeldByOtherTypeWarning, Ec as recordedValuesOf, Ed as isSecretValuedAttribute, Ef as nullPrototypeRecord, Ei as planRollback, En as keptForRetainedRecord, Er as findRefactorHints, Es as isWaitAbandonedError, Eu as malformedExportNamesWarning, F as serviceTokenBlockingReason, Fc as parseCfnTemplate, Fi as IMPLICIT_DELETE_DEPENDENCIES, Fl as parameterInputsFor, Fn as deleteSignalReceiver, Fo as declaredPolicyDocument, Fr as isPairableType, Ft as declaredTagsReadback, Fu as STATE_REGION_DIVERGED, Ga as noEchoParameterNamesOf, Gc as cyan, Gi as nameGenerationHighWaterOf, Gl as previewableOrphanRecords, Gn as formatResourceLine, Gr as noEchoMacParametersOf, Gs as sendableAssumeRoleCommand, Gu as JSON_LISTING_HOLE_VALUE, H as readProtection, Ha as canonicalizeIpProtocolValue, Hc as serializePrompt, Hd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Hi as removeProtectionTypes, Hl as malformedOrphanRecordsRefusalMessage, Hn as macWriteOnlyKeys, Hr as NOECHO_MAC_KEY_ALIAS, Hs as explicitRoleArnOrThrow, Hu as refuseMalformedResourcesForExport, I as diffSecurity, Ia as cfnIngressPortValue, Ic as parseCfnTemplateWithFormat, If as resolveBucketRegion, Ii as computeImplicitDeleteEdges, Il as maskedInputProof, In as isReceiver, Io as efsPolicyMatchesDeclared, Ir as looselyEqual, Is as resolveDynamicReferences, Iu as refuseDivergentRecordRegionForDestroy, Ja as createReadOnlyAttributeHealerFactory, Jc as red, Jd as createAssetRedirectResolver, Ji as retiredNameGenerationsAfter, Jl as refuseMalformedOrphansForOrphan, Jn as resolvePendingCloudControlRequests, Jo as ccBrokenReason, Jr as siblingOwnedRevertDesired, Js as callerEnvCredentials, Ju as STATE_RESOURCES_MALFORMED, Ka as withAttemptedItemsMasked, Kc as gray, Ki as nameScopeOf, Kl as refuseMalformedOrphanRecords, Kn as startForceQuitFlushes, Ko as CC_BROKEN_REASON, Kr as noEchoMacVerdict, Ks as AWS_CREDENTIAL_ENV_KEYS, Ku as accountArgs, L as recordedProtectionEvidence, La as recordedSgRuleId, Lc as stringifyCfnTemplate, Ld as ssmResolvedValueType, Li as typesDeletedBefore, Ln as removeSignalReceiverNamed, Lo as lambdaPermissionMatchesDeclared, Lr as mappingPairs, Ls as producerLookupOver, Lu as malformedRenderedContainersWarning, M as renderUnreplacedTarget, Ma as resolveReplacementOldType, Mc as findReplacedCfnResources, Md as listNestedTemplateRows, Mi as recheckFailedPlan, Ml as tryGetTopLevelWriteOnlyProperties, Mn as refuseRefactorMarker, Mr as changedReferencePath, Ms as poisonRenderedSpellingsCollidingIn, Mu as refuseMalformedOutputs, N as deferredServiceTokenWarning, Na as withPreviousPolicies, Nc as getCloudFormationResourceTree, Nd as renderNestedTemplateTreeDefect, Nf as renderAssemblyPathEscape, Ni as recordUnderIdIsNotOwn, Nl as publicReferencesOf, Nn as sameMove, Nr as changedReferenceReason, Ns as stackIdTailOf, Nu as refuseMalformedOutputsForDestroy, O as scanActiveConsumers, Oa as supersededResourcesOf, Oc as taintedNamesOf, Oi as demoteSupersededOrphans, Ol as secretSegmentsOfState, On as readRefactorMarker, Or as movedToHint, Os as DiffCalculator, Ou as malformedLocalOutputsWarning, P as findServiceTokenRefusals, Pa as findNestedStackTypeChanges, Pc as tryGetCloudFormationResourceMap, Pd as templateIdentity, Pf as resolveAssemblyPath, Pi as replacementNeverSwapped, Pl as maskedPropertyFingerprintsOf, Pn as updateRefactorMarker, Po as declaredMemberDocument, Pr as differingRemedy, Pu as repairMalformedOutputsForReadOnly, Qa as namingSecretsWithRecordedNoEcho, Qc as keepHeldTokenProvenance, Qi as inheritProducerRegions, Ql as isReadableResourceEntry, Qn as dropSettledNestedJournals, Qo as classifyHandleUrl, Qr as sgRuleOwnershipIdentity, Qs as producerRegionsFromState, Qu as hasReadableResources, R as recordedProtectionNote, Ra as sgCidrKey, Rc as SUPERSEDED_COPY_HINT, Rd as CFN_TEMPLATE_BODY_LIMIT, Ri as attemptUsesCompletedCreate, Rl as declaresNoEcho, Rn as settleStackTagChildRuns, Ro as memberReadFailure, Rr as parseMappingFile, Rs as refuseUnreadableCdkCrossAccountRefs, Ru as malformedResourcesWarning, S as refusePendingMovesOut, Sa as holdsSupersededResources, Sc as maskPassedSecretReasons, Sd as isAccessDenied, Si as ledgerForStack, Sr as findDestructiveChanges, Ss as deleteLeftInPlace, Su as malformedOrphansWarning, T as slashedSsmNameHealAdoptedNote, Ta as supersededDependentsFirst, Tc as readsTainted, Td as withStackInstanceIdWithheld, Tf as hasPlainPrototype, Tl as displayPhysicalId, Tn as NestedCleanupQueue, To as destroyStackRecordsView, Tr as orphanedLogicalIds, Ts as getReadOnlyPropertyPaths, Tu as repairMalformedOrphansForReadOnly, Ua as noEchoAttributeNamesOf, Uc as NESTED_STACK_RESOURCE_TYPE$1, Ui as orphanNeedsIdentity, Ul as malformedOrphanRecordsWarning, Un as readsOnlyNoEchoParameters, Uo as verbatimEchoDriftKeys, Ur as createNoEchoValueMacs, Us as isIamRoleArn, Uu as refuseMalformedState, V as perType, Va as canonicalizeIpv4Cidr, Vc as promptYesNo, Vd as uploadCfnTemplate, Vi as removeProtectionTypeList, Vl as isReadableOrphanRecord, Vn as literalRowTags, Vr as referencedLogicalIds, Vs as assertSendableRoleArn, Vu as refuseMalformedResourcesForDestroy, Wa as noEchoComparisonForTemplate, Wc as bold, Wd as decodeListingKey, Wi as nameGenerationCarriedFrom, Wl as malformedOrphanRowsKeptWarning, Wr as noEchoMacBinding, Ws as parseIamRoleArn, Wu as repairMalformedResourcesForReadOnly, Xa as journaledOrphanPrintingBag, Xi as withNameGenerationReached, Xl as unpreviewableOrphanRecords, Xn as displacedOpClause, Xo as wouldReturnToSdkProvider, Xr as undeclaredGrantSiblingMembers, Xs as classifyRecordedSecretRegion, Xu as displayLogicalId, Y as readStreamPolicy, Ya as completedReplayEntries, Yc as yellow, Yd as createLazyAssetModeContext, Yi as retiredNameGenerationsLeaving, Yl as repairMalformedOrphanRecordsForReadOnly, Yn as NESTED_PENDING_PARENT_REASON, Yo as isCustomResource, Yr as stripSiblingOwnedParentMembers, Ys as envCredentialsAreAssumedRole, Yu as UNREADABLE_RESOURCES_MAP_ROW, Za as maskEventTextWithBoundBags, Zc as withPrintingSecrets, Zl as unreadableOrphanRecords, Zn as displacedPhysicalIdShown, Zo as WaitConditionSignalStore, Zr as recordedRuleIdOf, Zs as classifyReplaySecretRegion, Zu as hasReadableOutputs, _ as readRecordedConditionVerdicts, _a as bindingSkippedOutputs, _d as rebuildClientForBucketRegion, _f as readBootstrapMarkerBody, _i as updatePartialMessage, _l as MULTI_REGION_RECREATE_BLOCKED_TYPES, _o as buildFinalSnapshotIdentifier, _r as planOrphanAdoption, _s as CloudControlProvider, _u as refuseMalformedResourcePropertiesForOrphan, a as mergeNoChangeOutputs, aa as exportAliasCollisionScrubWarning, ad as hasNoCloudControlHandlers, ai as DELETED_RESOURCE_REMEDY, al as carriesFetchableDynamicReference, ao as stateSecretNameNeedles, ar as collectNestedChildUnaddressed, as as TemplateNoEchoReresolver, au as refuseMalformedResourceEntriesForDeploy, b as pendingMovesOutOf, ba as maskingRetryLogger, bc as maskPassedSecretChanges, bd as applyCrossPrefixScan, bf as BOOTSTRAP_MARKER_PREFIX, bi as replacementCreateRoutesToCloudControl, bl as renderStatefulReason, br as crossStackReadsForPartialSave, bs as UNSPECIFIED_SKIP_REASON, bu as hasReadableOrphans, c as nestedSsmNameRowNote, ca as secretSafeKeyDisplay, cc as coerceParameterTypedValue, ci as earlyDeletedOld, cl as keepsSecretReferenceToken, co as ATOMIC_FINAL_SNAPSHOT_TYPES, cr as deleteJournaledOrphans, cs as NO_LOCAL_CUSTOM_RESOURCES_FLAG, cu as refuseMalformedResourceEntriesForImportSave, d as makeCanonicalizePropertiesFn, da as exportNameSecretExposure, dc as AWS_NO_VALUE, dd as TemplateParser, df as ensureAssetStorage, di as settleUnsettledPrevious, dl as LEGACY_HANDLE_HEAL_REASON, do as ccRoutedInstanceTakesNoSnapshot, dr as isHandledOrphan, ds as customResourcesRunWithoutApp, du as unreadableResourceEntries, ea as namesAnyDeclaredParameter, ec as withoutLapsedStaleShapeStamp, ed as findHandledUnwrittenCreateOnly, el as recordedOutputReferenceRegions, eo as secretNamePrintingBag, er as nestedChildStackName$1, es as isSignalKey, et as streamPolicyMatchesDeclared, eu as malformedLocalResourcesWarning, f as readDbInstanceAvailabilityZone, fa as isWholeDynamicReferenceValue, fc as cfnRefValueFromPhysicalId, fd as S3StateBackend, ff as buildDenyExternalAccessPolicy, fi as withUnprovenUnsettled, fo as effectiveDeletionPolicy, fr as journaledOrphanLines, fs as localCustomResourceCommand, fu as malformedDriftResourcePropertiesWarning, g as parentSuppliedValues, ga as isExportAliasCollision, gc as lacksRecordedTableArn, gd as hasUnverifiableParameterRefusal, gf as parseBootstrapMarker, gi as undeclaredEmptyObservedKeys, gl as shownType, go as createPreDeleteFinalSnapshot, gr as makeSiblingClaimReader, gu as refuseMalformedResourcePropertiesForExport, h as conditionInputsFrom, ha as collectPublishedOutputNames, hc as lacksRecordedRefArn, hd as hasReasonlessBaselineRefusal, hf as getBootstrapMarkerKey, hi as equalModuloMask, hl as refuseStatefulReplacedReaders, ho as unsupportedFinalSnapshotError, hr as makeForeignHolderScan, hs as withCustomResourceStack, hu as refuseMalformedResourcePropertiesForDrift, i as keptWholeReasonText, ia as displayTextOrWithheld, id as NO_CC_HANDLERS_REASON, if as getDockerImageBySourceHash, ii as replayRollback, il as isImpossibleEmptyStoredAttribute, io as stackSecretNamesMasker, ir as withNestedRevertRun, iu as refuseMalformedResourceEntries, j as refuseStatefulReplaceResourceTargets, ja as snapshotSegmentSurvivors, jc as prepareCloudFormationStackRetirement, jd as isAbsoluteAssetPath, jf as displayAssemblyPath, ji as planFailedOps, jl as getTopLevelKeysHoldingUnreadableCreateOnly, jn as refactorMarkerRefusalMessage, jo as LAMBDA_PERMISSION_STATEMENT_KEYS, jr as changedReferenceInDiff, js as isAlwaysLiveAttribute, k as inRunStackKey, ka as withoutSuperseded, kc as templateMixesDynamicReference, ki as isJournaledOrphan, kl as withSecretPhysicalIdsMaskedInState, kn as readRefactorMarkerOnce, ko as withStackRecords, kr as rollbackOrphanIds, ks as IntrinsicFunctionResolver, ku as malformedOutputsRefusalMessage, l as crossStackOutputProvenanceSource, la as carriedExportAliasExposure, lc as isUnboundTemplateParameter, li as buildReadCurrentStateContext, ll as withSharedDrainBudget, lo as PRE_DELETE_SNAPSHOT_TYPES, lr as dropFailedCommands, lu as refuseMalformedResourceEntriesForOrphan, m as conditionFingerprint, ma as collectDeclaredOutputNames, mc as refStateLookupFromResource, md as readOnlyStateVersionOf, mf as isCrossRegionRedirect, mi as equalModuloMarkedMask, ml as findReplacedReadersOfRecreateTargets, mo as refusesFinalSnapshot, mr as sameJournaledOrphans, ms as setLocalCustomResourceRuntimeEnabled, mu as refuseMalformedResourcePropertiesForDestroy, n as applyStackTagsToTemplate, na as resourcesNamingDeclaredParameter, nd as unwrittenCreateOnlyReplacement, nf as rewriteTemplateAssetReferences, nl as withoutVersionAttestation, ns as applyCustomResourceResponseExpiration, nu as malformedScrubResourceEntriesRefusalMessage, o as checkNestedSsmNames, oa as secretBearing, od as PROPERTY_COVERAGE_BY_TYPE, oi as PLANNED_EARLY_DELETE_CONSEQUENCE, ol as isNamelessDynamicReferenceError, oo as storedSecretNameNeedles, or as getCurrentNestedStackContext, os as readsNoEchoDeleteValues, ou as refuseMalformedResourceEntriesForDestroy, p as healZonelessDbInstanceRecords, pa as noEchoParameterValueSeed, pc as isStalePlaceholderArnAttribute, pd as splitImportedOps, pf as assertAssetBucketRegion, pi as calculateResourceDrift, po as isFinalSnapshotError, pr as loadJournaledOrphans, pu as malformedResourcePropertiesWarning, qa as noEchoExactEchoLeavesOf, qc as green, qd as buildAssetRedirectMap, qi as retiredAfterRollback, ql as refuseMalformedOrphanRecordsForDestroy, qn as pendingRequestCount, qo as ProviderRegistry, qr as noEchoValueMacsOf, qs as applyCallerIdentityCredentials, qu as withheldAccountClause, r as isSecretBearingReferenceString, ra as WITHHELD_NAME_DISPLAY, rf as AssetManifestLoader, ri as replayFailedOperations, rl as getAccountInfo, ro as secretNamedRecordNeedles, rr as revertedNestedRowIds, rs as customResourceResponseExpirationWarning, ru as refuseMalformedResourceAttributesForOrphan, s as nestedSsmNameDeferredNote, sa as secretBearingStateKeyWarning, sd as providerReplacementOldDeleted, si as earlyDeleteWhen, sl as carriesDynamicReference, so as extractDeploymentEventError, sr as withNestedStackContext, ss as isCustomResourceType$1, su as refuseMalformedResourceEntriesForImport, t as DeployEngine, ta as reachableDivergentParameters, tc as isUnexposedRecordedIdentity, ti as siblingRecordedSgRuleIds, tl as recordedReferenceRegions, to as secretNamePrintingBags, tr as recordDisplacedSkips, ts as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, tu as malformedResourceEntriesWarning, u as inheritedProvenanceForChildDiff, ua as exportNameNoEchoParameters, uc as parameterTypeMayLoseSecretIdentity, uf as AssetModeResolver, ui as recordAfterRollbackUpdate, ul as INTRINSIC_KEYS, uo as ccRoutedFinalSnapshotError, ur as dropFailedHint, us as customResourcesFailedWithoutApp, uu as repairMalformedResourceEntriesForReadOnly, v as childTemplateLoader, va as DEFAULT_RESOURCE_TIMEOUT_MS, vc as calculatorMaskingPassedSecretLines, vd as CrossPrefixReadError, vf as validateAssetBucketName, vi as updatePartialReason, vl as isStatefulRecreateTargetForReplace, vr as DeploymentEventsReader, vu as repairMalformedResourcePropertiesForReadOnly, w as healSlashedSsmParameterNames, wa as supersededAfterRollback, wc as mixedSecretTagKeys, wd as stackInstanceIdOf, wf as hasOwnKey, wi as withCreateTokenLedger, wr as formatDestructiveChange, wu as refuseMalformedOrphansForDestroy, x as pendingMovesRefusalMessage, xa as deleteSupersededEntry, xc as maskPassedSecretOutputs, xd as crossPrefixDeniedWarning, xr as constructPathOf$1, xs as deleteIndeterminateGuards, xu as malformedOrphansRefusalMessage, y as hasPendingMovesOut, ya as DEFAULT_RESOURCE_WARN_AFTER_MS, yc as crossStackTaintSeeds, yd as CrossPrefixScanCache, yf as validateContainerRepoName, yi as findUpdatePolicyReplacementRefusals, yl as isStatefulRecreateTargetSync, yr as DeploymentEventsStore, ys as RollbackInlinePolicyWriters, yu as UNREADABLE_ORPHANS_CONTAINER_ROW, z as PROTECTION_PROPERTY_BY_TYPE, za as sgProtocolKey, zc as cfnFailureText, zd as CFN_TEMPLATE_URL_LIMIT, zi as readsRegeneratingSecret, zl as maskedPropertyFingerprint, zo as policyDocumentMatchesDeclared, zr as propertiesChangedReason, zs as applyRoleArnIfSet, zt as tagsMatchDeclared, zu as malformedStateRefusalMessage } from "./deploy-engine-BDueF79_.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");
|
|
@@ -3969,7 +3969,7 @@ var CrossStackPreview = class {
|
|
|
3969
3969
|
this.taintedOutputs.add(outputKey);
|
|
3970
3970
|
if (exportName === null) this.everyExportTainted = true;
|
|
3971
3971
|
else if (exportName !== void 0) this.taintedExports.add(exportName);
|
|
3972
|
-
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));
|
|
3973
3973
|
return added;
|
|
3974
3974
|
}
|
|
3975
3975
|
exportValue(region, name) {
|
|
@@ -3996,7 +3996,7 @@ function previewProducerValues(input) {
|
|
|
3996
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);
|
|
3997
3997
|
const producerStack = input.stackName;
|
|
3998
3998
|
const stored = input.storedOutputs ?? {};
|
|
3999
|
-
const verdict = (desired) => isScalar$1(desired) && desired
|
|
3999
|
+
const verdict = (desired) => isScalar$1(desired) && !isMaskLeaf(desired) && !mentionsDynamicReference(String(desired)) && !input.holdsSecret(String(desired)) ? {
|
|
4000
4000
|
kind: "known",
|
|
4001
4001
|
value: desired,
|
|
4002
4002
|
producerStack
|
|
@@ -4020,7 +4020,7 @@ function previewProducerValues(input) {
|
|
|
4020
4020
|
};
|
|
4021
4021
|
else if (Object.hasOwn(input.desiredOutputs, outputName)) {
|
|
4022
4022
|
const desired = input.desiredOutputs[outputName];
|
|
4023
|
-
if (stored[outputName]
|
|
4023
|
+
if (isMaskLeaf(stored[outputName]) || desired === void 0) continue;
|
|
4024
4024
|
if (JSON.stringify(desired) !== JSON.stringify(stored[outputName])) previewed = verdict(desired);
|
|
4025
4025
|
else if (exportName !== void 0 && !Object.hasOwn(stored, exportName)) {
|
|
4026
4026
|
exports.set(exportName, verdict(desired));
|
|
@@ -4600,7 +4600,7 @@ async function resolveTemplateOutputs(template, resolveFn, conditions, storedOut
|
|
|
4600
4600
|
let resolutionFailed = false;
|
|
4601
4601
|
let passResolvesSecret = false;
|
|
4602
4602
|
const spellsToken = (raw) => {
|
|
4603
|
-
if (typeof raw === "string") return raw
|
|
4603
|
+
if (typeof raw === "string") return mentionsDynamicReference(raw);
|
|
4604
4604
|
if (Array.isArray(raw)) return raw.some(spellsToken);
|
|
4605
4605
|
if (raw !== null && typeof raw === "object") return Object.values(raw).some(spellsToken);
|
|
4606
4606
|
return false;
|
|
@@ -4933,7 +4933,7 @@ function makeTrustClassifier(options) {
|
|
|
4933
4933
|
if (dot > 0) return resourceLeaf(name.slice(0, dot), name.slice(dot + 1));
|
|
4934
4934
|
return resourceLeaf(name, void 0);
|
|
4935
4935
|
};
|
|
4936
|
-
const literalTrusted = (text) => !text
|
|
4936
|
+
const literalTrusted = (text) => !mentionsDynamicReferenceTo(text, "ssm");
|
|
4937
4937
|
const subTrusted = (template, locals) => {
|
|
4938
4938
|
if (typeof template !== "string" || !literalTrusted(template)) return false;
|
|
4939
4939
|
for (const match of template.matchAll(/\$\{([^}]*)\}/g)) {
|
|
@@ -5922,6 +5922,58 @@ async function computeStackDiff(loadedState, template, region, stackName, stateB
|
|
|
5922
5922
|
};
|
|
5923
5923
|
}
|
|
5924
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
|
+
|
|
5925
5977
|
// src/cli/commands/diff-recursive/load-state.ts
|
|
5926
5978
|
async function loadStateOrEmpty(stackName, region, stateBackend, refusalRecovery) {
|
|
5927
5979
|
const refactorMarker = readRefactorMarkerOnce(stateBackend);
|
|
@@ -6212,7 +6264,9 @@ async function buildDiffTree(args) {
|
|
|
6212
6264
|
for (const [logicalId, resource] of Object.entries(state.resources ?? {})) {
|
|
6213
6265
|
if (resource.resourceType !== "AWS::CloudFormation::Stack") continue;
|
|
6214
6266
|
if (templateChildIds.has(logicalId)) continue;
|
|
6215
|
-
|
|
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);
|
|
6216
6270
|
}
|
|
6217
6271
|
return node;
|
|
6218
6272
|
}
|
|
@@ -7185,7 +7239,7 @@ function planExportIndexRepair(entries, stackName, producerRegion, outputs) {
|
|
|
7185
7239
|
continue;
|
|
7186
7240
|
}
|
|
7187
7241
|
const stateValue = outputs[exportName];
|
|
7188
|
-
if (!carriesDynamicReference(stateValue) && !
|
|
7242
|
+
if (!carriesDynamicReference(stateValue) && !holdsMaskLeaf(stateValue)) continue;
|
|
7189
7243
|
if (JSON.stringify(entry.value) === JSON.stringify(stateValue)) continue;
|
|
7190
7244
|
findings.push({
|
|
7191
7245
|
kind: "converge",
|
|
@@ -7555,20 +7609,19 @@ function regionAmbiguousScrubSecretError(origin, stackName, secretName, foreignP
|
|
|
7555
7609
|
function unresolvableForeignScrubSecretError(origin, stackName, secretName, region, cause, secrets, recorded = false) {
|
|
7556
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");
|
|
7557
7611
|
}
|
|
7558
|
-
const
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
`${DYNAMIC_REFERENCE_OPENING}ssm-secure:`
|
|
7612
|
+
const SECRET_REFERENCE_SERVICES = [
|
|
7613
|
+
"secretsmanager",
|
|
7614
|
+
"ssm",
|
|
7615
|
+
"ssm-secure"
|
|
7563
7616
|
];
|
|
7564
7617
|
const SUB_PLACEHOLDER_OPENING = "${";
|
|
7565
7618
|
function countSecretReferenceOpenings(leaf) {
|
|
7566
7619
|
let count = 0;
|
|
7567
|
-
for (const
|
|
7620
|
+
for (const service of SECRET_REFERENCE_SERVICES) count += countDynamicReferenceOpenings(leaf, service);
|
|
7568
7621
|
return count;
|
|
7569
7622
|
}
|
|
7570
7623
|
function isSecretReferenceToken(token) {
|
|
7571
|
-
return
|
|
7624
|
+
return SECRET_REFERENCE_SERVICES.some((service) => opensDynamicReferenceTo(token, service));
|
|
7572
7625
|
}
|
|
7573
7626
|
function isAssembledSecretReference(leaf, secretTokens) {
|
|
7574
7627
|
return countSecretReferenceOpenings(leaf) !== secretTokens.length || secretTokens.some((token) => token.includes(SUB_PLACEHOLDER_OPENING));
|
|
@@ -7621,7 +7674,7 @@ async function resolveForeignRegionTokens(leaf, stackName, ctx) {
|
|
|
7621
7674
|
async function pinCrossRegionSecrets(bag, stackName, ctx) {
|
|
7622
7675
|
const walk = async (v) => {
|
|
7623
7676
|
if (typeof v === "string") {
|
|
7624
|
-
if (!v
|
|
7677
|
+
if (!mentionsDynamicReference(v)) return v;
|
|
7625
7678
|
return await resolveForeignRegionTokens(v, stackName, ctx);
|
|
7626
7679
|
}
|
|
7627
7680
|
if (Array.isArray(v)) {
|
|
@@ -7819,7 +7872,7 @@ function producerPublishesSecretExpression(templates, exportOwners, producerStac
|
|
|
7819
7872
|
} else continue;
|
|
7820
7873
|
for (const rawSubject of subjects) {
|
|
7821
7874
|
const subject = selectTakenConditionalBranches(rawSubject);
|
|
7822
|
-
if (
|
|
7875
|
+
if (valueMentionsDynamicReference(subject ?? null)) {
|
|
7823
7876
|
if (widened) return {
|
|
7824
7877
|
kind: "widened",
|
|
7825
7878
|
via: frame.via
|
|
@@ -8360,6 +8413,86 @@ async function scrubStackResolvePass({ stack, region, logger, newBag, perResourc
|
|
|
8360
8413
|
};
|
|
8361
8414
|
}
|
|
8362
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
|
+
|
|
8363
8496
|
// src/cli/commands/scrub/cross-stack-findings.ts
|
|
8364
8497
|
function literalParts(value, tokens) {
|
|
8365
8498
|
const parts = [];
|
|
@@ -8457,7 +8590,7 @@ function planScrubNoEcho(state, template, templateProps, conditions, passedParam
|
|
|
8457
8590
|
attributeIsNoEcho: (id, attribute) => declared.get(id)?.has(attribute) === true,
|
|
8458
8591
|
...Object.keys(conditions).length > 0 && { conditions }
|
|
8459
8592
|
};
|
|
8460
|
-
const persisted = (value) =>
|
|
8593
|
+
const persisted = (value) => holdsMaskLeaf(value) || typeof value === "string" && isSingleDynamicReferenceToken(value);
|
|
8461
8594
|
const templateResources = template.Resources ?? {};
|
|
8462
8595
|
const eligible = Object.entries(resources).filter(([logicalId, record]) => templateProps.has(logicalId) && Object.hasOwn(templateResources, logicalId) && templateResources[logicalId]?.Type === record.resourceType);
|
|
8463
8596
|
const positionFrom = (params, names) => {
|
|
@@ -8747,18 +8880,18 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
|
|
|
8747
8880
|
const ownSecrets = secrets ?? /* @__PURE__ */ new Map();
|
|
8748
8881
|
const positioned = templateProps ? {
|
|
8749
8882
|
...record,
|
|
8750
|
-
properties: redactForState(record.properties, {
|
|
8883
|
+
properties: positionTwinReferences(record.properties, redactForState(record.properties, {
|
|
8751
8884
|
provenance: "template-sourced",
|
|
8752
8885
|
secrets: ownSecrets,
|
|
8753
8886
|
source: templateProps,
|
|
8754
8887
|
generation: "unproven"
|
|
8755
|
-
})
|
|
8888
|
+
}), templateProps, ownSecrets)
|
|
8756
8889
|
} : record;
|
|
8757
|
-
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", {
|
|
8758
8891
|
properties: "unproven",
|
|
8759
8892
|
observed: "unproven",
|
|
8760
8893
|
propertiesPositioned: templateProps !== void 0
|
|
8761
|
-
}) : record;
|
|
8894
|
+
}), record, templateProps && positioned.properties, ownSecrets) : record;
|
|
8762
8895
|
const scrubbed = templateProps && record.observedProperties && walked.observedProperties ? {
|
|
8763
8896
|
...walked,
|
|
8764
8897
|
observedProperties: keepTemplateLiteralLeaves(walked.observedProperties, record.observedProperties, templateProps, ownSecrets)
|
|
@@ -8769,7 +8902,10 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
|
|
|
8769
8902
|
properties: "unproven",
|
|
8770
8903
|
observed: "unproven"
|
|
8771
8904
|
});
|
|
8772
|
-
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));
|
|
8773
8909
|
const written = JSON.stringify(rewritten) === JSON.stringify(record) ? rewritten : withoutLapsedStaleShapeStamp(rewritten);
|
|
8774
8910
|
if (JSON.stringify(written) !== JSON.stringify(record)) recordsChanged++;
|
|
8775
8911
|
newResources[logicalId] = written;
|
|
@@ -8913,7 +9049,7 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
|
|
|
8913
9049
|
for (const key of Object.keys(after)) {
|
|
8914
9050
|
const was = before[key];
|
|
8915
9051
|
const now = after[key];
|
|
8916
|
-
if (typeof was === "string" && typeof now === "string" && now
|
|
9052
|
+
if (typeof was === "string" && typeof now === "string" && mentionsDynamicReference(now) && !mentionsDynamicReference(was)) outputRewrites.set(now, was);
|
|
8917
9053
|
}
|
|
8918
9054
|
}
|
|
8919
9055
|
if (outputsChanged) recordsChanged++;
|
|
@@ -9724,7 +9860,7 @@ function notComparedOutcomes(report) {
|
|
|
9724
9860
|
function outcomeExitSignal(outcome) {
|
|
9725
9861
|
return matchOutcome(outcome, {
|
|
9726
9862
|
drifted: () => "drifted",
|
|
9727
|
-
notCompared: (n) => n.notComparedCause === "unresolvedToken" || n.notComparedCause === "noEchoParameter" ? "none" : "incomplete",
|
|
9863
|
+
notCompared: (n) => n.notComparedCause === "unresolvedToken" || n.notComparedCause === "noEchoParameter" || n.notComparedCause === "maskedEcho" ? "none" : "incomplete",
|
|
9728
9864
|
clean: () => "none",
|
|
9729
9865
|
unsupported: () => "incomplete",
|
|
9730
9866
|
skipped: () => "none",
|
|
@@ -9772,6 +9908,10 @@ const UNCOMPARED_REASONS = {
|
|
|
9772
9908
|
kind: "unknown",
|
|
9773
9909
|
phrase: "only PARTIALLY compared: their state holds a NoEcho parameter value only as the redaction mask, which no re-run can clear"
|
|
9774
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
|
+
},
|
|
9775
9915
|
skipped: {
|
|
9776
9916
|
kind: "byDesign",
|
|
9777
9917
|
phrase: "not compared AT ALL: cdkd does not drift-check the type"
|
|
@@ -9782,6 +9922,7 @@ const ANY_OF_IT_COMPARED = {
|
|
|
9782
9922
|
unresolvedToken: true,
|
|
9783
9923
|
uncertifiedBaseline: true,
|
|
9784
9924
|
noEchoParameter: true,
|
|
9925
|
+
maskedEcho: true,
|
|
9785
9926
|
readFailed: false,
|
|
9786
9927
|
readAborted: false,
|
|
9787
9928
|
baselineRefused: false,
|
|
@@ -10845,7 +10986,11 @@ const OWN_WRITE_MEMBERS = new Map(Object.entries({
|
|
|
10845
10986
|
}
|
|
10846
10987
|
}],
|
|
10847
10988
|
"AWS::Events::EventBus": [documentHeal("Policy")],
|
|
10848
|
-
"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
|
+
}]
|
|
10849
10994
|
}));
|
|
10850
10995
|
function staleTablePolicyBaseline(observed, properties, aws) {
|
|
10851
10996
|
const recorded = readStreamPolicy(observed);
|
|
@@ -10938,7 +11083,7 @@ function declaredTrueProperties(properties) {
|
|
|
10938
11083
|
|
|
10939
11084
|
// src/cli/commands/drift/secret-resolution.ts
|
|
10940
11085
|
function containsDynamicReference$1(value) {
|
|
10941
|
-
if (typeof value === "string") return value
|
|
11086
|
+
if (typeof value === "string") return mentionsDynamicReference(value);
|
|
10942
11087
|
if (Array.isArray(value)) return value.some(containsDynamicReference$1);
|
|
10943
11088
|
if (value !== null && typeof value === "object") return Object.values(value).some(containsDynamicReference$1);
|
|
10944
11089
|
return false;
|
|
@@ -10955,7 +11100,7 @@ function survivingDynamicReferences(value) {
|
|
|
10955
11100
|
}
|
|
10956
11101
|
function collectDynamicReferencePaths(value, into, path = "") {
|
|
10957
11102
|
if (typeof value === "string") {
|
|
10958
|
-
if (value
|
|
11103
|
+
if (mentionsDynamicReference(value)) into.add(path);
|
|
10959
11104
|
return;
|
|
10960
11105
|
}
|
|
10961
11106
|
if (Array.isArray(value)) {
|
|
@@ -10966,7 +11111,7 @@ function collectDynamicReferencePaths(value, into, path = "") {
|
|
|
10966
11111
|
}
|
|
10967
11112
|
function collectSecretMaskPaths(value, into, path = "") {
|
|
10968
11113
|
if (typeof value === "string") {
|
|
10969
|
-
if (value
|
|
11114
|
+
if (isMaskLeaf(value)) into.add(path);
|
|
10970
11115
|
return;
|
|
10971
11116
|
}
|
|
10972
11117
|
if (Array.isArray(value)) {
|
|
@@ -11095,7 +11240,7 @@ async function resolveStateSecretExpressions(props, resolvers, secrets, options)
|
|
|
11095
11240
|
};
|
|
11096
11241
|
const walk = async (v, path) => {
|
|
11097
11242
|
if (typeof v === "string") {
|
|
11098
|
-
if (!v
|
|
11243
|
+
if (!mentionsDynamicReference(v)) return v;
|
|
11099
11244
|
refuseUnprovenDriftSecret(v, path, logicalId, consumerRegion, producerRegions, recordedRegions);
|
|
11100
11245
|
const resolved = await resolveDriftLeafByRegion(v, path, logicalId, consumerRegion, producerRegions.regions, resolvers, ctx, recordedRegions);
|
|
11101
11246
|
const survivors = survivingDynamicReferences(resolved).filter((t) => v.includes(t));
|
|
@@ -11139,7 +11284,12 @@ function refusedBaselineRemedy(record) {
|
|
|
11139
11284
|
|
|
11140
11285
|
// src/cli/commands/drift/redaction.ts
|
|
11141
11286
|
function noEchoPathsClause(record) {
|
|
11142
|
-
|
|
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) {
|
|
11143
11293
|
if (marked === void 0 || marked.length === 0) return "";
|
|
11144
11294
|
return ` at ${marked.map((coordinate) => coordinate.map((segment, i) => typeof segment === "number" ? `[${segment}]` : i === 0 ? segment : `.${segment}`).join("")).map((path) => displaySafe(path)).join(", ")}`;
|
|
11145
11295
|
}
|
|
@@ -11157,38 +11307,62 @@ function revertPathSegments(path) {
|
|
|
11157
11307
|
return segments;
|
|
11158
11308
|
}
|
|
11159
11309
|
function partitionNoEchoParameterChanges(changes, record, baseline) {
|
|
11160
|
-
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) {
|
|
11161
11335
|
if (marked === void 0 || marked.length === 0) return {
|
|
11162
11336
|
kept: changes,
|
|
11163
|
-
|
|
11337
|
+
paths: []
|
|
11164
11338
|
};
|
|
11165
|
-
const properties = record.properties ?? {};
|
|
11166
11339
|
const isMarked = (coordinate) => isMarkedCoordinate(coordinate, marked) || marked.some((leaf) => leaf.length > coordinate.length && coordinate.every((segment, i) => String(segment) === String(leaf[i])));
|
|
11167
11340
|
const isWithinMarked = (coordinate) => marked.some((leaf) => leaf.length <= coordinate.length && leaf.every((segment, i) => String(segment) === String(coordinate[i])));
|
|
11168
11341
|
const kept = [];
|
|
11169
|
-
const
|
|
11342
|
+
const paths = [];
|
|
11170
11343
|
for (const change of changes) {
|
|
11171
|
-
const
|
|
11172
|
-
|
|
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) => {
|
|
11173
11347
|
const n = Math.min(leaf.length, coordinate.length);
|
|
11174
11348
|
for (let i = 0; i < n; i++) if (leaf[i] !== coordinate[i]) return false;
|
|
11175
11349
|
return true;
|
|
11176
|
-
}) &&
|
|
11177
|
-
|
|
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);
|
|
11178
11352
|
continue;
|
|
11179
11353
|
}
|
|
11180
11354
|
kept.push(change);
|
|
11181
11355
|
}
|
|
11182
11356
|
return {
|
|
11183
11357
|
kept,
|
|
11184
|
-
|
|
11358
|
+
paths
|
|
11185
11359
|
};
|
|
11186
11360
|
}
|
|
11187
11361
|
function partitionUncertifiedBaselineChanges(changes, properties, baseline) {
|
|
11188
11362
|
const kept = [];
|
|
11189
11363
|
const uncertifiedPaths = [];
|
|
11190
11364
|
for (const change of changes) {
|
|
11191
|
-
if (
|
|
11365
|
+
if (holdsMaskLeaf(change.stateValue) && isUncertifiedBaselineMaskPosition(properties, change.path) && !pathCrossesDottedKey(baseline, change.path) && equalModuloMask(change.stateValue, change.awsValue, "***")) {
|
|
11192
11366
|
uncertifiedPaths.push(change.path);
|
|
11193
11367
|
continue;
|
|
11194
11368
|
}
|
|
@@ -11216,13 +11390,13 @@ function redactDriftValue(value, secrets, secretBearing) {
|
|
|
11216
11390
|
}
|
|
11217
11391
|
function acceptRefusalReason(change, maskedPaths) {
|
|
11218
11392
|
if (!maskedPaths.has(change.path)) return void 0;
|
|
11219
|
-
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";
|
|
11220
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";
|
|
11221
|
-
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";
|
|
11222
11396
|
return "it carries a secret dynamic reference and the value AWS currently holds is not the one the reference resolves to";
|
|
11223
11397
|
}
|
|
11224
11398
|
function redactDriftChanges(changes, secrets, secretPaths, maskPaths) {
|
|
11225
|
-
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 {
|
|
11226
11400
|
changes,
|
|
11227
11401
|
maskedPaths: /* @__PURE__ */ new Set()
|
|
11228
11402
|
};
|
|
@@ -11232,12 +11406,12 @@ function redactDriftChanges(changes, secrets, secretPaths, maskPaths) {
|
|
|
11232
11406
|
const maskedPath = maskSecretsInText(change.path, secrets);
|
|
11233
11407
|
const positionIsSecret = isSecretBearingPath(change.path, secretPaths) || isSecretBearingPath(change.path, maskPaths);
|
|
11234
11408
|
const nameCarriesSecret = maskedPath !== change.path;
|
|
11235
|
-
const stateValueIsMask =
|
|
11409
|
+
const stateValueIsMask = holdsMaskLeaf(change.stateValue);
|
|
11236
11410
|
const secretBearing = positionIsSecret || nameCarriesSecret || stateValueIsMask;
|
|
11237
11411
|
if (secretPaths.has(change.path) && change.awsValue === void 0) continue;
|
|
11238
11412
|
const stateValue = redactDriftValue(change.stateValue, secrets, secretBearing);
|
|
11239
11413
|
const awsValue = redactDriftValue(change.awsValue, secrets, secretBearing);
|
|
11240
|
-
if (maskedPath !== change.path || secretBearing && awsValue
|
|
11414
|
+
if (maskedPath !== change.path || secretBearing && isMaskLeaf(awsValue) || secretBearing && change.awsValue === void 0) maskedPaths.add(maskedPath);
|
|
11241
11415
|
redacted.push({
|
|
11242
11416
|
path: maskedPath,
|
|
11243
11417
|
stateValue,
|
|
@@ -11249,11 +11423,30 @@ function redactDriftChanges(changes, secrets, secretPaths, maskPaths) {
|
|
|
11249
11423
|
maskedPaths
|
|
11250
11424
|
};
|
|
11251
11425
|
}
|
|
11252
|
-
function maskMarkedNoEchoBaseline(baseline, record, observed) {
|
|
11426
|
+
function maskMarkedNoEchoBaseline(baseline, record, observed, live) {
|
|
11253
11427
|
const marked = noEchoLeavesOf(record) ?? [];
|
|
11254
11428
|
if (observed) {
|
|
11255
11429
|
const coordinates = [...marked, ...maskedLeafCoordinatesOf(record.properties ?? {})];
|
|
11256
|
-
|
|
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);
|
|
11257
11450
|
}
|
|
11258
11451
|
if (marked.length === 0) return baseline;
|
|
11259
11452
|
const recorded = record.properties ?? {};
|
|
@@ -11284,6 +11477,7 @@ function notComparedReason(cause, record) {
|
|
|
11284
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)",
|
|
11285
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}`),
|
|
11286
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)`,
|
|
11287
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)"
|
|
11288
11482
|
}[cause];
|
|
11289
11483
|
}
|
|
@@ -12038,15 +12232,15 @@ async function runAccept(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
12038
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.`);
|
|
12039
12233
|
}
|
|
12040
12234
|
if (recordedChanges > 0) acceptedResourceCount++;
|
|
12041
|
-
const written = maskMarkedNoEchoBaseline(redactedBaseline, existing, true);
|
|
12235
|
+
const written = maskMarkedNoEchoBaseline(redactedBaseline, existing, true, outcome.awsProperties);
|
|
12042
12236
|
const settled = await settleUnsettled(existing, outcome.logicalId, () => regionScope(report.region).registry.getProviderFor({
|
|
12043
12237
|
resourceType: outcome.resourceType,
|
|
12044
12238
|
provisionedBy: existing.provisionedBy
|
|
12045
12239
|
}).provider);
|
|
12046
|
-
resources[outcome.logicalId] = {
|
|
12240
|
+
resources[outcome.logicalId] = withOffTemplateEchoesMasked({
|
|
12047
12241
|
...settled,
|
|
12048
12242
|
observedProperties: written
|
|
12049
|
-
};
|
|
12243
|
+
}, { readback: outcome.awsProperties }, /* @__PURE__ */ new Set([report.region, report.stackName]));
|
|
12050
12244
|
}
|
|
12051
12245
|
const { skippedOutputs: _droppedByAccept, ...carriedState } = report.state;
|
|
12052
12246
|
const newState = {
|
|
@@ -12068,7 +12262,7 @@ async function runAccept(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
12068
12262
|
}
|
|
12069
12263
|
|
|
12070
12264
|
// src/cli/commands/drift/revert-live-values.ts
|
|
12071
|
-
function pairedLiveItems(send, live, wildcardLeaf = isMaskLeaf, carriesWildcard =
|
|
12265
|
+
function pairedLiveItems(send, live, wildcardLeaf = isMaskLeaf, carriesWildcard = holdsMaskLeaf, acceptForcedSingleton = false) {
|
|
12072
12266
|
if (!Array.isArray(live)) return void 0;
|
|
12073
12267
|
if (acceptForcedSingleton && send.length === 1 && live.length === 1) return live;
|
|
12074
12268
|
const key = identityKeyFor(send, live);
|
|
@@ -12092,12 +12286,9 @@ function pairedLiveItems(send, live, wildcardLeaf = isMaskLeaf, carriesWildcard
|
|
|
12092
12286
|
if (wildcardSlots > 1 || compared === 0) return void 0;
|
|
12093
12287
|
return live;
|
|
12094
12288
|
}
|
|
12095
|
-
function isMaskLeaf(leaf) {
|
|
12096
|
-
return leaf === "***";
|
|
12097
|
-
}
|
|
12098
12289
|
function isTokenOrMaskLeaf(leaf) {
|
|
12099
|
-
if (leaf
|
|
12100
|
-
return typeof leaf === "string" && leaf
|
|
12290
|
+
if (isMaskLeaf(leaf)) return true;
|
|
12291
|
+
return typeof leaf === "string" && mentionsDynamicReference(leaf) && isSingleDynamicReferenceToken(leaf);
|
|
12101
12292
|
}
|
|
12102
12293
|
function carriesTokenOrMask(value) {
|
|
12103
12294
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -12151,7 +12342,7 @@ function overlayLiveAtUncertifiedPaths(send, uncertifiedPaths, awsProperties, ba
|
|
|
12151
12342
|
}
|
|
12152
12343
|
const needles = [];
|
|
12153
12344
|
const collect = (b, l) => {
|
|
12154
|
-
if (b
|
|
12345
|
+
if (isMaskLeaf(b)) {
|
|
12155
12346
|
if (typeof l === "string") needles.push(l);
|
|
12156
12347
|
else recordMaskOnlyLiveSubtree(l, secrets, spelledKeys);
|
|
12157
12348
|
return;
|
|
@@ -12218,14 +12409,14 @@ function withValueAtPath(bag, path, value) {
|
|
|
12218
12409
|
return out;
|
|
12219
12410
|
}
|
|
12220
12411
|
function preserveLiveValuesAtMaskedLeaves(send, awsProperties, secrets, corroborationSource = send, spelledKeys) {
|
|
12221
|
-
if (!
|
|
12412
|
+
if (!holdsMaskLeaf(send)) return {
|
|
12222
12413
|
properties: send,
|
|
12223
12414
|
unpreservablePaths: []
|
|
12224
12415
|
};
|
|
12225
12416
|
const unpreservablePaths = [];
|
|
12226
12417
|
let changed = false;
|
|
12227
12418
|
const walk = (value, corr, live, path) => {
|
|
12228
|
-
if (value
|
|
12419
|
+
if (isMaskLeaf(value)) {
|
|
12229
12420
|
if (live === void 0) {
|
|
12230
12421
|
unpreservablePaths.push(path);
|
|
12231
12422
|
return value;
|
|
@@ -12242,7 +12433,7 @@ function preserveLiveValuesAtMaskedLeaves(send, awsProperties, secrets, corrobor
|
|
|
12242
12433
|
}
|
|
12243
12434
|
if (value !== null && typeof value === "object") {
|
|
12244
12435
|
if (!hasPlainPrototype(value)) {
|
|
12245
|
-
if (
|
|
12436
|
+
if (holdsMaskLeaf(value)) unpreservablePaths.push(path);
|
|
12246
12437
|
return value;
|
|
12247
12438
|
}
|
|
12248
12439
|
const liveObject = isPlainRecord$2(live) ? live : void 0;
|
|
@@ -12384,7 +12575,7 @@ function mergeUntemplatedValue(awsValue, desiredValue) {
|
|
|
12384
12575
|
}
|
|
12385
12576
|
function preserveLiveValuesAtUnresolvedTokens(send, awsProperties, unresolvedTokens, secrets) {
|
|
12386
12577
|
const walk = (value, live) => {
|
|
12387
|
-
if (typeof value === "string" && value
|
|
12578
|
+
if (typeof value === "string" && mentionsDynamicReference(value)) {
|
|
12388
12579
|
if (!isSingleDynamicReferenceToken(value)) return typeof live === "string" && liveMatchesUnresolvedTokenFrame(value, live, unresolvedTokens, secrets) ? live : value;
|
|
12389
12580
|
if (live === void 0) return value;
|
|
12390
12581
|
return typeof live === "string" ? live : value;
|
|
@@ -12494,8 +12685,8 @@ function keepRecordedAttributesOverMask(redacted, plaintext, recorded, noEchoDec
|
|
|
12494
12685
|
const out = { ...redacted };
|
|
12495
12686
|
for (const key of Object.keys(redacted)) {
|
|
12496
12687
|
if (noEchoDeclared?.has(key)) continue;
|
|
12497
|
-
if (!hasOwnKey(recorded, key) || !
|
|
12498
|
-
if (
|
|
12688
|
+
if (!hasOwnKey(recorded, key) || !holdsMaskLeaf(redacted[key])) continue;
|
|
12689
|
+
if (holdsMaskLeaf(recorded[key])) continue;
|
|
12499
12690
|
if (sameRecordedJson(plaintext[key], recorded[key])) defineOwnKey(out, key, recorded[key]);
|
|
12500
12691
|
}
|
|
12501
12692
|
return out;
|
|
@@ -12507,7 +12698,10 @@ function sameRecordedJson(candidate, recorded) {
|
|
|
12507
12698
|
// src/cli/commands/drift/compare.ts
|
|
12508
12699
|
async function compareDriftReadback(args) {
|
|
12509
12700
|
const { region, resolvePrincipalUniqueId, outcomes, logger, secretResolvers, producerRegions, stackSecretNames, resource, logicalId, provider, secrets, printing, aws, readContext, readOnlyPathsLookup, writeOnlyPathsLookup, notComparedPolicyArns } = args;
|
|
12510
|
-
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
|
+
}) : [];
|
|
12511
12705
|
const unorderedPaths = provider.getDriftUnorderedPaths ? provider.getDriftUnorderedPaths(resource.resourceType) : [];
|
|
12512
12706
|
const useObserved = resource.observedProperties !== void 0;
|
|
12513
12707
|
const baseline = useObserved ? resource.observedProperties : resource.properties ?? {};
|
|
@@ -12586,10 +12780,14 @@ async function compareDriftReadback(args) {
|
|
|
12586
12780
|
resourceType: resource.resourceType
|
|
12587
12781
|
});
|
|
12588
12782
|
const noEchoPartitioned = partitionNoEchoParameterChanges(changes, resource, baseline);
|
|
12589
|
-
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);
|
|
12590
12788
|
if (provider.getDriftSecretPathAliases) for (const alias of provider.getDriftSecretPathAliases(resource.resourceType, resource.properties ?? {}, /* @__PURE__ */ new Set([...secretResolutionFailed ? seededSecretPaths : secretPaths, ...maskSecretPaths]))) maskSecretPaths.add(alias);
|
|
12591
12789
|
const reported = redactDriftChanges(partitioned.kept, secrets, secretResolutionFailed ? seededSecretPaths : secretPaths, maskSecretPaths);
|
|
12592
|
-
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;
|
|
12593
12791
|
if (reported.changes.length === 0) {
|
|
12594
12792
|
if (notComparedCause !== void 0) outcomes.push({
|
|
12595
12793
|
kind: "notCompared",
|
|
@@ -12612,6 +12810,7 @@ async function compareDriftReadback(args) {
|
|
|
12612
12810
|
printingNeedles: unionOfSecretBags([printing, stackSecretNames]),
|
|
12613
12811
|
uncertifiedPaths: partitioned.uncertifiedPaths,
|
|
12614
12812
|
noEchoParameterPaths: noEchoPartitioned.noEchoParameterPaths,
|
|
12813
|
+
maskedEchoPaths: echoPartitioned.maskedEchoPaths,
|
|
12615
12814
|
secretsIncomplete: secretResolutionFailed || unresolvedTokens.size > 0,
|
|
12616
12815
|
notComparedCause
|
|
12617
12816
|
});
|
|
@@ -12994,7 +13193,7 @@ function revertWriteOnlyResendNames(resourceType, properties, writeOnlyNames) {
|
|
|
12994
13193
|
if (!hasOwnKey(properties, name) || unreadableCreateOnly.has(name)) continue;
|
|
12995
13194
|
const value = properties[name];
|
|
12996
13195
|
if (value === void 0 || value === null) continue;
|
|
12997
|
-
if (
|
|
13196
|
+
if (holdsMaskLeaf(value) || carriesIntrinsicObject(value)) continue;
|
|
12998
13197
|
names.push(name);
|
|
12999
13198
|
}
|
|
13000
13199
|
return names;
|
|
@@ -13029,7 +13228,7 @@ function withDeclaredWriteOnlyValues(send, resolvedProperties, names, paths) {
|
|
|
13029
13228
|
wholesale.push(name);
|
|
13030
13229
|
}
|
|
13031
13230
|
}
|
|
13032
|
-
if (carriesDynamicReference(next) ||
|
|
13231
|
+
if (carriesDynamicReference(next) || holdsMaskLeaf(next)) {
|
|
13033
13232
|
skipped.push(name);
|
|
13034
13233
|
const at = wholesale.indexOf(name);
|
|
13035
13234
|
if (at !== -1) wholesale.splice(at, 1);
|
|
@@ -13904,7 +14103,7 @@ async function revertDriftedOutcome(args) {
|
|
|
13904
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)}`);
|
|
13905
14104
|
return;
|
|
13906
14105
|
}
|
|
13907
|
-
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] ?? ""));
|
|
13908
14107
|
if (stateResource.observedProperties === void 0) {
|
|
13909
14108
|
const driftedTopLevelKeys = /* @__PURE__ */ new Set();
|
|
13910
14109
|
for (const change of outcome.changes) {
|
|
@@ -14096,6 +14295,8 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
14096
14295
|
settledCount++;
|
|
14097
14296
|
}
|
|
14098
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);
|
|
14099
14300
|
for (const [logicalId, delta] of narrowedByLogicalId) {
|
|
14100
14301
|
const existing = resources[logicalId];
|
|
14101
14302
|
if (!existing) continue;
|
|
@@ -14116,7 +14317,8 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
14116
14317
|
}
|
|
14117
14318
|
if (!changed) continue;
|
|
14118
14319
|
recordedCount++;
|
|
14119
|
-
const
|
|
14320
|
+
const live = liveByLogicalId.get(logicalId);
|
|
14321
|
+
const writtenBaseline = maskMarkedNoEchoBaseline(newBaseline, existing, hasObserved, live);
|
|
14120
14322
|
resources[logicalId] = hasObserved ? {
|
|
14121
14323
|
...existing,
|
|
14122
14324
|
observedProperties: writtenBaseline
|
|
@@ -14124,6 +14326,7 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
14124
14326
|
...existing,
|
|
14125
14327
|
properties: writtenBaseline
|
|
14126
14328
|
};
|
|
14329
|
+
if (hasObserved) resources[logicalId] = withOffTemplateEchoesMasked(resources[logicalId], live === void 0 ? {} : { readback: live }, /* @__PURE__ */ new Set([report.region, report.stackName]));
|
|
14127
14330
|
}
|
|
14128
14331
|
let reRecordedCount = 0;
|
|
14129
14332
|
for (const [logicalId, identity] of reRecordedByLogicalId) {
|
|
@@ -18206,7 +18409,13 @@ async function resolveIdentifierValue(entry, ctx, deps) {
|
|
|
18206
18409
|
return entry.resolve(ctx);
|
|
18207
18410
|
} catch (stateOnlyError) {
|
|
18208
18411
|
if (entry.backfill && deps) return await entry.backfill(ctx, deps);
|
|
18209
|
-
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));
|
|
18210
18419
|
throw stateOnlyError;
|
|
18211
18420
|
}
|
|
18212
18421
|
}
|
|
@@ -18603,7 +18812,7 @@ const COMPOSITE_ID_SPLITTERS = {
|
|
|
18603
18812
|
};
|
|
18604
18813
|
|
|
18605
18814
|
// src/cli/commands/export/type-schema.ts
|
|
18606
|
-
async function resolveResourceIdentifier(resourceType, logicalId, physicalId, properties, attributes, entry, backfillDeps) {
|
|
18815
|
+
async function resolveResourceIdentifier(resourceType, logicalId, physicalId, properties, attributes, entry, backfillDeps, noEchoAttributeNames) {
|
|
18607
18816
|
const registered = Object.hasOwn(COMPOSITE_PHYSICAL_ID_IDENTIFIERS, resourceType) ? COMPOSITE_PHYSICAL_ID_IDENTIFIERS[resourceType] : void 0;
|
|
18608
18817
|
const compositeIdentifier = registered && entry.fields.length === 1 && registered.physicalIdIsIdentifierFor?.includes(entry.fields[0]) && !physicalId.trim().startsWith("arn:") ? void 0 : registered;
|
|
18609
18818
|
if (compositeIdentifier) {
|
|
@@ -18611,7 +18820,8 @@ async function resolveResourceIdentifier(resourceType, logicalId, physicalId, pr
|
|
|
18611
18820
|
const value = await resolveIdentifierValue(compositeIdentifier, {
|
|
18612
18821
|
logicalId,
|
|
18613
18822
|
physicalId,
|
|
18614
|
-
attributes
|
|
18823
|
+
attributes,
|
|
18824
|
+
noEchoAttributeNames
|
|
18615
18825
|
}, backfillDeps);
|
|
18616
18826
|
return {
|
|
18617
18827
|
resourceIdentifier: { [compositeIdentifier.field]: value },
|
|
@@ -18823,7 +19033,7 @@ async function resolveChildImportParameters(parentTemplate, parentResolverContex
|
|
|
18823
19033
|
stillSkipped.push(key);
|
|
18824
19034
|
continue;
|
|
18825
19035
|
}
|
|
18826
|
-
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");
|
|
18827
19037
|
if (result === void 0 || result === null) {
|
|
18828
19038
|
stillSkipped.push(key);
|
|
18829
19039
|
continue;
|
|
@@ -19434,7 +19644,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
|
|
|
19434
19644
|
continue;
|
|
19435
19645
|
}
|
|
19436
19646
|
const noEchoLeaves = noEchoLeavesOf(stateEntry);
|
|
19437
|
-
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));
|
|
19438
19648
|
if (masksOnlyAtNoEchoLeaves && IMPORT_UNSUPPORTED_RECREATABLE_TYPES.has(resourceType) && noEchoLeaves.some((coordinate) => typeof coordinate[0] === "string" && NOECHO_PRE_DELETE_KEYS.has(coordinate[0]))) {
|
|
19439
19649
|
blocked.push({
|
|
19440
19650
|
logicalId,
|
|
@@ -19443,7 +19653,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
|
|
|
19443
19653
|
});
|
|
19444
19654
|
continue;
|
|
19445
19655
|
}
|
|
19446
|
-
if (!masksOnlyAtNoEchoLeaves &&
|
|
19656
|
+
if (!masksOnlyAtNoEchoLeaves && holdsMaskLeaf(stateEntry.properties)) {
|
|
19447
19657
|
blocked.push({
|
|
19448
19658
|
logicalId,
|
|
19449
19659
|
resourceType,
|
|
@@ -19528,7 +19738,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
|
|
|
19528
19738
|
});
|
|
19529
19739
|
continue;
|
|
19530
19740
|
}
|
|
19531
|
-
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);
|
|
19532
19742
|
} catch (err) {
|
|
19533
19743
|
blocked.push({
|
|
19534
19744
|
logicalId,
|
|
@@ -19539,7 +19749,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
|
|
|
19539
19749
|
continue;
|
|
19540
19750
|
}
|
|
19541
19751
|
const propertiesOverlay = resolved.propertiesOverlay ?? resolved.resourceIdentifier;
|
|
19542
|
-
if ((
|
|
19752
|
+
if ((mentionsMask(resolved.resourceIdentifier) || mentionsMask(propertiesOverlay)) && !(holdsMaskLeaf(resolved.resourceIdentifier) || holdsMaskLeaf(propertiesOverlay))) {
|
|
19543
19753
|
blocked.push({
|
|
19544
19754
|
logicalId,
|
|
19545
19755
|
resourceType,
|
|
@@ -19547,7 +19757,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
|
|
|
19547
19757
|
});
|
|
19548
19758
|
continue;
|
|
19549
19759
|
}
|
|
19550
|
-
if (
|
|
19760
|
+
if (holdsMaskLeaf(resolved.resourceIdentifier) || holdsMaskLeaf(propertiesOverlay)) {
|
|
19551
19761
|
blocked.push({
|
|
19552
19762
|
logicalId,
|
|
19553
19763
|
resourceType,
|
|
@@ -20300,7 +20510,7 @@ function exportedStackTagsByStack(plans, rootStackName, rootStackTags, warn) {
|
|
|
20300
20510
|
if (plan === void 0) return;
|
|
20301
20511
|
for (const row of plan.nestedStackRows) {
|
|
20302
20512
|
let rowTags = literalRowTags(rowTagsProperty(plan.template, row.logicalId));
|
|
20303
|
-
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;
|
|
20304
20514
|
if (rowTags === void 0) {
|
|
20305
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.`);
|
|
20306
20516
|
rowTags = {};
|
|
@@ -21070,8 +21280,43 @@ function unsplicableCachedAttribute(resourceType, attribute, cached) {
|
|
|
21070
21280
|
if (carriesDynamicReference(cached)) return "an unresolved dynamic reference";
|
|
21071
21281
|
if (carriesSensitiveNamedLeaf(cached)) return "a value with a credential-named field";
|
|
21072
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
|
+
}
|
|
21073
21317
|
|
|
21074
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.";
|
|
21075
21320
|
var AttributeFetcher = class {
|
|
21076
21321
|
cache = /* @__PURE__ */ new Map();
|
|
21077
21322
|
logger = getLogger().child("OrphanRewriter");
|
|
@@ -21099,6 +21344,10 @@ var AttributeFetcher = class {
|
|
|
21099
21344
|
ok: false,
|
|
21100
21345
|
reason: `state records no usable '${healedAttribute}' for this resource, the value CloudFormation's Ref returns, and the physical id is NOT that value`
|
|
21101
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
|
+
};
|
|
21102
21351
|
let maskedKey;
|
|
21103
21352
|
const value = cfnRefValueFromPhysicalId(o.resourceType, o.physicalId, refStateLookupFromResource(o, (key) => {
|
|
21104
21353
|
maskedKey = key;
|
|
@@ -21133,6 +21382,11 @@ var AttributeFetcher = class {
|
|
|
21133
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`
|
|
21134
21383
|
};
|
|
21135
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
|
+
};
|
|
21136
21390
|
let provider;
|
|
21137
21391
|
try {
|
|
21138
21392
|
provider = this.providerRegistry.getProviderFor({
|
|
@@ -21558,7 +21812,7 @@ async function orphanCommand(pathArgs, options) {
|
|
|
21558
21812
|
printRewriteSummary(result.rewrites, orphanLogicalIds);
|
|
21559
21813
|
if (result.unresolvable.length > 0 && !options.force) {
|
|
21560
21814
|
printUnresolvable(result.unresolvable);
|
|
21561
|
-
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.`);
|
|
21562
21816
|
}
|
|
21563
21817
|
if (result.unresolvable.length > 0) {
|
|
21564
21818
|
printUnresolvable(result.unresolvable);
|
|
@@ -21896,7 +22150,7 @@ async function stateOrphanResources(stackName, requested, options) {
|
|
|
21896
22150
|
printRewriteSummary(result.rewrites, logicalIds);
|
|
21897
22151
|
if (result.unresolvable.length > 0 && !options.force) {
|
|
21898
22152
|
printUnresolvable(result.unresolvable);
|
|
21899
|
-
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.`);
|
|
21900
22154
|
}
|
|
21901
22155
|
if (result.unresolvable.length > 0) {
|
|
21902
22156
|
printUnresolvable(result.unresolvable);
|
|
@@ -22811,11 +23065,27 @@ async function refreshObservedForStack(stackName, region, stateBackend, lockMana
|
|
|
22811
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.`);
|
|
22812
23066
|
return;
|
|
22813
23067
|
}
|
|
22814
|
-
|
|
23068
|
+
const publicSsmProof = await publicSsmProver.proofBagFor(resource.properties ?? {});
|
|
23069
|
+
const redacted = redactForState(maskReadbackAtCoordinates(observed, resource.properties ?? {}, [...maskedLeafCoordinatesOf(resource.properties ?? {}), ...noEchoLeavesOf(resource) ?? []]), {
|
|
22815
23070
|
provenance: "state-baseline",
|
|
22816
|
-
secrets:
|
|
23071
|
+
secrets: publicSsmProof,
|
|
22817
23072
|
source: resource.properties ?? {}
|
|
22818
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;
|
|
22819
23089
|
if (logicalId === acceptId) {
|
|
22820
23090
|
delete resource.observedBaselineRefused;
|
|
22821
23091
|
delete resource.observedBaselineRefusalReason;
|
|
@@ -26859,81 +27129,6 @@ function collectImportableResources(template) {
|
|
|
26859
27129
|
return out;
|
|
26860
27130
|
}
|
|
26861
27131
|
|
|
26862
|
-
// src/cli/commands/import/discarded-subtree.ts
|
|
26863
|
-
const DYNAMIC_REFERENCE_OPENER$1 = "{{resolve:";
|
|
26864
|
-
function countDynamicReferenceOpeners(bag) {
|
|
26865
|
-
let text;
|
|
26866
|
-
try {
|
|
26867
|
-
text = JSON.stringify(bag ?? {}) ?? "";
|
|
26868
|
-
} catch {
|
|
26869
|
-
return;
|
|
26870
|
-
}
|
|
26871
|
-
let count = 0;
|
|
26872
|
-
for (let from = 0;;) {
|
|
26873
|
-
const at = text.indexOf(DYNAMIC_REFERENCE_OPENER$1, from);
|
|
26874
|
-
if (at === -1) return count;
|
|
26875
|
-
count++;
|
|
26876
|
-
from = at + 10;
|
|
26877
|
-
}
|
|
26878
|
-
}
|
|
26879
|
-
function isIntrinsicShapedKey(key) {
|
|
26880
|
-
return key === "Ref" || key.startsWith("Fn::");
|
|
26881
|
-
}
|
|
26882
|
-
function isInertDiscardedSubtree(node) {
|
|
26883
|
-
if (typeof node === "string") return !node.includes(DYNAMIC_REFERENCE_OPENER$1);
|
|
26884
|
-
if (node === null || typeof node !== "object") return true;
|
|
26885
|
-
if (Array.isArray(node)) return node.every((element) => isInertDiscardedSubtree(element));
|
|
26886
|
-
const record = node;
|
|
26887
|
-
const keys = Object.keys(record);
|
|
26888
|
-
if (keys.length === 1 && keys[0] === "Ref" && record["Ref"] === "AWS::NoValue") return true;
|
|
26889
|
-
return Object.entries(record).every(([key, value]) => !isIntrinsicShapedKey(key) && isInertDiscardedSubtree(value));
|
|
26890
|
-
}
|
|
26891
|
-
function isStaticSelectIndex(value) {
|
|
26892
|
-
if (typeof value === "number") return Number.isInteger(value) && value >= 0;
|
|
26893
|
-
return typeof value === "string" && /^(0|[1-9]\d*)$/.test(value);
|
|
26894
|
-
}
|
|
26895
|
-
function isStaticLookupKey(value) {
|
|
26896
|
-
if (typeof value === "string") return !value.includes(DYNAMIC_REFERENCE_OPENER$1);
|
|
26897
|
-
return typeof value === "number" || typeof value === "boolean";
|
|
26898
|
-
}
|
|
26899
|
-
function resolveDiscardsNonInertSubtree(node, conditions, mappings) {
|
|
26900
|
-
if (node === null || typeof node !== "object") return false;
|
|
26901
|
-
if (Array.isArray(node)) return node.some((element) => resolveDiscardsNonInertSubtree(element, conditions, mappings));
|
|
26902
|
-
const record = node;
|
|
26903
|
-
const keys = Object.keys(record);
|
|
26904
|
-
if (keys.length === 1 && keys[0] === "Fn::If") {
|
|
26905
|
-
const args = record["Fn::If"];
|
|
26906
|
-
if (!Array.isArray(args) || args.length !== 3 || typeof args[0] !== "string") return true;
|
|
26907
|
-
const [conditionName, valueIfTrue, valueIfFalse] = args;
|
|
26908
|
-
if (!Object.hasOwn(conditions, conditionName)) return !isInertDiscardedSubtree(valueIfTrue) || !isInertDiscardedSubtree(valueIfFalse);
|
|
26909
|
-
const selected = conditions[conditionName] ? valueIfTrue : valueIfFalse;
|
|
26910
|
-
if (!isInertDiscardedSubtree(conditions[conditionName] ? valueIfFalse : valueIfTrue)) return true;
|
|
26911
|
-
return resolveDiscardsNonInertSubtree(selected, conditions, mappings);
|
|
26912
|
-
}
|
|
26913
|
-
if (keys.length === 1 && keys[0] === "Fn::FindInMap") {
|
|
26914
|
-
const args = record["Fn::FindInMap"];
|
|
26915
|
-
if (!Array.isArray(args) || args.length < 3 || args.length > 4) return true;
|
|
26916
|
-
if (args.length > 3) {
|
|
26917
|
-
if (!isInertDiscardedSubtree(args[3])) return true;
|
|
26918
|
-
}
|
|
26919
|
-
if (!args.slice(0, 3).every((key) => isStaticLookupKey(key))) {
|
|
26920
|
-
if (!isInertDiscardedSubtree(typeof args[0] === "string" && mappings !== null && typeof mappings === "object" && Object.hasOwn(mappings, args[0]) ? mappings[args[0]] : mappings)) return true;
|
|
26921
|
-
}
|
|
26922
|
-
return args.some((arg) => resolveDiscardsNonInertSubtree(arg, conditions, mappings));
|
|
26923
|
-
}
|
|
26924
|
-
if (keys.length === 1 && keys[0] === "Fn::Select") {
|
|
26925
|
-
const args = record["Fn::Select"];
|
|
26926
|
-
if (!Array.isArray(args) || args.length !== 2) return true;
|
|
26927
|
-
if (!(isStaticSelectIndex(args[0]) && (!Array.isArray(args[1]) || Number(args[0]) < args[1].length)) && !isInertDiscardedSubtree(args[1])) return true;
|
|
26928
|
-
return args.some((arg) => resolveDiscardsNonInertSubtree(arg, conditions, mappings));
|
|
26929
|
-
}
|
|
26930
|
-
if (keys.length > 1 && keys.some((key) => isIntrinsicShapedKey(key))) {
|
|
26931
|
-
if (keys.filter((key) => isIntrinsicShapedKey(key)).length > 1) return true;
|
|
26932
|
-
return !keys.every((key) => isInertDiscardedSubtree(record[key]));
|
|
26933
|
-
}
|
|
26934
|
-
return keys.some((key) => resolveDiscardsNonInertSubtree(record[key], conditions, mappings));
|
|
26935
|
-
}
|
|
26936
|
-
|
|
26937
27132
|
// src/cli/commands/import/pseudo-parameters.ts
|
|
26938
27133
|
const IMPORT_PREPASS_PSEUDO_PARAMETERS = /* @__PURE__ */ new Set([
|
|
26939
27134
|
"AWS::AccountId",
|
|
@@ -27037,7 +27232,7 @@ async function resolvePseudoParameterIntrinsics(value, region) {
|
|
|
27037
27232
|
values.set("AWS::AccountId", accountId);
|
|
27038
27233
|
}
|
|
27039
27234
|
const resolved = evaluatePseudoParameterClosure(obj, values);
|
|
27040
|
-
return resolved
|
|
27235
|
+
return mentionsDynamicReference(resolved) ? node : resolved;
|
|
27041
27236
|
}
|
|
27042
27237
|
const result = {};
|
|
27043
27238
|
for (const [k, v] of Object.entries(obj)) defineOwnKey(result, k, await walk(v));
|
|
@@ -27191,11 +27386,26 @@ async function captureObservedForImportedResources(stackState, providerRegistry,
|
|
|
27191
27386
|
const observed = await provider.readCurrentState(resource.physicalId, logicalId, resource.resourceType, resource.properties ?? {}, buildReadCurrentStateContext(stackState, logicalId));
|
|
27192
27387
|
if (observed !== void 0 && observed !== RESOURCE_NOT_FOUND) {
|
|
27193
27388
|
const marked = noEchoLeavesOf(resource) ?? [];
|
|
27194
|
-
|
|
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, {
|
|
27195
27403
|
provenance: "state-baseline",
|
|
27196
27404
|
secrets: NO_RECORDED_SECRETS,
|
|
27197
27405
|
source: resource.properties ?? {}
|
|
27198
27406
|
});
|
|
27407
|
+
if (echoes.leaves.length > 0) resource.observedMaskedLeaves = echoes.leaves;
|
|
27408
|
+
else delete resource.observedMaskedLeaves;
|
|
27199
27409
|
}
|
|
27200
27410
|
} catch (err) {
|
|
27201
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.`);
|
|
@@ -27203,6 +27413,74 @@ async function captureObservedForImportedResources(stackState, providerRegistry,
|
|
|
27203
27413
|
})));
|
|
27204
27414
|
}
|
|
27205
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
|
+
|
|
27206
27484
|
// src/cli/commands/import/noecho-position.ts
|
|
27207
27485
|
function positionImportedNoEcho(stackState, inputs, template, conditions, refusals, logger) {
|
|
27208
27486
|
if (inputs.size === 0) return;
|
|
@@ -27604,7 +27882,7 @@ function nestedChildStackTags(parentStackTags, parentDeployedTemplate, rowLogica
|
|
|
27604
27882
|
if (entry === null || typeof entry !== "object" || Array.isArray(entry)) continue;
|
|
27605
27883
|
const { Key: key, Value: value } = entry;
|
|
27606
27884
|
if (typeof key !== "string") continue;
|
|
27607
|
-
if (typeof value === "string" && !value
|
|
27885
|
+
if (typeof value === "string" && !mentionsDynamicReference(value)) defineOwnKey(tags, key, value);
|
|
27608
27886
|
else delete tags[key];
|
|
27609
27887
|
}
|
|
27610
27888
|
return tags;
|
|
@@ -27718,11 +27996,10 @@ function collectNames(value, out) {
|
|
|
27718
27996
|
}
|
|
27719
27997
|
for (const child of Object.values(obj)) collectNames(child, out);
|
|
27720
27998
|
}
|
|
27721
|
-
const DYNAMIC_REFERENCE_OPENER = "{{resolve:";
|
|
27722
27999
|
function dynamicReferenceDowngradePath(synth, deployed, path) {
|
|
27723
28000
|
if (typeof synth === "string") {
|
|
27724
|
-
if (!synth
|
|
27725
|
-
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)";
|
|
27726
28003
|
}
|
|
27727
28004
|
if (synth === null || typeof synth !== "object") return void 0;
|
|
27728
28005
|
const deployedNode = deployed !== null && typeof deployed === "object" ? deployed : {};
|
|
@@ -27879,13 +28156,13 @@ function reimportedAttributes(row, prior) {
|
|
|
27879
28156
|
else {
|
|
27880
28157
|
attributes = Object.create(Object.getPrototypeOf(row));
|
|
27881
28158
|
for (const [key, value] of Object.entries(row)) {
|
|
27882
|
-
const keepRecorded =
|
|
28159
|
+
const keepRecorded = holdsMaskLeaf(value) && hasOwnKey(prior, key) && !holdsMaskLeaf(prior[key]);
|
|
27883
28160
|
if (keepRecorded) keptRecordedKeys.push(key);
|
|
27884
28161
|
defineOwnKey(attributes, key, keepRecorded ? prior[key] : value);
|
|
27885
28162
|
}
|
|
27886
|
-
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);
|
|
27887
28164
|
}
|
|
27888
|
-
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();
|
|
27889
28166
|
return {
|
|
27890
28167
|
attributes,
|
|
27891
28168
|
stillMaskedKeys,
|
|
@@ -27894,7 +28171,7 @@ function reimportedAttributes(row, prior) {
|
|
|
27894
28171
|
}
|
|
27895
28172
|
function withDeclaredNoEchoMasked(attributes, declared) {
|
|
27896
28173
|
if (!Array.isArray(declared)) return attributes;
|
|
27897
|
-
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);
|
|
27898
28175
|
if (names.length === 0) return attributes;
|
|
27899
28176
|
const masked = Object.create(Object.getPrototypeOf(attributes));
|
|
27900
28177
|
for (const [key, value] of Object.entries(attributes)) defineOwnKey(masked, key, names.includes(key) ? maskWholeValue(value) : value);
|
|
@@ -27902,7 +28179,7 @@ function withDeclaredNoEchoMasked(attributes, declared) {
|
|
|
27902
28179
|
}
|
|
27903
28180
|
function noEchoAttributeNamesCarried(prior, attributes) {
|
|
27904
28181
|
if (!Array.isArray(prior) || attributes === void 0) return {};
|
|
27905
|
-
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]));
|
|
27906
28183
|
return kept.length > 0 ? { noEchoAttributeNames: kept } : {};
|
|
27907
28184
|
}
|
|
27908
28185
|
const READS_EVERY_KEY = Symbol("reads every key");
|
|
@@ -37487,4 +37764,4 @@ function collectVerbFlags(program) {
|
|
|
37487
37764
|
}
|
|
37488
37765
|
|
|
37489
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 };
|
|
37490
|
-
//# sourceMappingURL=program-
|
|
37767
|
+
//# sourceMappingURL=program-BjmeRD9o.js.map
|