@go-to-k/cdkd 0.284.44 → 0.284.45

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.
@@ -5197,18 +5197,28 @@ function isDockerClientEnvKey(key) {
5197
5197
  return DOCKER_CLIENT_ENV_PREFIXES.some((prefix) => upper.startsWith(prefix));
5198
5198
  }
5199
5199
  /**
5200
+ * A well-formed `docker run -e` variable NAME: non-empty, and containing
5201
+ * neither `=` (the OS parses the environ entry's name as everything before the
5202
+ * first one) nor NUL (Node refuses to spawn). A newline IS accepted, because it
5203
+ * is inside the class — not because of the anchor: JS `$` without the `m` flag
5204
+ * matches only at end of input (`/^abc$/.test('abc\n') === false`). That
5205
+ * matches the clause list this replaced, i.e. deliberately not stricter.
5206
+ */
5207
+ const WELL_FORMED_ENV_KEY = /^[^=\0]+$/;
5208
+ /**
5200
5209
  * Is `key` a shape that cannot be a well-formed `docker run -e` variable NAME?
5201
- * Defined POSITIVELY as the good shape's complement (#2186 round 5): a valid
5202
- * name is non-empty and contains neither `=` nor NUL. Enumerating the bad
5203
- * spellings one at a time closed `=` in round 4 and left the empty key (`-e ''`
5204
- * — docker rejects it with an opaque error naming no secret) and a NUL-bearing
5205
- * key still open. A sensitive key matching this takes the same fail-closed
5210
+ * Defined POSITIVELY as {@link WELL_FORMED_ENV_KEY}'s complement (#2186 rounds
5211
+ * 5-6). Enumerating the bad spellings one at a time closed `=` in round 4 and
5212
+ * left the empty key (`-e ''` — docker rejects it with an opaque error naming
5213
+ * no secret) and a NUL-bearing key still open; the complement closes any
5214
+ * further bad shape without another clause. A sensitive key matching this
5215
+ * takes the same fail-closed
5206
5216
  * collision path as a docker-client-var name: no `-e` flag, no spawn-env entry,
5207
5217
  * reported in `collisions`. (This is the NAME only; a secret VALUE containing a
5208
5218
  * NUL is a separate pre-existing leak tracked in issue #2189.)
5209
5219
  */
5210
5220
  function isMalformedEnvKey(key) {
5211
- return key.length === 0 || key.includes("=") || key.includes("\0");
5221
+ return !WELL_FORMED_ENV_KEY.test(key);
5212
5222
  }
5213
5223
  /**
5214
5224
  * Split a container's environment into `docker run` `-e` flags and the values
@@ -18163,7 +18173,7 @@ var CloudControlProvider = class {
18163
18173
  if (context?.finalSnapshotIdentifier !== void 0) throw new ProvisioningError(`${logicalId} (${resourceType}) requires a final snapshot (DeletionPolicy: Snapshot), but the Cloud Control API delete route has no final-snapshot parameter. Re-run with --skip-final-snapshot after snapshotting manually, or retain the resource.`, resourceType, logicalId, physicalId);
18164
18174
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
18165
18175
  this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
18166
- const { ASGProvider } = await import("./asg-provider-D33XE2vS.js").then((n) => n.n);
18176
+ const { ASGProvider } = await import("./asg-provider-kMX2xn6Q.js").then((n) => n.n);
18167
18177
  return await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
18168
18178
  }
18169
18179
  const isProtectedEc2Instance = context?.removeProtection === true && resourceType === "AWS::EC2::Instance";
@@ -26859,7 +26869,7 @@ const FLUSH_INTERVAL_MS = 2e3;
26859
26869
  const FLUSH_EVENT_THRESHOLD = 50;
26860
26870
  /** Build-time cdkd version, with a dev fallback for non-built contexts. */
26861
26871
  function getCdkdVersion() {
26862
- return "0.284.44";
26872
+ return "0.284.45";
26863
26873
  }
26864
26874
  /**
26865
26875
  * Generate a time-sortable unique run id, e.g.
@@ -29482,4 +29492,4 @@ var DeployEngine = class {
29482
29492
 
29483
29493
  //#endregion
29484
29494
  export { startInterruptWatch as $, setAwsClients as $n, WorkGraph as $t, renderStatefulReason as A, resolveCaptureObservedState as An, redactSecretsForState as At, exportAliasCollisionScrubWarning as B, findLargeInlineResources as Bn, DiffCalculator as Bt, isFinalSnapshotError as C, getDockerImageBySourceHash as Cn, normalizeAwsError as Cr, TEMPLATE_SOURCED_RULES as Ct, extractDeploymentEventError as D, getLegacyStateBucketName as Dn, isThrottlingError as Dr, isSingleDynamicReferenceToken as Dt, makeCanonicalizePropertiesFn as E, getDefaultStateBucketName as En, isRetryableTransientError as Er, errorCauseChain as Et, green as F, stateBucketExistenceConfirmed as Fn, s3BucketDomainName as Ft, collectInlinePolicyNamesManagedBySiblings as G, derivePartitionAndUrlSuffix as Gn, TemplateParser as Gt, secretBearingStateKeyWarning as H, expectedOwnerParam as Hn, describeTypeWithThrottleRetry as Ht, red as I, warnDeprecatedNoPrefixCliFlag as In, s3BucketDualStackDomainName as It, findActionableSilentDrops as J, clearBucketRegionCache as Jn, S3StateBackend as Jt, clearOnUpdateRemoval as K, AssemblyReader as Kn, LockManager as Kt, yellow as L, CFN_TEMPLATE_BODY_LIMIT as Ln, s3BucketRegionalDomainName as Lt, bold as M, resolveStateBucketWithDefault as Mn, classifyReplaySecretRegion as Mt, cyan as N, resolveStateBucketWithDefaultAndSource as Nn, producerRegionsFromState as Nt, MULTI_REGION_RECREATE_BLOCKED_TYPES as O, resolveApp as On, markNonRetryable as Or, maskSecretsInError as Ot, gray as P, resolveUseCdkBootstrapAssets as Pn, s3BucketArn as Pt, isInterruptedWaitError as Q, resetAwsClients as Qn, stringifyValue as Qt, collectDeclaredOutputNames as R, CFN_TEMPLATE_URL_LIMIT as Rn, s3BucketWebsiteUrl as Rt, createPreDeleteFinalSnapshot as S, AssetManifestLoader as Sn, isCdkdError as Sr, STATE_SOURCED_READBACK_RULES as St, unsupportedFinalSnapshotError as T, synthesisStatusMessage as Tn, isMarkedNonRetryable as Tr, dynamicReferenceTokens as Tt, stateKeySecretExposure as U, PARTITION_TABLE as Un, withRetry as Ut, isExportAliasCollision as V, uploadCfnTemplate as Vn, INTRINSIC_KEYS as Vt, IAMRoleProvider as W, canonicalizeRegion as Wn, DagBuilder as Wt, beginCommandInterruptScope as X, AwsClients as Xn, shouldRetainResource as Xt, findSilentDropProperties as Y, resolveBucketRegion as Yn, rebuildClientForBucketRegion as Yt, endCommandInterruptScope as Z, getAwsClients as Zn, AssetPublisher as Zt, computeImplicitDeleteEdges as _, formatDockerLoginError as _n, StackHasActiveImportsError as _r, replayWarn as _t, DeploymentEventsStore as a, stripControlChars as an, DeployCancelledError as ar, carriesDynamicReference as at, buildFinalSnapshotIdentifier as b, runDockerForeground as bn, SynthesisError as br, requireConfigString as bt, replayFailedOperations as c, ensureAssetStorage as cn, LocalMigrateError as cr, refStateLookupFromResource as ct, updatePartialReason as d, readBootstrapMarkerBody as dn, MissingCdkCliError as dr, resolveExplicitPhysicalId as dt, buildAssetRedirectMap as en, AssetError as er, CloudControlProvider as et, UNSPECIFIED_SKIP_REASON as f, validateAssetBucketName as fn, NestedStackChildDirectDestroyError as fr, assertRegionMatch as ft, IMPLICIT_DELETE_DEPENDENCIES as g, dockerSpawnEnvWithSensitive as gn, ResourceUpdateNotSupportedError as gr, readConfigString as gt, maskingRetryLogger as h, buildDockerImage as hn, ResourceTimeoutError as hr, configStringRefusal as ht, DeploymentEventsReader as i, escapeRegExp$1 as in, DependencyError as ir, IntrinsicFunctionResolver as it, formatResourceLine as j, resolveSkipPrefix as jn, scrubResourceRecord as jt, isStatefulRecreateTargetSync as k, resolveAutoAssetStorage as kn, __exportAll as kr, maskSecretsInText as kt, replayRollback as l, getBootstrapMarkerKey as ln, LocalStartServiceError as lr, WAFv2WebACLProvider as lt, withResourceDeadline as m, buildDenyExternalAccessPolicy as mn, ProvisioningError as mr, configBooleanRefusal as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, loadPublishableAssetManifest as nn, ConfigError as nr, disableInstanceApiTermination as nt, planFailedOps as o, AssetModeResolver as on, DynamicReferenceRegionAmbiguousError as or, cfnRefValueFromPhysicalId as ot, deleteSkipReason as p, validateContainerRepoName as pn, PartialFailureError as pr, coerceCfnBoolean as pt, ProviderRegistry as q, processStackMessages as qn, displaySafe as qt, DeployEngine as r, rewriteTemplateAssetReferences as rn, CrossAccountSecretRefusalError as rr, isTerminationProtectionPropagationError as rt, planRollback as s, BOOTSTRAP_MARKER_PREFIX as sn, LocalInvokeBuildError as sr, getAccountInfo as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, createAssetRedirectResolver as tn, CdkdError as tr, slowCcOperationTimeoutMs as tt, updatePartialMessage as u, parseBootstrapMarker as un, LockError as ur, normalizeAwsTagsToCfn as ut, ATOMIC_FINAL_SNAPSHOT_TYPES as v, getDockerCmd as vn, StackTerminationProtectionError as vr, requireConfigArray as vt, refusesFinalSnapshot as w, Synthesizer as wn, withErrorHandling as wr, createSecretMasker as wt, ccRoutedFinalSnapshotError as x, runDockerStreaming as xn, formatError as xr, STATE_SOURCED_CROSS_GENERATION_RULES as xt, PRE_DELETE_SNAPSHOT_TYPES as y, partitionSensitiveEnv as yn, StateError as yr, requireConfigObject as yt, collectPublishedOutputNames as z, MIGRATE_TMP_PREFIX as zn, applyRoleArnIfSet as zt };
29485
- //# sourceMappingURL=deploy-engine-B4dbov9o.js.map
29495
+ //# sourceMappingURL=deploy-engine-BM0TxXk2.js.map