KeeAnywhere icon indicating copy to clipboard operation
KeeAnywhere copied to clipboard

Cloudflare R2 - Cannot Save to R2

Open hockey6611 opened this issue 6 months ago • 1 comments

Describe the bug KeeAnywhere is unable to save to Cloudflare R2 (using KeeAnywhere S3 compatible account). This appears to be due R2 not implementing streaming SigV4, and KeeAnywhere received the error: (501): Not Implemented, STREAMING-AWS4-HMAC-SHA256-PAYLOAD.

According to these R2 Docs issues:

package attempts streaming SigV4 so the operations need to be given the DisablePayloadSigning = true option https://github.com/cloudflare/cloudflare-docs/issues/6133 https://github.com/cloudflare/cloudflare-docs/issues/4683

Searching for the error leads to other projects that have the same issues that are fixed by disabling payload signing: https://forum.duplicati.com/t/back-up-to-cloudflare-r2-storage-fails/15511/19

To Reproduce Steps to reproduce the behavior:

  1. Successfully setup Cloudflare R2 as an Amazon S3 account in KeeAnywhere.
  2. Open your database
  3. Make a change, and save. Receive error in screenshot below.

Expected behavior KeeAnywhere should be able to utilize Cloudflare R2 as an S3-compatible account provider

Screenshots image image

Environment:

  • OS and Version: Windows 10
  • KeePass-Version: 2.57
  • KeeAnywhere-Version: 2.1

Additional context I realize that Cloudflare R2 could be considered not "compatible" with Amazon S3 if they do no implement all operations. It would still be nice to be able to use cloudflare R2 with KeeAnywhere 😀

hockey6611 avatar Aug 21 '24 03:08 hockey6611