Skip to content

Commit

Permalink
increase registry package url expiration to 15 mins for cids
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Aug 30, 2024
1 parent cc9a22a commit f6a752f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ class S3Database {
}
const fileName = `${nameWithoutScope}-${version}.tgz`;
const tarballPath = this._getPackagePath(packageName, fileName);
const signedUrlExpireSeconds = 60 * 5;
const signedUrlExpireSeconds = 60 * 15;
let url = this.s3.getSignedUrl('getObject', {
Bucket: this.config.bucket,
Key: tarballPath,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/verdaccio-fleetbase-s3-storage",
"version": "0.0.3",
"version": "0.0.4",
"description": "AWS S3 storage implementation for Verdaccio modified for Fleetbase extensions.",
"keywords": [
"fleetbase",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export default class S3Database implements IPluginStorage<S3Config> {

const fileName = `${nameWithoutScope}-${version}.tgz`;
const tarballPath = this._getPackagePath(packageName, fileName);
const signedUrlExpireSeconds = 60 * 5;
const signedUrlExpireSeconds = 60 * 15;

let url = this.s3.getSignedUrl('getObject', {
Bucket: this.config.bucket,
Expand Down

0 comments on commit f6a752f

Please sign in to comment.