Feature #985
Add path support for EC2 signature
Status: | Closed | Start date: | 11/16/2011 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | - | |||
Target version: | Release 3.2.1 | |||
Resolution: | fixed | Pull request: |
Description
--- a/src/cloud/common/CloudAuth/EC2CloudAuth.rb
index e60f653..9c07f1a 100644
--- a/src/cloud/common/CloudAuth/EC2CloudAuth.rb
++ b/src/cloud/common/CloudAuth/EC2CloudAuth.rb@ -68,7 +68,8
@ module EC2CloudAuth
canonical_str = AWS.canonical_string(
params,
server_str,
- env['REQUEST_METHOD'])
env['REQUEST_METHOD'],
+ '/econe/')
- Use the correct signature strength
sha_strength = case params['SignatureMethod']
diff --git a/src/cloud/ec2/lib/EC2QueryClient.rb b/src/cloud/ec2/lib/EC2QueryClient.rb
index f39e525..3b52900 100644
--- a/src/cloud/ec2/lib/EC2QueryClient.rb
++ b/src/cloud/ec2/lib/EC2QueryClient.rb@ -76,7 +76,8
@ module EC2QueryClient
:secret_access_key => @access_key_secret,
:server => @uri.host,
:port => @uri.port,
- :use_ssl => @uri.scheme 'https')
:use_ssl => @uri.scheme 'https',
+ :path => @uri.path)
end
Related issues
History
#1 Updated by Carlos MartÃn over 9 years ago
- Status changed from New to Closed
- Target version set to Release 3.2.1
- Resolution set to fixed