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

issue/234 - Add edge function for signing and Host header replacement #244

Merged
merged 11 commits into from
May 22, 2022

Conversation

huntharo
Copy link
Collaborator

@huntharo huntharo commented May 21, 2022

  • Fixes Next - CDK - Sign Requests to Origin Option #234
  • Status 05/21
    • Edge function is deployed to us-east-1 no matter where the origin stack is deployed
    • Execute privs are granted via a resource tag condition to avoid a circular ref between the edge and origin stacks
    • The CDK stack is not enabling IAM auth on the HTTP API for some reason
    • awscurl command works against the API Gateway endpoint when IAM is manually enabled
    • The CloudFront Edge function signed requests are rejected with:
      • 403: "The request for the IAM Authorizer doesn't match the format that API Gateway expects."
    • The Deployer function needs to set the IAM auth on app and version routes when enabled
    • The config.yml file is getting copied into the Edge Lambda code
    • The Edge Lambda code contains extraneous files - Need to build into a different directory
      • Will address later - not super important

@huntharo huntharo force-pushed the issue/234-lambda-edge-function branch from de225c7 to 8b99c06 Compare May 21, 2022 20:35
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 02:54 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 02:54 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 02:54 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 03:57 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 04:10 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 04:10 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 13:37 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 17:33 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 17:33 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 21:45 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 21:45 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 21:45 Inactive
@huntharo huntharo merged commit d459664 into main May 22, 2022
@huntharo huntharo deleted the issue/234-lambda-edge-function branch May 22, 2022 22:01
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 22:01 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 22, 2022 22:01 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 23, 2022 14:30 Inactive
@huntharo huntharo temporarily deployed to ghpublic May 23, 2022 14:30 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Next - CDK - Sign Requests to Origin Option
1 participant