Feature #985

Add path support for EC2 signature

Added by Daniel Molina 6 months ago. Updated 4 months ago.

Status:Closed Start date:11/16/2011
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:Release 3.2.1
Resolution:fixed
Story points-
Velocity based estimate-

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
related to Feature #925: Update EC2 signature generation in order to support custo... Closed 10/18/2011

Associated revisions

Revision be3d1fed
Added by Daniel Molina 4 months ago

feature #985: Add path support for EC2 signature

Revision 0323a151
Added by Daniel Molina 4 months ago

feature #985: Fix minor bug

History

Updated by Carlos Martín 4 months ago

  • Status changed from New to Closed
  • Target version set to Release 3.2.1
  • Resolution set to fixed

Also available in: Atom PDF