speke-reference-server icon indicating copy to clipboard operation
speke-reference-server copied to clipboard

ClientLambdaFunction

Open tbommireddy opened this issue 6 years ago • 2 comments

HI,

I downloaded the SPEKE reference implementation and setup the server using the template provided. I can't seem to find the ClientLambdaFunction to set the following parameter:

CLIENT_FUNCTION_NAME = "eke-server-EkeClientLambdaFunction-OK9F7TPIWV3L"

I don't see any steps for creating the client lambda function in the template.

Any idea where i can find this.

Thanks, Teju

tbommireddy avatar Jun 11 '18 19:06 tbommireddy

Hi, thanks for the report. This section needs an update. Client requests no longer route through API Gateway, but instead are handled via the S3 bucket and CloudFront. At a minimum the CloudFront endpoint should be checked in the testing documents. We may lock-down the bucket to only CloudFront in the future.

The flow of testing should be something like:

  1. Send a key generation request to the /copyProtection endpoint of API Gateway.
  2. Receive a response with the key.
  3. Send a client key request via the CloudFront endpoint.
  4. Receive the key.
  5. Keys returned in step 2 and step 4 must be the same (symmetric cipher).

JimTharioAmazon avatar Jun 12 '18 17:06 JimTharioAmazon

Hello! i'am trying to use it as well... i executed the server lambda and got the response value from cpix:Datapskc:Secretpskc:PlainValue

After that i called the cloudfront url {cloudfronturl}/resource_id/kid

And downloaded the file generated by the server lambda... but the content is different, in the archive seems encypted (€åür©I ¡GxA∫).. is it right? How i get the real value or is it right?

thiagoananias avatar Jan 24 '20 16:01 thiagoananias