Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features add bucket controller and signed urls to file:getUrl #26

Closed
wants to merge 26 commits into from

Conversation

Juiced66
Copy link
Contributor

@Juiced66 Juiced66 commented Jul 3, 2023

What does this PR do?

Features :

Handle Signed URL to get files

Add Bucket controller :

Boyscout

Add region to default config

@Juiced66 Juiced66 changed the title feat: add bucket controller DRAFT: feat: add bucket controller Jul 3, 2023
@Juiced66 Juiced66 changed the title DRAFT: feat: add bucket controller DRAFT: features add bucket controller and signed urls to file:getUrl Jul 4, 2023
@Juiced66 Juiced66 force-pushed the feat-add-bucket-controller branch from 745fa7e to 9a12c6c Compare July 4, 2023 05:46
Copy link
Contributor

@Aschen Aschen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job extracting this 👍

Also, if this PR is a draft then it should be a real Github draft instead of adding DRAFT in the name

lib/S3Plugin.js Outdated Show resolved Hide resolved
lib/S3Plugin.js Show resolved Hide resolved
lib/S3Plugin.js Show resolved Hide resolved
lib/S3Plugin.js Outdated Show resolved Hide resolved
lib/S3Plugin.js Show resolved Hide resolved
lib/S3Plugin.js Show resolved Hide resolved
doc/2/controllers/bucket/delete/index.md Show resolved Hide resolved
doc/2/controllers/bucket/create/index.md Outdated Show resolved Hide resolved
doc/2/controllers/bucket/create/index.md Outdated Show resolved Hide resolved
doc/2/controllers/bucket/create/index.md Outdated Show resolved Hide resolved
doc/2/controllers/bucket/create/index.md Outdated Show resolved Hide resolved
doc/2/controllers/bucket/create/index.md Outdated Show resolved Hide resolved
doc/2/controllers/bucket/create/index.md Outdated Show resolved Hide resolved

const params = { Bucket: bucketName };

await this.s3.createBucket({ ...params, ...bucketOptions }).promise();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is intended to allow user use aws-sdk s3 options

lib/S3Plugin.js Outdated
if (err.code === 'NotFound') {
return false;
}
throw new this.context.errors.InternalError(err.message);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@Juiced66 Juiced66 changed the title DRAFT: features add bucket controller and signed urls to file:getUrl Features add bucket controller and signed urls to file:getUrl Jul 10, 2023
@Juiced66 Juiced66 mentioned this pull request Jul 10, 2023
@matgardon
Copy link

Is this PR intended to be merged in master at some point ? if not what would be the blocking points ?

@matgardon
Copy link

FYI I've had to add some stuff and I'm working on an update branch to handle bucket creation use cases properly: https://github.com/matgardon/kuzzle-plugin-s3/tree/feat/add-s3-bucket-controller

@Juiced66
Copy link
Contributor Author

I'll take a look to it @matgardon

@Juiced66
Copy link
Contributor Author

finally closed due to #33 wich's way more advanced

@Juiced66 Juiced66 closed this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants