rl-rock 1.3.0 → 1.3.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/index.js CHANGED
@@ -2416,7 +2416,7 @@ var Sandbox = class extends AbstractSandbox {
2416
2416
  const fileName = sourcePath.split("/").pop() ?? "file";
2417
2417
  const objectName = `${timestamp}-${fileName}`;
2418
2418
  await this.ossBucket.put(objectName, sourcePath);
2419
- const signedUrl = this.ossBucket.signatureUrl(objectName, 600);
2419
+ const signedUrl = this.ossBucket.signatureUrl(objectName, { expires: 600 });
2420
2420
  const downloadCmd = `wget -c -O '${targetPath}' '${signedUrl}'`;
2421
2421
  await this.arun(downloadCmd, { mode: "nohup", waitTimeout: 600 });
2422
2422
  const checkResult = await this.execute({ command: ["test", "-f", targetPath], timeout: 60 });
@@ -2435,6 +2435,8 @@ var Sandbox = class extends AbstractSandbox {
2435
2435
  const credentials = await this.getOssStsCredentials();
2436
2436
  const OSS = (await import('ali-oss')).default;
2437
2437
  this.ossBucket = new OSS({
2438
+ secure: true,
2439
+ // Use HTTPS for OSS connections
2438
2440
  region: envVars.ROCK_OSS_BUCKET_REGION ?? "",
2439
2441
  accessKeyId: credentials.accessKeyId,
2440
2442
  accessKeySecret: credentials.accessKeySecret,