verdaccio-aws-s3-storage
Advanced tools
Comparing version 10.0.0 to 10.1.0
204
CHANGELOG.md
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
## 10.1.0 | ||
# [10.0.0](https://github.com/verdaccio/monorepo/compare/v9.7.5...v10.0.0) (2021-03-29) | ||
### Minor Changes | ||
**Note:** Version bump only for package verdaccio-aws-s3-storage | ||
- 5b9811d: set ACL of tarball files | ||
### Specify ACL of Tarball Files | ||
You can specify ACL of tarball files in S3 by the _tarballACL_ configuration, set to 'private' by default. To enable S3 integrated CDN service (Amazon CloudFront for example), set _tarballACL_ to 'public-read' to grant tarball files anonymous read permission. | ||
```yaml | ||
store: | ||
aws-s3-storage: | ||
tarballACL: public-read | ||
``` | ||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
## [9.7.2](https://github.com/verdaccio/monorepo/compare/v9.7.1...v9.7.2) (2020-07-20) | ||
# [10.0.0](https://github.com/verdaccio/monorepo/compare/v9.7.5...v10.0.0) (2021-03-29) | ||
**Note:** Version bump only for package verdaccio-aws-s3-storage | ||
## [9.7.2](https://github.com/verdaccio/monorepo/compare/v9.7.1...v9.7.2) (2020-07-20) | ||
**Note:** Version bump only for package verdaccio-aws-s3-storage | ||
## [9.7.1](https://github.com/verdaccio/monorepo/compare/v9.7.0...v9.7.1) (2020-07-10) | ||
@@ -26,6 +34,2 @@ | ||
# [9.7.0](https://github.com/verdaccio/monorepo/compare/v9.6.1...v9.7.0) (2020-06-24) | ||
@@ -35,6 +39,2 @@ | ||
## [9.6.1](https://github.com/verdaccio/monorepo/compare/v9.6.0...v9.6.1) (2020-06-07) | ||
@@ -44,17 +44,8 @@ | ||
# [9.6.0](https://github.com/verdaccio/monorepo/compare/v9.5.1...v9.6.0) (2020-06-07) | ||
### Features | ||
* allow providing session token in config ([#362](https://github.com/verdaccio/monorepo/issues/362)) ([acef36f](https://github.com/verdaccio/monorepo/commit/acef36f99c9028742bf417ee9879ed80bfbb7a8d)) | ||
- allow providing session token in config ([#362](https://github.com/verdaccio/monorepo/issues/362)) ([acef36f](https://github.com/verdaccio/monorepo/commit/acef36f99c9028742bf417ee9879ed80bfbb7a8d)) | ||
# [9.5.0](https://github.com/verdaccio/monorepo/compare/v9.4.1...v9.5.0) (2020-05-02) | ||
@@ -64,6 +55,2 @@ | ||
# [9.4.0](https://github.com/verdaccio/monorepo/compare/v9.3.4...v9.4.0) (2020-03-21) | ||
@@ -73,17 +60,8 @@ | ||
## [9.3.2](https://github.com/verdaccio/monorepo/compare/v9.3.1...v9.3.2) (2020-03-08) | ||
### Bug Fixes | ||
* update dependencies ([#332](https://github.com/verdaccio/monorepo/issues/332)) ([b6165ae](https://github.com/verdaccio/monorepo/commit/b6165aea9b7e4012477081eae68bfa7159c58f56)) | ||
- update dependencies ([#332](https://github.com/verdaccio/monorepo/issues/332)) ([b6165ae](https://github.com/verdaccio/monorepo/commit/b6165aea9b7e4012477081eae68bfa7159c58f56)) | ||
## [9.3.1](https://github.com/verdaccio/monorepo/compare/v9.3.0...v9.3.1) (2020-02-23) | ||
@@ -93,6 +71,2 @@ | ||
# [9.3.0](https://github.com/verdaccio/monorepo/compare/v9.2.0...v9.3.0) (2020-01-29) | ||
@@ -102,72 +76,41 @@ | ||
# [9.2.0](https://github.com/verdaccio/monorepo/compare/v9.1.0...v9.2.0) (2020-01-28) | ||
### Features | ||
* **verdaccio-aws-s3-storage:** Allow endpoint to be configurable ([#319](https://github.com/verdaccio/monorepo/issues/319)) ([1191dcd](https://github.com/verdaccio/monorepo/commit/1191dcd829b7d9f2dd0b4fab4910f4dc9d697565)) | ||
- **verdaccio-aws-s3-storage:** Allow endpoint to be configurable ([#319](https://github.com/verdaccio/monorepo/issues/319)) ([1191dcd](https://github.com/verdaccio/monorepo/commit/1191dcd829b7d9f2dd0b4fab4910f4dc9d697565)) | ||
# [9.1.0](https://github.com/verdaccio/monorepo/compare/v9.0.0...v9.1.0) (2020-01-25) | ||
### Features | ||
* **verdaccio-aws-s3-storage:** separate s3 subfolders (key prefix for different packages) ([#313](https://github.com/verdaccio/monorepo/issues/313)) ([6639a71](https://github.com/verdaccio/monorepo/commit/6639a71c2d2056f93e913c71e27b4453acb029aa)) | ||
* **verdaccio-aws-s3-storage:** supporting environment variables ([#315](https://github.com/verdaccio/monorepo/issues/315)) ([0c532f0](https://github.com/verdaccio/monorepo/commit/0c532f0198aba786a3292e866e7a2d933a06d2fa)) | ||
- **verdaccio-aws-s3-storage:** separate s3 subfolders (key prefix for different packages) ([#313](https://github.com/verdaccio/monorepo/issues/313)) ([6639a71](https://github.com/verdaccio/monorepo/commit/6639a71c2d2056f93e913c71e27b4453acb029aa)) | ||
- **verdaccio-aws-s3-storage:** supporting environment variables ([#315](https://github.com/verdaccio/monorepo/issues/315)) ([0c532f0](https://github.com/verdaccio/monorepo/commit/0c532f0198aba786a3292e866e7a2d933a06d2fa)) | ||
# [9.0.0](https://github.com/verdaccio/monorepo/compare/v8.5.3...v9.0.0) (2020-01-07) | ||
### chore | ||
* update dependencies ([68add74](https://github.com/verdaccio/monorepo/commit/68add743159867f678ddb9168d2bc8391844de47)) | ||
- update dependencies ([68add74](https://github.com/verdaccio/monorepo/commit/68add743159867f678ddb9168d2bc8391844de47)) | ||
### Features | ||
* **eslint-config:** enable eslint curly ([#308](https://github.com/verdaccio/monorepo/issues/308)) ([91acb12](https://github.com/verdaccio/monorepo/commit/91acb121847018e737c21b367fcaab8baa918347)) | ||
- **eslint-config:** enable eslint curly ([#308](https://github.com/verdaccio/monorepo/issues/308)) ([91acb12](https://github.com/verdaccio/monorepo/commit/91acb121847018e737c21b367fcaab8baa918347)) | ||
### BREAKING CHANGES | ||
* @verdaccio/eslint-config requires ESLint >=6.8.0 and Prettier >=1.19.1 to fix compatibility with overrides.extends config | ||
- @verdaccio/eslint-config requires ESLint >=6.8.0 and Prettier >=1.19.1 to fix compatibility with overrides.extends config | ||
## [8.5.3](https://github.com/verdaccio/monorepo/compare/v8.5.2...v8.5.3) (2019-12-27) | ||
### Bug Fixes | ||
* verdaccio/verdaccio/issues/1435 ([#289](https://github.com/verdaccio/monorepo/issues/289)) ([7a130ca](https://github.com/verdaccio/monorepo/commit/7a130ca0281ac2a008091753341baae4f17fb71a)), closes [/github.com/verdaccio/verdaccio/issues/1435#issuecomment-559977118](https://github.com//github.com/verdaccio/verdaccio/issues/1435/issues/issuecomment-559977118) | ||
- verdaccio/verdaccio/issues/1435 ([#289](https://github.com/verdaccio/monorepo/issues/289)) ([7a130ca](https://github.com/verdaccio/monorepo/commit/7a130ca0281ac2a008091753341baae4f17fb71a)), closes [/github.com/verdaccio/verdaccio/issues/1435#issuecomment-559977118](https://github.com//github.com/verdaccio/verdaccio/issues/1435/issues/issuecomment-559977118) | ||
## [8.5.2](https://github.com/verdaccio/monorepo/compare/v8.5.1...v8.5.2) (2019-12-25) | ||
### Bug Fixes | ||
* add types for storage handler ([#307](https://github.com/verdaccio/monorepo/issues/307)) ([c35746e](https://github.com/verdaccio/monorepo/commit/c35746ebba071900db172608dedff66a7d27c23d)) | ||
- add types for storage handler ([#307](https://github.com/verdaccio/monorepo/issues/307)) ([c35746e](https://github.com/verdaccio/monorepo/commit/c35746ebba071900db172608dedff66a7d27c23d)) | ||
## [8.5.1](https://github.com/verdaccio/monorepo/compare/v8.5.0...v8.5.1) (2019-12-24) | ||
@@ -177,6 +120,2 @@ | ||
# [8.5.0](https://github.com/verdaccio/monorepo/compare/v8.4.2...v8.5.0) (2019-12-22) | ||
@@ -186,6 +125,2 @@ | ||
## [8.4.2](https://github.com/verdaccio/monorepo/compare/v8.4.1...v8.4.2) (2019-11-23) | ||
@@ -195,6 +130,2 @@ | ||
## [8.4.1](https://github.com/verdaccio/monorepo/compare/v8.4.0...v8.4.1) (2019-11-22) | ||
@@ -204,6 +135,2 @@ | ||
# [8.4.0](https://github.com/verdaccio/monorepo/compare/v8.3.0...v8.4.0) (2019-11-22) | ||
@@ -213,6 +140,2 @@ | ||
# [8.3.0](https://github.com/verdaccio/monorepo/compare/v8.2.0...v8.3.0) (2019-10-27) | ||
@@ -222,6 +145,2 @@ | ||
# [8.2.0](https://github.com/verdaccio/monorepo/compare/v8.2.0-next.0...v8.2.0) (2019-10-23) | ||
@@ -231,17 +150,8 @@ | ||
# [8.2.0-next.0](https://github.com/verdaccio/monorepo/compare/v8.1.4...v8.2.0-next.0) (2019-10-08) | ||
### Bug Fixes | ||
* fixed lint errors ([5e677f7](https://github.com/verdaccio/monorepo/commit/5e677f7)) | ||
- fixed lint errors ([5e677f7](https://github.com/verdaccio/monorepo/commit/5e677f7)) | ||
## [8.1.2](https://github.com/verdaccio/monorepo/compare/v8.1.1...v8.1.2) (2019-09-29) | ||
@@ -251,6 +161,2 @@ | ||
## [8.1.1](https://github.com/verdaccio/monorepo/compare/v8.1.0...v8.1.1) (2019-09-26) | ||
@@ -260,17 +166,8 @@ | ||
# [8.1.0](https://github.com/verdaccio/monorepo/compare/v8.0.1-next.1...v8.1.0) (2019-09-07) | ||
### Features | ||
* **verdaccio-aws-s3-storage:** update @verdaccio/types and add new required methods ([f39b7a2](https://github.com/verdaccio/monorepo/commit/f39b7a2)) | ||
- **verdaccio-aws-s3-storage:** update @verdaccio/types and add new required methods ([f39b7a2](https://github.com/verdaccio/monorepo/commit/f39b7a2)) | ||
## [8.0.1-next.1](https://github.com/verdaccio/monorepo/compare/v8.0.1-next.0...v8.0.1-next.1) (2019-08-29) | ||
@@ -280,31 +177,17 @@ | ||
## [8.0.1-next.0](https://github.com/verdaccio/monorepo/compare/v8.0.0...v8.0.1-next.0) (2019-08-29) | ||
### Bug Fixes | ||
* **package:** update aws-sdk to version 2.516.0 ([82f7117](https://github.com/verdaccio/monorepo/commit/82f7117)) | ||
* **package:** update aws-sdk to version 2.517.0 ([39183eb](https://github.com/verdaccio/monorepo/commit/39183eb)) | ||
* **package:** update aws-sdk to version 2.518.0 ([c4f18a6](https://github.com/verdaccio/monorepo/commit/c4f18a6)) | ||
- **package:** update aws-sdk to version 2.516.0 ([82f7117](https://github.com/verdaccio/monorepo/commit/82f7117)) | ||
- **package:** update aws-sdk to version 2.517.0 ([39183eb](https://github.com/verdaccio/monorepo/commit/39183eb)) | ||
- **package:** update aws-sdk to version 2.518.0 ([c4f18a6](https://github.com/verdaccio/monorepo/commit/c4f18a6)) | ||
# [8.0.0](https://github.com/verdaccio/verdaccio-aws-s3-storage/compare/v8.0.0-next.4...v8.0.0) (2019-08-22) | ||
### Bug Fixes | ||
* **package:** update aws-sdk to version 2.514.0 ([16860e6](https://github.com/verdaccio/verdaccio-aws-s3-storage/commit/16860e6)) | ||
* **package:** update aws-sdk to version 2.515.0 ([eed8547](https://github.com/verdaccio/verdaccio-aws-s3-storage/commit/eed8547)) | ||
- **package:** update aws-sdk to version 2.514.0 ([16860e6](https://github.com/verdaccio/verdaccio-aws-s3-storage/commit/16860e6)) | ||
- **package:** update aws-sdk to version 2.515.0 ([eed8547](https://github.com/verdaccio/verdaccio-aws-s3-storage/commit/eed8547)) | ||
# [8.0.0-next.4](https://github.com/verdaccio/verdaccio-aws-s3-storage/compare/v8.0.0-next.3...v8.0.0-next.4) (2019-08-18) | ||
@@ -314,6 +197,2 @@ | ||
# [8.0.0-next.2](https://github.com/verdaccio/verdaccio-aws-s3-storage/compare/v8.0.0-next.1...v8.0.0-next.2) (2019-08-03) | ||
@@ -323,6 +202,2 @@ | ||
# Changelog | ||
@@ -334,24 +209,17 @@ | ||
### Build System | ||
* update dependencies @verdaccio/commons-api ([151e4df](https://github.com/verdaccio/verdaccio-aws-s3-storage/commit/151e4df)) | ||
- update dependencies @verdaccio/commons-api ([151e4df](https://github.com/verdaccio/verdaccio-aws-s3-storage/commit/151e4df)) | ||
### [0.1.1](https://github.com/verdaccio/verdaccio-aws-s3-storage/compare/v0.1.0...v0.1.1) (2019-07-12) | ||
### Build System | ||
* update dependencies ([7a7c3b7](https://github.com/verdaccio/verdaccio-aws-s3-storage/commit/7a7c3b7)) | ||
- update dependencies ([7a7c3b7](https://github.com/verdaccio/verdaccio-aws-s3-storage/commit/7a7c3b7)) | ||
## 0.1.0 (2019-06-25) | ||
### Features | ||
* add aws s3 plugin in typescrip ([2e4df1d](https://github.com/verdaccio/verdaccio-aws-s3-storage/commit/2e4df1d)) | ||
* add logging ([#5](https://github.com/verdaccio/verdaccio-aws-s3-storage/issues/5)) ([16b9e0f](https://github.com/verdaccio/verdaccio-aws-s3-storage/commit/16b9e0f)) | ||
- add aws s3 plugin in typescrip ([2e4df1d](https://github.com/verdaccio/verdaccio-aws-s3-storage/commit/2e4df1d)) | ||
- add logging ([#5](https://github.com/verdaccio/verdaccio-aws-s3-storage/issues/5)) ([16b9e0f](https://github.com/verdaccio/verdaccio-aws-s3-storage/commit/16b9e0f)) |
@@ -12,2 +12,3 @@ "use strict"; | ||
exports.default = _default; | ||
exports.default = _default; | ||
//# sourceMappingURL=addTrailingSlash.js.map |
@@ -8,2 +8,3 @@ import { Config } from '@verdaccio/types'; | ||
s3ForcePathStyle?: boolean; | ||
tarballACL?: string; | ||
accessKeyId?: string; | ||
@@ -10,0 +11,0 @@ secretAccessKey?: string; |
@@ -1,1 +0,2 @@ | ||
"use strict"; | ||
"use strict"; | ||
//# sourceMappingURL=config.js.map |
@@ -34,2 +34,3 @@ "use strict"; | ||
}); | ||
} | ||
} | ||
//# sourceMappingURL=deleteKeyPrefix.js.map |
@@ -310,2 +310,3 @@ "use strict"; | ||
exports.default = S3Database; | ||
exports.default = S3Database; | ||
//# sourceMappingURL=index.js.map |
@@ -53,4 +53,6 @@ "use strict"; | ||
default: | ||
// @ts-ignore | ||
return (0, _commonsApi.getCode)(err.statusCode, err.message); | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=s3Errors.js.map |
@@ -10,2 +10,3 @@ import { UploadTarball, ReadTarball } from '@verdaccio/streams'; | ||
private readonly packagePath; | ||
private readonly tarballACL; | ||
constructor(config: S3Config, packageName: string, logger: Logger); | ||
@@ -12,0 +13,0 @@ updatePackage(name: string, updateHandler: Callback, onWrite: Callback, transformPackage: Function, onEnd: Callback): void; |
@@ -38,2 +38,4 @@ "use strict"; | ||
_defineProperty(this, "tarballACL", void 0); | ||
this.config = config; | ||
@@ -48,4 +50,6 @@ this.packageName = packageName; | ||
secretAccessKey, | ||
sessionToken | ||
sessionToken, | ||
tarballACL | ||
} = config; | ||
this.tarballACL = tarballACL || 'private'; | ||
this.s3 = new _awsSdk.S3({ | ||
@@ -72,2 +76,5 @@ endpoint, | ||
this.logger.trace({ | ||
tarballACL | ||
}, 's3: [S3PackageManager constructor] tarballACL @{tarballACL}'); | ||
this.logger.trace({ | ||
accessKeyId | ||
@@ -211,3 +218,3 @@ }, 's3: [S3PackageManager constructor] accessKeyId @{accessKeyId}'); | ||
data | ||
}, 's3: [S3PackageManager createPackage] package saved data from s3: @data'); | ||
}, 's3: [S3PackageManager createPackage] package saved data from s3: @{data}'); | ||
} else { | ||
@@ -233,3 +240,3 @@ this.logger.error({ | ||
value | ||
}, 's3: [S3PackageManager savePackage ] init value @value'); | ||
}, 's3: [S3PackageManager savePackage ] init value @{value}'); | ||
this.s3.putObject({ | ||
@@ -255,3 +262,3 @@ // TODO: not sure whether save the object with spaces will increase storage size | ||
packageName: this.packageName | ||
}, 's3: [S3PackageManager readPackage] packageName: @{packageName} / data @data'); | ||
}, 's3: [S3PackageManager readPackage] packageName: @{packageName} / data @{data}'); | ||
callback(null, data); | ||
@@ -306,3 +313,4 @@ } catch (err) { | ||
const managedUpload = this.s3.upload(Object.assign({}, baseS3Params, { | ||
Body: uploadStream | ||
Body: uploadStream, | ||
ACL: this.tarballACL | ||
})); // NOTE: there's a managedUpload.promise, but it doesn't seem to work | ||
@@ -376,3 +384,3 @@ | ||
baseS3Params | ||
}, 's3: [S3PackageManager writeTarball uploadStream abort] s3.deleteObject @{name}/@baseS3Params'); | ||
}, 's3: [S3PackageManager writeTarball uploadStream abort] s3.deleteObject @{name}/@{baseS3Params}'); | ||
this.s3.deleteObject(baseS3Params); | ||
@@ -418,3 +426,3 @@ } | ||
statusCode | ||
}, 's3: [S3PackageManager readTarball httpHeaders event] statusCode @statusCode'); | ||
}, 's3: [S3PackageManager readTarball httpHeaders event] statusCode @{statusCode}'); | ||
@@ -462,2 +470,3 @@ if (statusCode !== _commonsApi.HTTP_STATUS.NOT_FOUND) { | ||
exports.default = S3PackageManager; | ||
exports.default = S3PackageManager; | ||
//# sourceMappingURL=s3PackageManager.js.map |
@@ -13,2 +13,3 @@ "use strict"; | ||
exports.default = _default; | ||
exports.default = _default; | ||
//# sourceMappingURL=setConfigValue.js.map |
104
package.json
{ | ||
"name": "verdaccio-aws-s3-storage", | ||
"version": "10.0.0", | ||
"description": "AWS S3 storage implementation for Verdaccio", | ||
"keywords": [ | ||
"verdaccio", | ||
"plugin", | ||
"storage", | ||
"aws" | ||
], | ||
"author": "Juan Picado <juanpicado19@gmail.com>", | ||
"license": "MIT", | ||
"homepage": "https://verdaccio.org", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/verdaccio/monorepo", | ||
"directory": "plugins/aws-s3-storage" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/verdaccio/monorepo/issues" | ||
}, | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib/" | ||
], | ||
"engines": { | ||
"node": ">=8" | ||
}, | ||
"dependencies": { | ||
"@verdaccio/commons-api": "^10.0.0", | ||
"@verdaccio/streams": "^10.0.0", | ||
"aws-sdk": "^2.607.0" | ||
}, | ||
"devDependencies": { | ||
"@verdaccio/babel-preset": "^10.0.0", | ||
"@verdaccio/eslint-config": "^10.0.0", | ||
"@verdaccio/types": "^10.0.0", | ||
"recursive-readdir": "2.2.2" | ||
}, | ||
"scripts": { | ||
"build": "npm run build:types && npm run build:js", | ||
"build:js": "babel src/ --out-dir lib --extensions \".ts,.tsx\"", | ||
"build:types": "tsc --emitDeclarationOnly", | ||
"coverage:publish": "codecov --root=../../ -F plugins", | ||
"lint": "eslint \"**/*.{js,ts}\"", | ||
"test": "jest", | ||
"type-check": "tsc --noEmit", | ||
"type-check:watch": "npm run type-check -- --watch" | ||
}, | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/verdaccio" | ||
}, | ||
"gitHead": "e33b0509f6dcb10c9b893fdcd3846ca69eca0bd9" | ||
"name": "verdaccio-aws-s3-storage", | ||
"version": "10.1.0", | ||
"description": "AWS S3 storage implementation for Verdaccio", | ||
"keywords": [ | ||
"verdaccio", | ||
"plugin", | ||
"storage", | ||
"aws" | ||
], | ||
"author": "Juan Picado <juanpicado19@gmail.com>", | ||
"license": "MIT", | ||
"homepage": "https://verdaccio.org", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/verdaccio/monorepo", | ||
"directory": "plugins/aws-s3-storage" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/verdaccio/monorepo/issues" | ||
}, | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib/" | ||
], | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"dependencies": { | ||
"@verdaccio/commons-api": "10.0.0", | ||
"@verdaccio/streams": "10.0.0", | ||
"aws-sdk": "^2.607.0" | ||
}, | ||
"devDependencies": { | ||
"@verdaccio/types": "10.0.0", | ||
"recursive-readdir": "2.2.2" | ||
}, | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/verdaccio" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf ./build", | ||
"test": "cross-env NODE_ENV=test BABEL_ENV=test jest", | ||
"type-check": "tsc --noEmit -p tsconfig.build.json", | ||
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json", | ||
"build:js": "babel src/ --out-dir lib/ --copy-files --extensions \".ts,.tsx\" --source-maps", | ||
"watch": "pnpm build:js -- --watch", | ||
"build": "pnpm run build:js && pnpm run build:types" | ||
} | ||
} |
@@ -57,2 +57,3 @@ # verdaccio-aws-s3-storage | ||
s3ForcePathStyle: false # optional, will use path style URLs for S3 objects | ||
tarballACL: private # optional, use public-read to work with CDN like Amazon CloudFront | ||
accessKeyId: your-access-key-id # optional, aws accessKeyId for private S3 bucket | ||
@@ -97,4 +98,14 @@ secretAccessKey: your-secret-access-key # optional, aws secretAccessKey for private S3 bucket | ||
# Developer Testing # | ||
### Specify ACL of Tarball Files | ||
You can specify ACL of tarball files in S3 by the *tarballACL* configuration, set to 'private' by default. To enable S3 integrated CDN service (Amazon CloudFront for example), set *tarballACL* to 'public-read' to grant tarball files anonymous read permission. | ||
```yaml | ||
store: | ||
aws-s3-storage: | ||
tarballACL: public-read | ||
``` | ||
## Developer Testing | ||
In case of local testing, this project can be used self-efficiently. Four main ingredients are as follows: | ||
@@ -105,5 +116,5 @@ | ||
* The provided docker-compose also provides minio in orchestration as a local substitute for S3 backend | ||
* Create and set content of `registry.envs` as follows. This file does not exist on the repo and should be generated manually after cloning the project. | ||
* Create and set content of `registry.envs` as follows. This file does not exist on the repo and should be generated manually after cloning the project. | ||
``` | ||
``` | ||
AWS_ACCESS_KEY_ID=foobar | ||
@@ -110,0 +121,0 @@ AWS_SECRET_ACCESS_KEY=1234567e |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100789
2
25
846
137
+ Added@verdaccio/commons-api@10.0.0(transitive)
+ Added@verdaccio/streams@10.0.0(transitive)
+ Addeddepd@1.1.2(transitive)
+ Addedhttp-errors@1.8.0(transitive)
+ Addedhttp-status-codes@1.4.0(transitive)
+ Addedstatuses@1.5.0(transitive)
+ Addedtoidentifier@1.0.0(transitive)
- Removed@verdaccio/commons-api@10.2.0(transitive)
- Removed@verdaccio/streams@10.2.1(transitive)
- Removeddepd@2.0.0(transitive)
- Removedhttp-errors@2.0.0(transitive)
- Removedhttp-status-codes@2.2.0(transitive)
- Removedstatuses@2.0.1(transitive)
- Removedtoidentifier@1.0.1(transitive)
Updated@verdaccio/streams@10.0.0