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.mjs CHANGED
@@ -2412,7 +2412,7 @@ var Sandbox = class extends AbstractSandbox {
2412
2412
  const fileName = sourcePath.split("/").pop() ?? "file";
2413
2413
  const objectName = `${timestamp}-${fileName}`;
2414
2414
  await this.ossBucket.put(objectName, sourcePath);
2415
- const signedUrl = this.ossBucket.signatureUrl(objectName, 600);
2415
+ const signedUrl = this.ossBucket.signatureUrl(objectName, { expires: 600 });
2416
2416
  const downloadCmd = `wget -c -O '${targetPath}' '${signedUrl}'`;
2417
2417
  await this.arun(downloadCmd, { mode: "nohup", waitTimeout: 600 });
2418
2418
  const checkResult = await this.execute({ command: ["test", "-f", targetPath], timeout: 60 });
@@ -2431,6 +2431,8 @@ var Sandbox = class extends AbstractSandbox {
2431
2431
  const credentials = await this.getOssStsCredentials();
2432
2432
  const OSS = (await import('ali-oss')).default;
2433
2433
  this.ossBucket = new OSS({
2434
+ secure: true,
2435
+ // Use HTTPS for OSS connections
2434
2436
  region: envVars.ROCK_OSS_BUCKET_REGION ?? "",
2435
2437
  accessKeyId: credentials.accessKeyId,
2436
2438
  accessKeySecret: credentials.accessKeySecret,