@go-to-k/cdkd 0.221.9 → 0.221.10
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.
|
@@ -6609,6 +6609,13 @@ var IntrinsicFunctionResolver = class {
|
|
|
6609
6609
|
* SECRET_ID can be a simple name or an ARN (arn:aws:secretsmanager:REGION:ACCOUNT:secret:NAME)
|
|
6610
6610
|
* which contains colons, so we cannot simply split on ':'.
|
|
6611
6611
|
* Instead, we find ':SecretString:' or ':SecretBinary:' as the delimiter.
|
|
6612
|
+
*
|
|
6613
|
+
* The whole-secret form omits everything after the type segment and carries no trailing
|
|
6614
|
+
* colon: "secretsmanager:SECRET_ID:SecretString" (returns the full secret string). We detect
|
|
6615
|
+
* it with an end-anchored check so that, for the whole-secret form, a SECRET_ID that merely
|
|
6616
|
+
* contains ":SecretString" mid-name is not split incorrectly. (The end-anchored fallback only
|
|
6617
|
+
* runs when no mid-string ":SecretString:" delimiter is present, so the json-key / version
|
|
6618
|
+
* forms are unaffected.)
|
|
6612
6619
|
*/
|
|
6613
6620
|
async resolveSecretsManagerReference(inner) {
|
|
6614
6621
|
const afterService = inner.substring(15);
|
|
@@ -6616,10 +6623,20 @@ var IntrinsicFunctionResolver = class {
|
|
|
6616
6623
|
let jsonKey = "";
|
|
6617
6624
|
let versionStage = "";
|
|
6618
6625
|
let versionId = "";
|
|
6619
|
-
|
|
6620
|
-
|
|
6626
|
+
let secretStringIdx = afterService.indexOf(":SecretString:");
|
|
6627
|
+
let secretBinaryIdx = afterService.indexOf(":SecretBinary:");
|
|
6628
|
+
let delimiterLenAtBinary = 14;
|
|
6629
|
+
let delimiterLenAtString = 14;
|
|
6630
|
+
if (secretStringIdx < 0 && afterService.endsWith(":SecretString")) {
|
|
6631
|
+
secretStringIdx = afterService.length - 13;
|
|
6632
|
+
delimiterLenAtString = 13;
|
|
6633
|
+
}
|
|
6634
|
+
if (secretBinaryIdx < 0 && afterService.endsWith(":SecretBinary")) {
|
|
6635
|
+
secretBinaryIdx = afterService.length - 13;
|
|
6636
|
+
delimiterLenAtBinary = 13;
|
|
6637
|
+
}
|
|
6621
6638
|
const delimiterIdx = secretStringIdx >= 0 && secretBinaryIdx >= 0 ? Math.min(secretStringIdx, secretBinaryIdx) : secretStringIdx >= 0 ? secretStringIdx : secretBinaryIdx;
|
|
6622
|
-
const delimiterLen = delimiterIdx >= 0 && delimiterIdx === secretBinaryIdx ?
|
|
6639
|
+
const delimiterLen = delimiterIdx >= 0 && delimiterIdx === secretBinaryIdx ? delimiterLenAtBinary : delimiterLenAtString;
|
|
6623
6640
|
if (delimiterIdx >= 0) {
|
|
6624
6641
|
secretId = afterService.substring(0, delimiterIdx);
|
|
6625
6642
|
const remainingParts = afterService.substring(delimiterIdx + delimiterLen).split(":");
|
|
@@ -13078,4 +13095,4 @@ var DeployEngine = class {
|
|
|
13078
13095
|
|
|
13079
13096
|
//#endregion
|
|
13080
13097
|
export { AssemblyReader as $, shouldRetainResource as A, getDefaultStateBucketName as B, applyRoleArnIfSet as C, LockManager as D, TemplateParser as E, formatDockerLoginError as F, resolveStateBucketWithDefault as G, resolveApp as H, getDockerCmd as I, CFN_TEMPLATE_BODY_LIMIT as J, resolveStateBucketWithDefaultAndSource as K, runDockerForeground as L, stringifyValue as M, WorkGraph as N, S3StateBackend as O, buildDockerImage as P, uploadCfnTemplate as Q, runDockerStreaming as R, IntrinsicFunctionResolver as S, DagBuilder as T, resolveCaptureObservedState as U, getLegacyStateBucketName as V, resolveSkipPrefix as W, MIGRATE_TMP_PREFIX as X, CFN_TEMPLATE_URL_LIMIT as Y, findLargeInlineResources as Z, IAMRoleProvider as _, withRetry as a, findActionableSilentDrops as b, computeImplicitDeleteEdges as c, bold as d, clearBucketRegionCache as et, cyan as f, yellow as g, red as h, withResourceDeadline as i, AssetPublisher as j, rebuildClientForBucketRegion as k, extractDeploymentEventError as l, green as m, DEFAULT_RESOURCE_WARN_AFTER_MS as n, isRetryableTransientError as o, gray as p, warnDeprecatedNoPrefixCliFlag as q, DeployEngine as r, IMPLICIT_DELETE_DEPENDENCIES as s, DEFAULT_RESOURCE_TIMEOUT_MS as t, resolveBucketRegion as tt, formatResourceLine as u, collectInlinePolicyNamesManagedBySiblings as v, DiffCalculator as w, CloudControlProvider as x, ProviderRegistry as y, Synthesizer as z };
|
|
13081
|
-
//# sourceMappingURL=deploy-engine-
|
|
13098
|
+
//# sourceMappingURL=deploy-engine-U63EpLKn.js.map
|