@go-to-k/cdkd 0.290.47 → 0.290.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $i as AssemblyReader, Cr as LockManager, Fa as SynthesisError, Ia as formatError, La as isCdkdError, Pa as StateError, Ra as normalizeAwsError, Ta as LockError, Wr as AssetPublisher, _a as ConfigError, ar as TemplateParser, ct as IAMRoleProvider, da as AwsClients, dt as ProviderRegistry, fa as getAwsClients, ga as CdkdError, ha as AssetError, ir as DagBuilder, ka as ProvisioningError, la as clearBucketRegionCache, ma as setAwsClients, mn as DiffCalculator, pa as resetAwsClients, r as DeployEngine, ua as resolveBucketRegion, wi as Synthesizer, wr as S3StateBackend, xt as CloudControlProvider, ya as DependencyError } from "./deploy-engine-DzSrzD0b.js";
1
+ import { $i as AssemblyReader, Aa as ProvisioningError, Cr as LockManager, Ea as LockError, Fa as StateError, Ia as SynthesisError, La as formatError, Ra as isCdkdError, Wr as AssetPublisher, _a as CdkdError, ar as TemplateParser, ba as DependencyError, ct as IAMRoleProvider, da as resolveBucketRegion, dt as ProviderRegistry, fa as AwsClients, ga as AssetError, ha as setAwsClients, ir as DagBuilder, ma as resetAwsClients, mn as DiffCalculator, pa as getAwsClients, r as DeployEngine, ua as clearBucketRegionCache, va as ConfigError, wi as Synthesizer, wr as S3StateBackend, xt as CloudControlProvider, za as normalizeAwsError } from "./deploy-engine-Defy0tTm.js";
2
2
  import { a as setLogger, n as getLogger, t as ConsoleLogger } from "./logger-GASr9bAF.js";
3
3
 
4
4
  export { AssemblyReader, AssetError, AssetPublisher, AwsClients, CdkdError, CloudControlProvider, ConfigError, ConsoleLogger, DagBuilder, DependencyError, DeployEngine, DiffCalculator, IAMRoleProvider, LockError, LockManager, ProviderRegistry, ProvisioningError, S3StateBackend, StateError, SynthesisError, Synthesizer, TemplateParser, clearBucketRegionCache, formatError, getAwsClients, getLogger, isCdkdError, normalizeAwsError, resetAwsClients, resolveBucketRegion, setAwsClients, setLogger };
@@ -1,8 +1,8 @@
1
- import { $ as yellow, $i as AssemblyReader, $n as safeStackName, $r as assertAssetBucketRegion, $t as requireConfigObject, A as createPreDeleteFinalSnapshot, Aa as ResourceTimeoutError, Ai as resolveCaptureObservedState, An as malformedOutputsRefusalMessage, Ar as formatLockExpiry, At as carriesDynamicReference, B as isStatefulRecreateTargetSync, Ba as isMarkedNonRetryable, Bi as MIGRATE_TMP_PREFIX, Bn as refuseMalformedOrphansForDestroy, Br as isReadableBag, Bt as isSettledInstanceState, C as namesAnyDeclaredParameter, Ca as LocalInvokeBuildError$1, Ci as getDockerImageBySourceHash, Cn as isReadableResourceEntry, Cr as LockManager, Ct as slowCcOperationTimeoutMs, D as PRE_DELETE_SNAPSHOT_TYPES, Da as NestedStackChildDirectDestroyError, Di as getLegacyStateBucketName, Dn as malformedOrphanRecordsWarning, Dr as buildForceUnlockCommand, Dt as disableInstanceApiTermination, E as ATOMIC_FINAL_SNAPSHOT_TYPES, Ea as MalformedProducerRecordRefusalError, Ei as getDefaultStateBucketName, En as malformedLocalOutputsWarning, Er as UNREPRODUCIBLE_LOCK_CLAUSE, Et as deleteSkipReason, F as extractDeploymentEventError, Fa as SynthesisError, Fi as stateBucketExistenceConfirmed, Fn as malformedResourcesWarning, Fr as hasReadableExportSet, Ft as isImpossibleEmptyStoredAttribute, G as toCfnInteger, Ga as markRedactedCause, Gi as injectiveKeyPrefix, Gn as refuseMalformedResourcesForDestroy, Gr as stringifyValue, Gt as coerceCfnBoolean, H as WARM_THROUGHPUT_MEMBERS, Ha as isThrottlingError, Hi as uploadCfnTemplate, Hn as refuseMalformedOutputsForDestroy, Hr as orphansCarriedFrom, Ht as normalizeAwsTagsToCfn, I as makeSiblingClaimReader, Ii as warnDeprecatedNoPrefixCliFlag, In as malformedStateRefusalMessage, Ir as hasReasonlessBaselineRefusal, It as isNamelessDynamicReferenceError, J as bold, Ja as safeStringify, Ji as decodeListingKey, Jn as repairMalformedOutputsForReadOnly, Jr as createAssetRedirectResolver, Jt as configIntegerRefusal, K as toFiniteNumber, Ka as retryClassificationText, Ki as producerCoordinateKey, Kn as refuseMalformedState, Kr as WorkGraph, Kt as coerceCfnInteger, L as planOrphanAdoption, Li as ssmResolvedValueType, Ln as refuseDivergentRecordRegionForDestroy, Lr as hasUnverifiableParameterRefusal, Lt as isUnboundTemplateParameter, M as refusesFinalSnapshot, Ma as StackHasActiveImportsError, Mi as resolveStateBucketWithDefault, Mn as malformedRenderedContainersWarning, Mr as CUSTOM_RESOURCE_RESPONSE_PREFIX, Mt as cfnRefValueFromPhysicalId, N as unsupportedFinalSnapshotError, Na as StackTerminationProtectionError, Ni as resolveStateBucketWithDefaultAndSource, Nn as malformedResourceEntriesWarning, Nr as DEFAULT_STATE_PREFIX, Nt as coerceParameterTypedValue, O as buildFinalSnapshotIdentifier, Oa as PartialFailureError, Oi as resolveApp, On as malformedOrphansRefusalMessage, Or as buildLockContentionMessage, Ot as isTerminationProtectionPropagationError, P as makeCanonicalizePropertiesFn, Pi as resolveUseCdkBootstrapAssets, Pn as malformedResourcePropertiesWarning, Pr as exportNamesCarriedFrom, Pt as getAccountInfo, Q as red, Qi as derivePartitionAndUrlSuffix, Qn as safeRegion, Qr as BOOTSTRAP_MARKER_PREFIX, Qt as requireConfigArray, R as MULTI_REGION_RECREATE_BLOCKED_TYPES, Ra as normalizeAwsError, Ri as CFN_TEMPLATE_BODY_LIMIT, Rn as refuseMalformedNestedChildOutputs, Rr as importableOutputKeys, Rt as parameterTypeMayLoseSecretIdentity, S as computeParameterTaint, Sa as IntrinsicResolutionRefusalError, Si as AssetManifestLoader, Sn as hasReadableResources, Sr as scrubResourceRecord, St as isWaitAbandonedError, T as resourcesNamingDeclaredParameter, Ti as synthesisStatusMessage, Tn as malformedExportSourceWarning, Tr as rebuildClientForBucketRegion, Tt as deleteIndeterminateGuards, U as coerceWarmThroughput$1, Ua as isTransientServerError, Ui as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Un as refuseMalformedResourceEntries, Ur as shouldRetainResource, Ut as resolveExplicitPhysicalId, V as renderStatefulReason, Va as isRetryableTransientError, Vi as findLargeInlineResources, Vn as refuseMalformedOutputs, Vr as orphansAfterRollback, Vt as WAFv2WebACLProvider, W as isWarmThroughputDecrease, Wa as markNonRetryable, Wi as injectiveKey, Wn as refuseMalformedResourcePropertiesForOrphan, Wr as AssetPublisher, Wt as assertRegionMatch, X as gray, Xi as PARTITION_TABLE, Xn as repairMalformedResourcePropertiesForReadOnly, Xr as rewriteTemplateAssetReferences, Xt as readConfigString, Y as cyan, Yi as expectedOwnerParam, Yn as repairMalformedResourceEntriesForReadOnly, Yr as loadPublishableAssetManifest, Yt as configStringRefusal, Z as green, Zi as canonicalizeRegion, Zn as repairMalformedResourcesForReadOnly, Zr as AssetModeResolver, Zt as replayWarn, _ as bagHoldsSecretExpression, _i as redactDockerArgvValues, _n as UNREADABLE_ORPHANS_CONTAINER_ROW, _r as maskSecretsInError, _t as endCommandInterruptScope, a as DeploymentEventsStore, aa as nullPrototypeRecord, ai as validateAssetBucketName, an as s3BucketDomainName, ar as TemplateParser, at as secretBearingStateKeyWarning, b as mergeNoChangeOutputs, ba as DeployCancelledError, bi as escapeRegExp, bn as hasReadableOrphans, br as recoverMaskedOutput, bt as startInterruptWatch, c as replayFailedOperations, ca as resolveAssemblyPath, ci as buildDockerImage, cn as s3BucketWebsiteUrl, cr as STATE_SOURCED_READBACK_RULES, ct as IAMRoleProvider, d as updatePartialMessage, da as AwsClients, di as describeDockerExecFailure, dn as applyCallerIdentityCredentials, dr as createSecretMasker, dt as ProviderRegistry, ea as failedStageNote, ei as ensureAssetStorage, en as requireConfigString, er as findActionableSilentDrops, et as collectDeclaredOutputNames, f as updatePartialReason, fa as getAwsClients, fi as describeDockerFailure, fn as callerEnvCredentials, fr as dynamicReferenceTokens, ft as wouldReturnToSdkProvider, g as computeImplicitDeleteEdges, ga as CdkdError, gi as partitionSensitiveEnv, gn as STATE_RESOURCES_MALFORMED, gr as markSameGenerationBag, gt as beginCommandInterruptScope, h as IMPLICIT_DELETE_DEPENDENCIES, hi as getDockerCmd, hn as INTRINSIC_KEYS, hr as isSingleDynamicReferenceToken, ht as maskerOrIdentity, i as DeploymentEventsReader, ia as hasPlainPrototype, ii as readBootstrapMarkerBody, in as s3BucketArn, ir as DagBuilder, it as secretBearing, j as isFinalSnapshotError, ja as ResourceUpdateNotSupportedError, ji as resolveSkipPrefix, jn as malformedOutputsWarning, jr as shellQuote, jt as carriesFetchableDynamicReference, k as ccRoutedFinalSnapshotError, ka as ProvisioningError, ki as resolveAutoAssetStorage, kn as malformedOrphansWarning, kr as forceQuitRecoveryClause, kt as IntrinsicFunctionResolver, l as replayRollback, li as resolveDockerContextDirectory, ln as applyRoleArnIfSet, lr as TEMPLATE_SOURCED_RULES, lt as collectInlinePolicyNamesManagedBySiblings, m as maskingRetryLogger, ma as setAwsClients, mi as formatDockerLoginError, mn as DiffCalculator, mr as identityKeyFor, mt as maskDeep, n as DEFAULT_RESOURCE_WARN_AFTER_MS, na as defineOwnKey, ni as isCrossRegionRedirect, nn as producerRegionsFromState, nr as describeTypeWithThrottleRetry, nt as exportAliasCollisionScrubWarning, o as planFailedOps, oa as ownValue, oi as validateContainerRepoName, on as s3BucketDualStackDomainName, or as STATE_SOURCED_BASELINE_RULES, ot as secretSafeKeyDisplay, p as withResourceDeadline, pa as resetAwsClients, pi as dockerSpawnEnvWithSensitive, pn as envCredentialsAreAssumedRole, pr as errorCauseChain, pt as createMaskedRetryLogger, q as formatResourceLine, qa as describeAwsFailure, qi as producerRecordKey, qn as repairMalformedOrphansForReadOnly, qr as buildAssetRedirectMap, qt as configBooleanRefusal, r as DeployEngine, ra as hasOwnKey, ri as parseBootstrapMarker, rn as withSharedDrainBudget, rr as withRetry, rt as isExportAliasCollision, s as planRollback, sa as renderAssemblyPathEscape, si as buildDenyExternalAccessPolicy, sn as s3BucketRegionalDomainName, sr as STATE_SOURCED_CROSS_GENERATION_RULES, st as getCurrentResourceSecrets, t as DEFAULT_RESOURCE_TIMEOUT_MS, ta as processStackMessages, ti as getBootstrapMarkerKey, tn as classifyReplaySecretRegion, tr as findSilentDropProperties, tt as collectPublishedOutputNames, u as resolveReplacementOldType, ua as resolveBucketRegion, ui as describeDockerCapturedOutput, un as AWS_CREDENTIAL_ENV_KEYS, ur as carriesSecretMask, ut as clearOnUpdateRemoval, v as isSecretBearingReferenceString, va as CrossAccountSecretRefusalError, vi as runDockerForeground, vn as UNREADABLE_RESOURCES_MAP_ROW, vr as maskSecretsInText, vt as interruptWatchListenerCount, w as reachableDivergentParameters, wa as LocalStartServiceError, wi as Synthesizer, wn as malformedExportNamesWarning, wr as S3StateBackend, wt as UNSPECIFIED_SKIP_REASON, x as bindingSkippedOutputs, xa as DynamicReferenceRegionAmbiguousError, xi as stripControlChars, xn as hasReadableOutputs, xr as redactSecretsForState, xt as CloudControlProvider, y as keptWholeReasonText, yi as runDockerStreaming, yn as displayLogicalId, yr as recordMaskOnlyValue, yt as isInterruptedWaitError, z as isStatefulRecreateTargetForReplace, za as withErrorHandling, zi as CFN_TEMPLATE_URL_LIMIT, zn as refuseMalformedOrphans, zr as importableOutputs, zt as refStateLookupFromResource } from "./deploy-engine-DzSrzD0b.js";
1
+ import { $ as yellow, $i as AssemblyReader, $n as safeStackName, $r as assertAssetBucketRegion, $t as requireConfigObject, A as createPreDeleteFinalSnapshot, Aa as ProvisioningError, Ai as resolveCaptureObservedState, An as malformedOutputsRefusalMessage, Ar as formatLockExpiry, At as carriesDynamicReference, B as isStatefulRecreateTargetSync, Ba as withErrorHandling, Bi as MIGRATE_TMP_PREFIX, Bn as refuseMalformedOrphansForDestroy, Br as isReadableBag, Bt as isSettledInstanceState, C as namesAnyDeclaredParameter, Ca as IntrinsicResolutionRefusalError, Ci as getDockerImageBySourceHash, Cn as isReadableResourceEntry, Cr as LockManager, Ct as slowCcOperationTimeoutMs, D as PRE_DELETE_SNAPSHOT_TYPES, Da as MalformedProducerRecordRefusalError, Di as getLegacyStateBucketName, Dn as malformedOrphanRecordsWarning, Dr as buildForceUnlockCommand, Dt as disableInstanceApiTermination, E as ATOMIC_FINAL_SNAPSHOT_TYPES, Ei as getDefaultStateBucketName, En as malformedLocalOutputsWarning, Er as UNREPRODUCIBLE_LOCK_CLAUSE, Et as deleteSkipReason, F as extractDeploymentEventError, Fi as stateBucketExistenceConfirmed, Fn as malformedResourcesWarning, Fr as hasReadableExportSet, Ft as isImpossibleEmptyStoredAttribute, G as toCfnInteger, Ga as markNonRetryable, Gi as injectiveKeyPrefix, Gn as refuseMalformedResourcesForDestroy, Gr as stringifyValue, Gt as coerceCfnBoolean, H as WARM_THROUGHPUT_MEMBERS, Ha as isRetryableTransientError, Hi as uploadCfnTemplate, Hn as refuseMalformedOutputsForDestroy, Hr as orphansCarriedFrom, Ht as normalizeAwsTagsToCfn, I as makeSiblingClaimReader, Ia as SynthesisError, Ii as warnDeprecatedNoPrefixCliFlag, In as malformedStateRefusalMessage, Ir as hasReasonlessBaselineRefusal, It as isNamelessDynamicReferenceError, J as bold, Ja as describeAwsFailure, Ji as decodeListingKey, Jn as repairMalformedOutputsForReadOnly, Jr as createAssetRedirectResolver, Jt as configIntegerRefusal, K as toFiniteNumber, Ka as markRedactedCause, Ki as producerCoordinateKey, Kn as refuseMalformedState, Kr as WorkGraph, Kt as coerceCfnInteger, L as planOrphanAdoption, Li as ssmResolvedValueType, Ln as refuseDivergentRecordRegionForDestroy, Lr as hasUnverifiableParameterRefusal, Lt as isUnboundTemplateParameter, M as refusesFinalSnapshot, Ma as ResourceUpdateNotSupportedError, Mi as resolveStateBucketWithDefault, Mn as malformedRenderedContainersWarning, Mr as CUSTOM_RESOURCE_RESPONSE_PREFIX, Mt as cfnRefValueFromPhysicalId, N as unsupportedFinalSnapshotError, Na as StackHasActiveImportsError, Ni as resolveStateBucketWithDefaultAndSource, Nn as malformedResourceEntriesWarning, Nr as DEFAULT_STATE_PREFIX, Nt as coerceParameterTypedValue, O as buildFinalSnapshotIdentifier, Oa as NestedStackChildDirectDestroyError, Oi as resolveApp, On as malformedOrphansRefusalMessage, Or as buildLockContentionMessage, Ot as isTerminationProtectionPropagationError, P as makeCanonicalizePropertiesFn, Pa as StackTerminationProtectionError, Pi as resolveUseCdkBootstrapAssets, Pn as malformedResourcePropertiesWarning, Pr as exportNamesCarriedFrom, Pt as getAccountInfo, Q as red, Qi as derivePartitionAndUrlSuffix, Qn as safeRegion, Qr as BOOTSTRAP_MARKER_PREFIX, Qt as requireConfigArray, R as MULTI_REGION_RECREATE_BLOCKED_TYPES, Ri as CFN_TEMPLATE_BODY_LIMIT, Rn as refuseMalformedNestedChildOutputs, Rr as importableOutputKeys, Rt as parameterTypeMayLoseSecretIdentity, S as computeParameterTaint, Sa as DynamicReferenceRegionAmbiguousError, Si as AssetManifestLoader, Sn as hasReadableResources, Sr as scrubResourceRecord, St as isWaitAbandonedError, T as resourcesNamingDeclaredParameter, Ta as LocalStartServiceError, Ti as synthesisStatusMessage, Tn as malformedExportSourceWarning, Tr as rebuildClientForBucketRegion, Tt as deleteIndeterminateGuards, U as coerceWarmThroughput$1, Ua as isThrottlingError, Ui as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Un as refuseMalformedResourceEntries, Ur as shouldRetainResource, Ut as resolveExplicitPhysicalId, V as renderStatefulReason, Va as isMarkedNonRetryable, Vi as findLargeInlineResources, Vn as refuseMalformedOutputs, Vr as orphansAfterRollback, Vt as WAFv2WebACLProvider, W as isWarmThroughputDecrease, Wa as isTransientServerError, Wi as injectiveKey, Wn as refuseMalformedResourcePropertiesForOrphan, Wr as AssetPublisher, Wt as assertRegionMatch, X as gray, Xi as PARTITION_TABLE, Xn as repairMalformedResourcePropertiesForReadOnly, Xr as rewriteTemplateAssetReferences, Xt as readConfigString, Y as cyan, Ya as safeStringify, Yi as expectedOwnerParam, Yn as repairMalformedResourceEntriesForReadOnly, Yr as loadPublishableAssetManifest, Yt as configStringRefusal, Z as green, Zi as canonicalizeRegion, Zn as repairMalformedResourcesForReadOnly, Zr as AssetModeResolver, Zt as replayWarn, _ as bagHoldsSecretExpression, _a as CdkdError, _i as redactDockerArgvValues, _n as UNREADABLE_ORPHANS_CONTAINER_ROW, _r as maskSecretsInError, _t as endCommandInterruptScope, a as DeploymentEventsStore, aa as nullPrototypeRecord, ai as validateAssetBucketName, an as s3BucketDomainName, ar as TemplateParser, at as secretBearingStateKeyWarning, b as mergeNoChangeOutputs, bi as escapeRegExp, bn as hasReadableOrphans, br as recoverMaskedOutput, bt as startInterruptWatch, c as replayFailedOperations, ca as renderAssemblyPathEscape, ci as buildDockerImage, cn as s3BucketWebsiteUrl, cr as STATE_SOURCED_READBACK_RULES, ct as IAMRoleProvider, d as updatePartialMessage, da as resolveBucketRegion, di as describeDockerExecFailure, dn as applyCallerIdentityCredentials, dr as createSecretMasker, dt as ProviderRegistry, ea as failedStageNote, ei as ensureAssetStorage, en as requireConfigString, er as findActionableSilentDrops, et as collectDeclaredOutputNames, f as updatePartialReason, fa as AwsClients, fi as describeDockerFailure, fn as callerEnvCredentials, fr as dynamicReferenceTokens, ft as wouldReturnToSdkProvider, g as computeImplicitDeleteEdges, gi as partitionSensitiveEnv, gn as STATE_RESOURCES_MALFORMED, gr as markSameGenerationBag, gt as beginCommandInterruptScope, h as IMPLICIT_DELETE_DEPENDENCIES, ha as setAwsClients, hi as getDockerCmd, hn as INTRINSIC_KEYS, hr as isSingleDynamicReferenceToken, ht as maskerOrIdentity, i as DeploymentEventsReader, ia as hasPlainPrototype, ii as readBootstrapMarkerBody, in as s3BucketArn, ir as DagBuilder, it as secretBearing, j as isFinalSnapshotError, ja as ResourceTimeoutError, ji as resolveSkipPrefix, jn as malformedOutputsWarning, jr as shellQuote, jt as carriesFetchableDynamicReference, k as ccRoutedFinalSnapshotError, ka as PartialFailureError, ki as resolveAutoAssetStorage, kn as malformedOrphansWarning, kr as forceQuitRecoveryClause, kt as IntrinsicFunctionResolver, l as replayRollback, la as resolveAssemblyPath, li as resolveDockerContextDirectory, ln as applyRoleArnIfSet, lr as TEMPLATE_SOURCED_RULES, lt as collectInlinePolicyNamesManagedBySiblings, m as maskingRetryLogger, ma as resetAwsClients, mi as formatDockerLoginError, mn as DiffCalculator, mr as identityKeyFor, mt as maskDeep, n as DEFAULT_RESOURCE_WARN_AFTER_MS, na as defineOwnKey, ni as isCrossRegionRedirect, nn as producerRegionsFromState, nr as describeTypeWithThrottleRetry, nt as exportAliasCollisionScrubWarning, o as planFailedOps, oa as ownValue, oi as validateContainerRepoName, on as s3BucketDualStackDomainName, or as STATE_SOURCED_BASELINE_RULES, ot as secretSafeKeyDisplay, p as withResourceDeadline, pa as getAwsClients, pi as dockerSpawnEnvWithSensitive, pn as envCredentialsAreAssumedRole, pr as errorCauseChain, pt as createMaskedRetryLogger, q as formatResourceLine, qa as retryClassificationText, qi as producerRecordKey, qn as repairMalformedOrphansForReadOnly, qr as buildAssetRedirectMap, qt as configBooleanRefusal, r as DeployEngine, ra as hasOwnKey, ri as parseBootstrapMarker, rn as withSharedDrainBudget, rr as withRetry, rt as isExportAliasCollision, s as planRollback, sa as absoluteAssemblyPathEscape, si as buildDenyExternalAccessPolicy, sn as s3BucketRegionalDomainName, sr as STATE_SOURCED_CROSS_GENERATION_RULES, st as getCurrentResourceSecrets, t as DEFAULT_RESOURCE_TIMEOUT_MS, ta as processStackMessages, ti as getBootstrapMarkerKey, tn as classifyReplaySecretRegion, tr as findSilentDropProperties, tt as collectPublishedOutputNames, u as resolveReplacementOldType, ui as describeDockerCapturedOutput, un as AWS_CREDENTIAL_ENV_KEYS, ur as carriesSecretMask, ut as clearOnUpdateRemoval, v as isSecretBearingReferenceString, vi as runDockerForeground, vn as UNREADABLE_RESOURCES_MAP_ROW, vr as maskSecretsInText, vt as interruptWatchListenerCount, w as reachableDivergentParameters, wa as LocalInvokeBuildError$1, wi as Synthesizer, wn as malformedExportNamesWarning, wr as S3StateBackend, wt as UNSPECIFIED_SKIP_REASON, x as bindingSkippedOutputs, xa as DeployCancelledError, xi as stripControlChars, xn as hasReadableOutputs, xr as redactSecretsForState, xt as CloudControlProvider, y as keptWholeReasonText, ya as CrossAccountSecretRefusalError, yi as runDockerStreaming, yn as displayLogicalId, yr as recordMaskOnlyValue, yt as isInterruptedWaitError, z as isStatefulRecreateTargetForReplace, za as normalizeAwsError, zi as CFN_TEMPLATE_URL_LIMIT, zn as refuseMalformedOrphans, zr as importableOutputs, zt as refStateLookupFromResource } from "./deploy-engine-Defy0tTm.js";
2
2
  import { C as displayAwsMessage, D as truncateCodePoints, E as isPasteableIdent, S as UNRENDERABLE, T as displaySafe, _ as withSkipPrefix, b as SECRET_REF_MAX_CODE_POINTS, c as PATTERN_B_NAME_OPTIONS, f as explicitNamePropertyFor, h as getCurrentStackName, i as reserveStdoutForPayload, l as PATTERN_B_NAME_PROPERTIES, m as generateResourceNameWithFallback, n as getLogger, o as runStackBuffered, p as generateResourceName, s as getLiveRenderer, u as PATTERN_B_RESOURCE_TYPES, v as withStackName, w as displayIdent, x as STACK_REF_MAX_CODE_POINTS } from "./logger-GASr9bAF.js";
3
3
  import { n as awsClientDefaults } from "./aws-client-defaults-BoIxyCir.js";
4
- import { t as getCdkdVersion } from "./version-DpaXQZoG.js";
5
- import { a as renderDisableCommand, i as protectedReplacementAdvice, r as UNNAMEABLE_ID_CLAUSE, t as ASGProvider } from "./asg-provider-LZQSJyN2.js";
4
+ import { t as getCdkdVersion } from "./version-78yzIsS6.js";
5
+ import { a as renderDisableCommand, i as protectedReplacementAdvice, r as UNNAMEABLE_ID_CLAUSE, t as ASGProvider } from "./asg-provider-CTrrSFjd.js";
6
6
  import { AsyncLocalStorage } from "node:async_hooks";
7
7
  import { createHash, randomBytes, randomUUID } from "node:crypto";
8
8
  import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
@@ -88711,6 +88711,118 @@ function extractImageLambdaProperties(args) {
88711
88711
  };
88712
88712
  }
88713
88713
  /**
88714
+ * Where a Lambda's `Metadata['aws:asset:path']` really lives on this host
88715
+ * (issue [#3494](https://github.com/go-to-k/cdkd/issues/3494)).
88716
+ *
88717
+ * THE one spelling shared by `cdkd local invoke`'s resolver and
88718
+ * `cdkd local start-api`'s, which each carried their own copy of
88719
+ * `isAbsolute(p) ? p : resolve(dir, p)`. A second hand-written copy is how a
88720
+ * guard on one twin becomes a guard on neither — the argument
88721
+ * `resolveFileAssetSourcePath` and `resolveDockerContextDirectory` each
88722
+ * make about their own pair. It throws through the CALLER's `wrapError` so
88723
+ * each keeps its own typed error class and names its own command.
88724
+ *
88725
+ * TWO VALUE SHAPES, ANSWERED DIFFERENTLY, and the asymmetry is the decision
88726
+ * rather than an accident:
88727
+ *
88728
+ * - RELATIVE, escaping. REFUSED. `path.resolve` folds `..` exactly as
88729
+ * `path.join` does, so `../../../home/<user>/.aws` leaves the assembly, and
88730
+ * nothing a real `cdk synth` emits has that shape.
88731
+ * - ABSOLUTE. ACCEPTED, with a WARNING naming the path when it leaves the
88732
+ * asset outdir.
88733
+ *
88734
+ * **Why absolute is accepted, when the security axis argued for refusing it.**
88735
+ * `cdk synth --no-staging` (context flag `aws:cdk:disable-asset-staging`) makes
88736
+ * upstream `AssetStaging.relativeStagedPath` return the staged path verbatim
88737
+ * instead of relativising it, so `aws:asset:path` is the asset's absolute
88738
+ * SOURCE directory, normally outside the outdir. Measured on aws-cdk-lib 2.268:
88739
+ * `noStaging=false` gives `asset.<hash>`, `noStaging=true` gives
88740
+ * `/abs/path/to/srcdir`. Refusing it therefore rejects the output of a
88741
+ * documented CDK CLI flag — AWS's own pre-step for `sam local invoke` — and the
88742
+ * user's view is simply that cdkd will not read what `cdk` just wrote.
88743
+ *
88744
+ * The maintainer weighed that against the security reading and chose
88745
+ * acceptance. Record BOTH halves, because the trade is real and a later reader
88746
+ * must not "restore" the refusal as an oversight:
88747
+ *
88748
+ * - The security cost is genuine. This value is BIND-MOUNTED read-only at
88749
+ * `/var/task` (or `/opt` for a layer) into a container running handler code
88750
+ * the SAME assembly supplied, and `cdkd local invoke` forwards the caller's
88751
+ * credentials, so an absolute path a hostile assembly chose reaches the host
88752
+ * filesystem. cdkd cannot distinguish a `--no-staging` value from a planted
88753
+ * one: both are an absolute directory the assembly named.
88754
+ * - What bounds it: this is a LOCAL developer command run against an assembly
88755
+ * the user pointed at, the mount is read-only, and the warning names the path
88756
+ * so an unexpected one is visible rather than silent.
88757
+ *
88758
+ * The `..` containment is NOT relaxed with it — but be precise about what that
88759
+ * still buys, because an earlier revision of this comment claimed it "keeps the
88760
+ * shape go-to-k/cdkd#3489 closed" and that is FALSE. Against an ADVERSARY it
88761
+ * stops nothing: they write the ABSOLUTE spelling and reach the same place with
88762
+ * a warning instead of a refusal (`/Users/<user>/.aws` directly, or a path
88763
+ * `path.resolve` folds for them). What it still catches is an ACCIDENTAL or
88764
+ * legacy `..`, and it costs nothing, which is why the arm stays. **There is no
88765
+ * containment boundary here any more; the warning is the whole signal.** The
88766
+ * docs say so to users in the same words.
88767
+ *
88768
+ * CONTAIN WITHIN `assetOutdir`, NOT the manifest's directory. A Lambda inside a
88769
+ * `cdk.Stage` legitimately carries `../asset.<hash>`, because `cdk synth`
88770
+ * stages a Stage's assets into the APP's outdir while the Stage's manifest sits
88771
+ * in `cdk.out/assembly-<Stage>/`. Binding to the manifest directory refuses
88772
+ * every Stage asset as "hand-modified" — go-to-k/cdkd#3493's B1, fixed there
88773
+ * and re-provable here by the Stage acceptance cases in
88774
+ * `tests/unit/local/local-asset-code-path-containment.test.ts`.
88775
+ *
88776
+ * Exported for unit testing and for `local-start-api.ts`'s copy of the caller.
88777
+ */
88778
+ function resolveAssetCodeDirectory(manifestDir, assetPath, wrapError, assetOutdir, logicalId) {
88779
+ if (isAbsolute(assetPath)) {
88780
+ const absolute = resolve(assetPath);
88781
+ const escape = absoluteAssemblyPathEscape(assetOutdir, absolute);
88782
+ if (escape !== void 0) getLogger().warn(`Lambda '${displaySafe(logicalId)}' has an absolute Metadata['aws:asset:path'] pointing outside the assembly: '${displaySafe(absolute)}'` + (escape.escape === "symlink" ? ` (through a symbolic link to '${displaySafe(escape.realPath)}')` : "") + ". cdkd will bind-mount that directory into the container read-only, where the code in this assembly can read it. This is what cdk synth --no-staging emits, and is expected for it; if you did not synthesize with that flag, treat this assembly as untrusted.");
88783
+ return absolute;
88784
+ }
88785
+ const resolved = resolveAssemblyPath(manifestDir, assetPath, { containWithin: assetOutdir });
88786
+ if (!resolved.contained && resolved.escape === "lexical" && resolved.path === resolve(assetOutdir)) return resolved.path;
88787
+ if (!resolved.contained) throw wrapError(`Lambda '${displaySafe(logicalId)}' has Metadata['aws:asset:path']='${displaySafe(assetPath)}' which ${renderAssemblyPathEscape(resolved, assetOutdir, "mount it")}`);
88788
+ return resolved.path;
88789
+ }
88790
+ /**
88791
+ * The two directories an asset path is judged against — THE one spelling both
88792
+ * resolvers derive them with, for the same reason
88793
+ * {@link resolveAssetCodeDirectory} is one function: go-to-k/cdkd#3493's own
88794
+ * defect was two sites disagreeing about the BOUND, which no refusal test can
88795
+ * see.
88796
+ *
88797
+ * Asset paths are relative to the manifest's own directory: the stack's
88798
+ * `assetManifestPath` is `<cdk.out>/<stack>.assets.json`, so stripping the
88799
+ * filename gives the base.
88800
+ *
88801
+ * `assetOutdir` is the app's outdir and is the CONTAINMENT bound. An ABSENT one
88802
+ * falls back to the base, which is correct for a top-level stack and NARROWS
88803
+ * for a Stage — it never opens past the base, so a hand-built `StackInfo`
88804
+ * carrying neither field is refused rather than admitted. `AssemblyReader`
88805
+ * always sets it.
88806
+ *
88807
+ * **The two fallbacks are asymmetric, and the base's prefers `assetOutdir` over
88808
+ * `process.cwd()` for a reason that is not stylistic.** `AssemblyReader` always
88809
+ * sets `assetOutdir` but may leave `assetManifestPath` undefined, so taking
88810
+ * `process.cwd()` there produced a base DISJOINT from the bound — nothing under
88811
+ * the cwd is inside `cdk.out` — and every asset path was refused with a message
88812
+ * blaming the assembly. Fail-closed, so never a hole, but a wrong diagnosis.
88813
+ * `process.cwd()` survives only for a `StackInfo` carrying NEITHER field, where
88814
+ * base and bound coincide again.
88815
+ *
88816
+ * Exported for `local-start-api.ts`'s copy of the caller, and for unit testing.
88817
+ */
88818
+ function assetPathDirs(stack) {
88819
+ const manifestDir = stack.assetManifestPath ? dirname(stack.assetManifestPath) : stack.assetOutdir ?? process.cwd();
88820
+ return {
88821
+ manifestDir,
88822
+ assetOutdir: stack.assetOutdir ?? manifestDir
88823
+ };
88824
+ }
88825
+ /**
88714
88826
  * Resolve the local directory that corresponds to a function's deployed
88715
88827
  * asset, using the CDK-blessed `Metadata['aws:asset:path']` hint (D2). The
88716
88828
  * value is a directory path relative to `cdk.out` (e.g. `asset.abc123def`)
@@ -88720,14 +88832,17 @@ function extractImageLambdaProperties(args) {
88720
88832
  * Falls back to a clear error when the metadata is missing OR the resolved
88721
88833
  * directory does not exist (CDK should always emit it for asset-backed
88722
88834
  * Lambdas; absence usually means the user pre-synthesized with a different
88723
- * cdk.out and pointed `--output` at a stale one).
88835
+ * cdk.out and pointed `--output` at a stale one). Through
88836
+ * {@link resolveAssetCodeDirectory} it REFUSES an escaping RELATIVE value and
88837
+ * WARNS on an ABSOLUTE one that leaves the asset outdir -- see that function
88838
+ * for why the two differ.
88724
88839
  */
88725
88840
  function resolveAssetCodePath$1(stack, logicalId, resource) {
88726
88841
  const assetPath = resource.Metadata?.["aws:asset:path"];
88727
- if (typeof assetPath !== "string" || assetPath.length === 0) throw new LocalInvokeResolutionError(`Lambda '${logicalId}' has no Metadata['aws:asset:path']. cdkd local invoke needs this hint to find the local asset directory. Re-synthesize the app (without \`--output <stale-dir>\`) and retry.`);
88728
- const cdkOutDir = stack.assetManifestPath ? dirname(stack.assetManifestPath) : process.cwd();
88729
- const abs = isAbsolute(assetPath) ? assetPath : resolve(cdkOutDir, assetPath);
88730
- if (!existsSync(abs) || !statSync(abs).isDirectory()) throw new LocalInvokeResolutionError(`Lambda '${logicalId}' asset directory '${abs}' does not exist or is not a directory. Re-synthesize the app and retry.`);
88842
+ if (typeof assetPath !== "string" || assetPath.length === 0) throw new LocalInvokeResolutionError(`Lambda '${displaySafe(logicalId)}' has no Metadata['aws:asset:path']. cdkd local invoke needs this hint to find the local asset directory. Re-synthesize the app (without \`--output <stale-dir>\`) and retry.`);
88843
+ const { manifestDir, assetOutdir } = assetPathDirs(stack);
88844
+ const abs = resolveAssetCodeDirectory(manifestDir, assetPath, (message) => new LocalInvokeResolutionError(message), assetOutdir, logicalId);
88845
+ if (!existsSync(abs) || !statSync(abs).isDirectory()) throw new LocalInvokeResolutionError(`Lambda '${displaySafe(logicalId)}' asset directory '${displaySafe(abs)}' does not exist or is not a directory. Re-synthesize the app and retry.`);
88731
88846
  return abs;
88732
88847
  }
88733
88848
  /**
@@ -92784,12 +92899,25 @@ function resolveImageLambda(args) {
92784
92899
  * Locate the Lambda's local code directory using the CDK-blessed
92785
92900
  * `Metadata['aws:asset:path']` hint. Bind-mounted directly at
92786
92901
  * `/var/task` (read-only) by the docker-runner.
92902
+ *
92903
+ * The verdicts go through `resolveAssetCodeDirectory`, which is the ONE
92904
+ * spelling this and `cdkd local invoke`'s resolver share (issue
92905
+ * [#3494](https://github.com/go-to-k/cdkd/issues/3494)): it REFUSES an escaping
92906
+ * RELATIVE value and WARNS on an ABSOLUTE one that leaves the asset outdir.
92907
+ * This copy previously spelled the resolution itself, so a guard on the other
92908
+ * one would have been a guard on neither. It keeps its own error class and
92909
+ * command name by passing its own `wrapError`.
92910
+ *
92911
+ * `assetPathDirs` is shared for the same reason: the bound it returns is what
92912
+ * go-to-k/cdkd#3493's two sites disagreed about. Pass `manifestDir` as the
92913
+ * bound instead and a Stage's legitimate `../asset.<hash>` is refused, which
92914
+ * `local-asset-code-path-containment.test.ts`'s start-api wiring case pins.
92787
92915
  */
92788
92916
  function resolveAssetCodePath(stack, logicalId, resource) {
92789
92917
  const assetPath = resource.Metadata?.["aws:asset:path"];
92790
- if (typeof assetPath !== "string" || assetPath.length === 0) throw new Error(`Lambda '${logicalId}' has no Metadata['aws:asset:path']. cdkd local start-api needs this hint to find the local asset directory. Re-synthesize the app and retry.`);
92791
- const cdkOutDir = stack.assetManifestPath ? path.dirname(stack.assetManifestPath) : process.cwd();
92792
- return path.isAbsolute(assetPath) ? assetPath : path.resolve(cdkOutDir, assetPath);
92918
+ if (typeof assetPath !== "string" || assetPath.length === 0) throw new Error(`Lambda '${displaySafe(logicalId)}' has no Metadata['aws:asset:path']. cdkd local start-api needs this hint to find the local asset directory. Re-synthesize the app and retry.`);
92919
+ const { manifestDir, assetOutdir } = assetPathDirs(stack);
92920
+ return resolveAssetCodeDirectory(manifestDir, assetPath, (message) => new Error(message), assetOutdir, logicalId);
92793
92921
  }
92794
92922
  /**
92795
92923
  * Print the discovered route table to stdout. Format mirrors the spec
@@ -97542,4 +97670,4 @@ function buildProgram() {
97542
97670
 
97543
97671
  //#endregion
97544
97672
  export { buildProgram };
97545
- //# sourceMappingURL=program-Ct6XLmfo.js.map
97673
+ //# sourceMappingURL=program-DZoyIJCj.js.map