Spree 5 + Supabase + Railways
Hey everyone!
I'm having an authentication issue while trying to configure Supabase S3 to store images for my Spree (Ruby on Rails) project.
The exact error I'm getting is: "The request signature we calculated does not match the signature you provided. Check your key and signing method."
I've already checked my credentials, the bucket region, and the system time, but the error persists.
Has anyone else faced this issue? Can you help me with the correct Spree configuration to fix this signature error?
6 Replies
I dont know about spree but in js sdk, we have to add
forcePathStyle: true
in config.
Google says the equivalent in your case should be force_path_style: true
Please show what your Spree config looks like for the s3 setup.
supabase:
service: supabase
endpoint: <%= ENV['SUPABASE_STORAGE_ENDPOINT'] %>
region: <%= ENV['SUPABASE_STORAGE_REGION'] %>
bucket: <%= ENV['SUPABASE_BUCKET_NAME'] %>
access_key_id: <%= ENV['SUPABASE_STORAGE_ACCESS_KEY_ID'] %>
secret_access_key: <%= ENV['SUPABASE_STORAGE_SECRET_ACCESS_KEY'] %>
force_path_style: true
Has it worked since you tried what inder recommended?
No :/
Shouldn't the s3 config look like this? https://spreecommerce.org/docs/developer/deployment/assets#aws-s3
Its also defined in their starter template https://github.com/spree/spree_starter/blob/main/config/storage.yml