EC2 signature inconsistency

Bug #1022749 reported by flaviamissi
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
goamz
Fix Released
Critical
Gustavo Niemeyer

Bug Description

Hi,

I'm trying to run some commands with goamz on an openstack installation.

Openstack have an implementation for the EC2 api, but I'm having an issue with the generated signature, I know, it could be a bug of openstack's api, but it isn't, I can use boto and a lot of other stuff that depends on this, including juju (also with boto).

The problem is that the generated signature doesn't match with the one that openstack is expecting. It is important to notice that openstack generates the expected signature based on boto's code[1].

[1] https://github.com/openstack/keystone/blob/master/keystone/contrib/ec2/core.py#L108

Tags: ec2
Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

Hey Flavia,

There's likely something wrong indeed, probably with the handling of +. James H. reported the same thing elsewhere.

If it's not asking too much, can I ask you for a few details:

1) The private and secret keys (*)
2) The signature generated by boto

(*) Please generate a new pair before posting in the bug.

This would be hugely helpful.

Thanks!

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

Sorry, I meant access and secret keys, obviously.

Revision history for this message
flaviamissi (flaviamissi) wrote :

Hey Gustavo,

So, I don't have access to those here at home, I'll send you tomorrow...

The strange thing is that there are no special chars in my access/secret keys..

I'll send you tomorrow anyway.

Thanks in advance.

Revision history for this message
flaviamissi (flaviamissi) wrote :

Hey!

Here is the stuff you need:

access key: 91232f6796b54ca2a2b87ef50548b123
secret key: 954f100153754093b9432ee23379afec
goamz's signature: w/NrbWvKTG3SOfFoY1Xd7EuAjuEm0BGjYh/kVLTZUg0=
expected signature: mlRT/Ik0CprXKYJC94gG63PVx71gMRmXaAQNw98nFxA= (generated by boto's code inside keystone)

I've also created a gist with my keystone log, in case you anything else, like my request: https://gist.github.com/3083112

Thanks!

Revision history for this message
flaviamissi (flaviamissi) wrote :

"I've also created a gist with my keystone log, in case you anything else"

in case you NEED anything else..

Revision history for this message
flaviamissi (flaviamissi) wrote :

Do you have plans for releasing the fix we talked about on irc?

Thanks!

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

It's in, Flavia. Thanks for helping with this.

Changed in goamz:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Gustavo Niemeyer (niemeyer)
status: Confirmed → Fix Released
Revision history for this message
flaviamissi (flaviamissi) wrote :

Thanks a lot!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.