node-red-web-nodes
node-red-web-nodes copied to clipboard
S3 on node-red-node-aws will not upload if account cannot access root directory of bucket
Which node are you reporting an issue on?
node-red-node-aws
What are the steps to reproduce?
Configure AWS connection to a bucket where credentials do not have list/read/write access to the root directory of the bucket.
my-bucket
- Credentials cannot list/read/write
my-bucket/accounts/my-account/
- Have list/read/write access
What happens?
Upon deploying changes, debugger receives error "AWS S3 error: AccessDenied: Access Denied", and then any messages passed to the node will not write objects to any path in the bucket.
What do you expect to happen?
Expected that the node will still attempt to write objects to a path in the bucket and only return "Access Denied" error if indeed the credentials don't have access to the specific path. Currently, however, the node will not function at all if the root path is inaccessible.
Please tell us about your environment:
- [x] Node-RED version: 2.2.2
- [x] node.js version: 14.18.2
- [x] npm version: 6.14.15
- [x] Platform/OS: Docker container nodered/node-red
- [x] Browser: Chrome