Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What values need to go in aws_key_scope? #30

Open
siulcode opened this issue Aug 25, 2016 · 4 comments
Open

What values need to go in aws_key_scope? #30

siulcode opened this issue Aug 25, 2016 · 4 comments

Comments

@siulcode
Copy link

siulcode commented Aug 25, 2016

I'm trying to figure out what value needs to go in:
aws_key_scope scope_of_generated_signing_key;

is it only the region name?

I'm getting the following "Malformed entry" error. Any help on this would be GREATLY appreciated.

ERROR:

<Error>
<Code>AuthorizationHeaderMalformed</Code>
<Message>
The authorization header is malformed; the Credential is mal-formed; expecting "<YOUR-AKID>/YYYYMMDD/REGION/SERVICE/aws4_request".
</Message>
<RequestId>59D3A159DA4C78A6</RequestId>
<HostId>
/+Ern48H+67YCS+dSvGkXUtxnUUndZNAojMAnfUdgpVI0zaodKOvNe/Aut93+bltXetXPVXKzDU=
</HostId>
</Error>

NGINX CONF:

    location /saspub/ {
    aws_sign;
        proxy_pass http://MYBUCKET.s3.amazonaws.com/$1;

        aws_access_key MYACCESSKEY;
        #aws_key_scope scope_of_generated_signing_key;
        aws_signing_key MYGENERATED_KEY_WITH_SCRIPT;

    resolver        MYDNSIP;
    resolver_timeout    10s;
    }
@chikamichi
Copy link

chikamichi commented Aug 27, 2016

I've not used this nginx plugin yet, but considering to. AFAIK, the V4 scope is of the following shape:

date/region/service/aws4_request

For instance:

20160827/eu-west-1/s3/aws4_request

Source: official changelog

@anomalizer
Copy link
Owner

@chikamichi is right

@siulcode
Copy link
Author

siulcode commented Sep 8, 2016

I got it to work.

@anomalizer is continuous development still going on with this module for http post?

Thanks guys.
LL

@anomalizer
Copy link
Owner

@siulcode I am not currently working on HTTP POST. It is fairly complex given that the post body will have to be uploaded in chunks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants