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

chore(apigatewayv2): review readme #27996

Merged
merged 20 commits into from
Nov 21, 2023
Merged

Conversation

sumupitchayan
Copy link
Contributor

API Review Session for aws-apigatewayv2-alpha, aws-apigatewayv2-authorizers-alpha, and aws-apigatewayv2-integrations-alpha.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
@aws-cdk-automation aws-cdk-automation requested a review from a team November 14, 2023 22:45
@github-actions github-actions bot added the p2 label Nov 14, 2023
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 14, 2023
Signed-off-by: Sumu <sumughan@amazon.com>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incomplete sentence? Access control for Http APIs is managed by restricting which routes can be invoked via.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do we mean by 'app client'?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can set an authorizer to your WebSocket API's $connect route to control access to your API.

Does this also apply to Lambda Authorizers in WebSocket? Or do we have a property that reflects this?

Copy link
Contributor

@scanlonp scanlonp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General comments:

  • We do not explain integrations before we use them in ApiGatewayV2. I do not think linking the other module is enough. We should give a quick run down of what the integrations are used for, and how they help before we use them in the first code example.
  • Using routes is not explained in detail. I see many examples of adding routes, but few on using them after creation.b
    • In the authorizers readme, it does a grant method on routes[0] (line 225)
    • Is this how we should reference routes? What if I have 10 routes, do I need to keep track of the array? Could I give them a name instead to reference by?
  • IAM authorizers are not consistent between HTTP and Websocket.
    • In the websocket section, we create an IAM user and manually write a policy. This cannot be the preferred way of adding IAM policys (288)
  • I would like to see more in-line comments in the code examples, especially the early examples. There is too much unexplained code. I think a short comment on most lines giving the idea of what it does would be helpful to follow along for the rest of the examples.
    • I think apigatewayv1 is sometimes overboard on in-line comments. apigatewayv2 is a little underboard.

cgarvis and others added 6 commits November 16, 2023 09:48
@sumupitchayan sumupitchayan marked this pull request as ready for review November 20, 2023 16:02
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Nov 20, 2023
Copy link
Contributor

mergify bot commented Nov 21, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Nov 21, 2023
Copy link
Contributor

mergify bot commented Nov 21, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 167a832
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 6a147b7 into main Nov 21, 2023
12 checks passed
@mergify mergify bot deleted the sumughan/apigwv2-readme-review branch November 21, 2023 16:55
Copy link
Contributor

mergify bot commented Nov 21, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants