@ductape/sdk 0.2.11 → 0.2.13
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/graph/graphs.service.js +38 -7
- package/dist/graph/graphs.service.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/logs/logs.types.d.ts +1 -0
- package/dist/logs/logs.types.js +1 -0
- package/dist/logs/logs.types.js.map +1 -1
- package/dist/processor/services/processor.service.d.ts +2 -2
- package/dist/products/services/products.service.js +14 -2
- package/dist/products/services/products.service.js.map +1 -1
- package/dist/resilience/healthcheck.service.d.ts +7 -0
- package/dist/resilience/healthcheck.service.js +82 -0
- package/dist/resilience/healthcheck.service.js.map +1 -1
- package/dist/resilience/quota.service.js +2 -4
- package/dist/resilience/quota.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4628,7 +4628,13 @@ class ProductsBuilderService {
|
|
|
4628
4628
|
const decryptedComponents = components.map((component) => {
|
|
4629
4629
|
const graphComponent = component;
|
|
4630
4630
|
const decryptedEnvs = graphComponent.envs.map((env) => {
|
|
4631
|
-
return Object.assign(Object.assign({}, env), { connection_url: env.connection_url ? (0, processor_utils_1.decrypt)(env.connection_url, this.product.private_key) : env.connection_url, username: env.username ? (0, processor_utils_1.decrypt)(env.username, this.product.private_key) : env.username, password: env.password ? (0, processor_utils_1.decrypt)(env.password, this.product.private_key) : env.password,
|
|
4631
|
+
return Object.assign(Object.assign({}, env), { connection_url: env.connection_url ? (0, processor_utils_1.decrypt)(env.connection_url, this.product.private_key) : env.connection_url, username: env.username ? (0, processor_utils_1.decrypt)(env.username, this.product.private_key) : env.username, password: env.password ? (0, processor_utils_1.decrypt)(env.password, this.product.private_key) : env.password,
|
|
4632
|
+
// graphName/region are never encrypted by createGraph (only connection_url/username/
|
|
4633
|
+
// password are — see the encrypt() calls a few dozen lines above this in createGraph).
|
|
4634
|
+
// Decrypting them here unconditionally throws "[decrypt] Invalid encrypted format"
|
|
4635
|
+
// the moment either is set, which is always, for any named graph — masking every
|
|
4636
|
+
// fetchGraph/fetchGraphAction call behind a decrypt crash (DT-030).
|
|
4637
|
+
graphName: env.graphName, region: env.region });
|
|
4632
4638
|
});
|
|
4633
4639
|
return Object.assign(Object.assign({}, graphComponent), { envs: decryptedEnvs });
|
|
4634
4640
|
});
|
|
@@ -4639,7 +4645,13 @@ class ProductsBuilderService {
|
|
|
4639
4645
|
if (component) {
|
|
4640
4646
|
// Decrypt sensitive fields in graph envs
|
|
4641
4647
|
const decryptedEnvs = component.envs.map((env) => {
|
|
4642
|
-
return Object.assign(Object.assign({}, env), { connection_url: env.connection_url ? (0, processor_utils_1.decrypt)(env.connection_url, this.product.private_key) : env.connection_url, username: env.username ? (0, processor_utils_1.decrypt)(env.username, this.product.private_key) : env.username, password: env.password ? (0, processor_utils_1.decrypt)(env.password, this.product.private_key) : env.password,
|
|
4648
|
+
return Object.assign(Object.assign({}, env), { connection_url: env.connection_url ? (0, processor_utils_1.decrypt)(env.connection_url, this.product.private_key) : env.connection_url, username: env.username ? (0, processor_utils_1.decrypt)(env.username, this.product.private_key) : env.username, password: env.password ? (0, processor_utils_1.decrypt)(env.password, this.product.private_key) : env.password,
|
|
4649
|
+
// graphName/region are never encrypted by createGraph (only connection_url/username/
|
|
4650
|
+
// password are — see the encrypt() calls a few dozen lines above this in createGraph).
|
|
4651
|
+
// Decrypting them here unconditionally throws "[decrypt] Invalid encrypted format"
|
|
4652
|
+
// the moment either is set, which is always, for any named graph — masking every
|
|
4653
|
+
// fetchGraph/fetchGraphAction call behind a decrypt crash (DT-030).
|
|
4654
|
+
graphName: env.graphName, region: env.region });
|
|
4643
4655
|
});
|
|
4644
4656
|
return Object.assign(Object.assign({}, component), { envs: decryptedEnvs });
|
|
4645
4657
|
}
|