Feature #985

Add path support for EC2 signature

Added by Daniel Molina over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:11/16/2011
Priority:NormalDue 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/')

  1. 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

Related to Feature #917: EC2 Signature: allow custom port when using an SSL Proxy Closed 10/13/2011

Associated revisions

Revision be3d1fed
Added by Daniel Molina over 9 years ago

feature #985: Add path support for EC2 signature

Revision 0323a151
Added by Daniel Molina over 9 years ago

feature #985: Fix minor bug

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

Also available in: Atom PDF