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

Amazon S3: Cannot save/write database file to root of bucket #58

Closed
mxscho opened this issue Oct 5, 2016 · 4 comments
Closed

Amazon S3: Cannot save/write database file to root of bucket #58

mxscho opened this issue Oct 5, 2016 · 4 comments
Labels
Milestone

Comments

@mxscho
Copy link

mxscho commented Oct 5, 2016

When using Amazon S3 buckets as the storage location for a KeePass database file, it is possible for me to open/read database files from it, but not save/write them.
When I try to save a KeePass database file to an Amazon S3 url using this plugin after having it opened successfully from the same url, I always get this error:

s3:///[my-s3-account]/[my-s3-bucket]/database
Failed to save the current database to the specified location!
One or more errors occurred.
The target file might be corrupted. Please try saving again. If that fails, save the database to a different location.

my-s3-account should default to "S3 Account" when just creating a single S3 storage location as far as I know.

For testing purposes, I attached the AmazonS3FullAccess policy to the AWS user account which is used by this plugin (from which the access/secret keys are taken). This should enable full access to all S3 buckets, which is way more than the plugin should require.
The KeeAnywhere settings dialog also confirms me access to the account/S3 bucket when checking.

I'm not quite sure if there might even be a problem with the path I am using. My file is indeed just called "database" without any file extension and placed in the root directory/the corresponding bucket itself.
However, I remember that I actually tried saving it to another file name and that has failed as well.

Due to a lack of other accounts I haven't been able to test any other supported provider yet.
I'm not using any other storage-based plugins with KeePass, just KeeAgent and KeePassHttp which should not do something related to the features of this plugin.

@Kyrodan Kyrodan added the bug label Oct 6, 2016
@Kyrodan
Copy link
Owner

Kyrodan commented Oct 6, 2016

Hi @mxscho,

I can reproduce this: You cannot save to the root of your bucket (even if you have loaded from there).
This seems to be a bug I will fix for next release.

Workaround: load and save in a folder within your bucket.

Regards,
Daniel

@mxscho
Copy link
Author

mxscho commented Oct 6, 2016

I can confirm that this works perfectly. Thanks for that!

@Kyrodan Kyrodan changed the title Cannot save/write database file using Amazon S3 Amazon S3: Cannot save/write database file to root of bucket Oct 10, 2016
@Kyrodan Kyrodan added this to the 1.4.0 milestone Oct 10, 2016
@richardcmckinney
Copy link

@Kyrodan was this bug fixed in the most recent release?
thanks for your work on KeeAnywhere.

@Kyrodan
Copy link
Owner

Kyrodan commented Mar 8, 2017

No, in recent version 1.3.1 this is still open. It's fixed in code for the upcoming 1.4.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants