Digital Ocean Spaces API returns SignatureDoesNotMatch for Simple List Request

Posted June 24, 2020 1k views
APIStorageObject StorageProduct DocumentationDigitalOcean Spaces

I’m running into an issue whereby the simplest request I could think of (just listing a bucket) fails with the dreaded SignatureDoesNotMatch error message. I was using a non-standard library, so I figured I’d try to reconstruct the request with bash/openssl/cURL to see what was happening. It appears that I’m still running into the issue.

Example error output:

<?xml version="1.0" encoding="UTF-8"?><Error><Code>SignatureDoesNotMatch</Code><RequestId>tx00000000000004cfeff77-005ef3b1ce-265622-nyc3b</RequestId><HostId>265622-nyc3b-nyc-zg02</HostId></Error>

The script I’m running:

Note that the documentation seems to indicate that this (i.e. authing with AWSv4 signature requests) should work. See specifically the Authentication section of the official Spaces documentation page

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!