Skip to content

chore: Merge from develop into feat/apigw-lambda-auth - #4642

Merged
lucashuy merged 6 commits into
aws:feat/apigw-lambda-authfrom
lucashuy:merge_develop
Jan 31, 2023
Merged

chore: Merge from develop into feat/apigw-lambda-auth#4642
lucashuy merged 6 commits into
aws:feat/apigw-lambda-authfrom
lucashuy:merge_develop

Conversation

@lucashuy

Copy link
Copy Markdown
Contributor

Mandatory Checklist

PRs will only be reviewed after checklist is complete

  • Add input/output type hints to new functions/methods
  • Write design document if needed (Do I need to write a design document?)
  • Write/update unit tests
  • Write/update integration tests
  • Write/update functional tests if needed
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

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

mildaniel and others added 6 commits January 26, 2023 01:17
* feat: Add table view and rich table (aws#3851)

* Add table view and rich table

* Black reformat

* Update reproducible reqs

* Comment out table comparison assertions

* Make rich table class members protected

* feat: Adding base commands and help messages for sam list (aws#3912)

* Added the base commands of sam list and their corresponding help messages

* Added no-args handling to base commands and added files for integration test suite

* Made additions to resources integration tests

* Made additions to the sam list integration test suite

* Added to sam list integration and unit tests

* Added integration tests to test help messages of sam list commands

* Reformatted files

* Cleaned up unfinished tests

* adding check to see what the appveyor test will produce. Trying to resolve test failure

* Fixed test to check help messages

* modified pattern matching for eliminating newlines when matching help message

* Changed the way whitespaces are handled in matching help messages

* Addressed PR comments, moved items into common classes

* Made modifications based on comments, removed relative import paths, added method annotations, fixed text formatting

* Reformatted files

* removed folder deletion

* removed uneccessary folder creation and deletion

* fixed errors with cwd of integration tests

Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* Added the stack-outputs command implementation and tests (aws#3947)


Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* Refactored stack outputs command to the producer mapper consumer design pattern (aws#3980)

* Added the base commands of sam list and their corresponding help messages

* Added no-args handling to base commands and added files for integration test suite

* Made additions to resources integration tests

* Made additions to the sam list integration test suite

* Added to sam list integration and unit tests

* Added integration tests to test help messages of sam list commands

* Reformatted files

* Cleaned up unfinished tests

* adding check to see what the appveyor test will produce. Trying to resolve test failure

* Fixed test to check help messages

* modified pattern matching for eliminating newlines when matching help message

* Changed the way whitespaces are handled in matching help messages

* Addressed PR comments, moved items into common classes

* Made modifications based on comments, removed relative import paths, added method annotations, fixed text formatting

* Reformatted files

* removed folder deletion

* removed uneccessary folder creation and deletion

* fixed errors with cwd of integration tests

* Added implementation and tests for the stack-outputs command

* Added test skips for integration tests, added unit tests, removed redundant init_client call

* commit to retrigger appveyor tests

* Commmit to trigger appveyor

* Modified client source, made fixes based on comments

* Made fixes based on comments

* Combined get_stack_info and stack_exists, and modified unit tests

* Empty-Commit

* Empty-Commit

* Empty-Commit

* fixed tests based on comments

* reformatted file

* Refactored stack outputs command to the producer mapper consumer design pattern

* Fixed formatting

* Moved interfaces, made changes based on comments

* Made fixes based on comments

* Made fixes based on comments

* Empty commit

* Made changes based on comments, added new exceptions

* Fixed format

* Fixed return type declaration

* Fixed return type declaration

* Changed return type to list

* Fixed error

Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* Local transform and resource collection (aws#4020)


Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* feat: Adding cloud resources to sam list resources output (aws#4056)

* Added the base commands of sam list and their corresponding help messages

* Added no-args handling to base commands and added files for integration test suite

* Made additions to resources integration tests

* Made additions to the sam list integration test suite

* Added to sam list integration and unit tests

* Added integration tests to test help messages of sam list commands

* Reformatted files

* Cleaned up unfinished tests

* adding check to see what the appveyor test will produce. Trying to resolve test failure

* Fixed test to check help messages

* modified pattern matching for eliminating newlines when matching help message

* Changed the way whitespaces are handled in matching help messages

* Addressed PR comments, moved items into common classes

* Made modifications based on comments, removed relative import paths, added method annotations, fixed text formatting

* Reformatted files

* removed folder deletion

* removed uneccessary folder creation and deletion

* fixed errors with cwd of integration tests

* Added implementation and tests for the stack-outputs command

* Added test skips for integration tests, added unit tests, removed redundant init_client call

* commit to retrigger appveyor tests

* Commmit to trigger appveyor

* Modified client source, made fixes based on comments

* Made fixes based on comments

* Combined get_stack_info and stack_exists, and modified unit tests

* Empty-Commit

* Empty-Commit

* Empty-Commit

* fixed tests based on comments

* reformatted file

* Refactored stack outputs command to the producer mapper consumer design pattern

* Fixed formatting

* Moved interfaces, made changes based on comments

* Made fixes based on comments

* Made fixes based on comments

* Empty commit

* Made changes based on comments, added new exceptions

* Fixed format

* Fixed return type declaration

* Fixed return type declaration

* Changed return type to list

* Fixed error

* Implementation of the local transform and resource collection

* Empty-Commit

* Added section to avoid unused variable

* Refactored common code

* Added tests, modified PR

* Fixed formatting

* Made fixes based on PR comments

* Fixed formatting

* Fixed typing errors

* Reverted typing

* Fixed error with typing

* Made changes to handling optional params

* Fixes to typing errors

* Made edits based on comments

* Fixed error

* Changed return type

* Reverted return type due to make pr error

* Added change to fix make pr error

* Removed translate_utils.py file

* Added cloud resources to sam list resources output

* Empty commit

* modified test format

* Modified tests

* Modified test

Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* feat: Adding the sam list testable resources command, tests, and table output format support for all sam list commands (aws#4081)

* Added the base commands of sam list and their corresponding help messages

* Added no-args handling to base commands and added files for integration test suite

* Made additions to resources integration tests

* Made additions to the sam list integration test suite

* Added to sam list integration and unit tests

* Added integration tests to test help messages of sam list commands

* Reformatted files

* Cleaned up unfinished tests

* adding check to see what the appveyor test will produce. Trying to resolve test failure

* Fixed test to check help messages

* modified pattern matching for eliminating newlines when matching help message

* Changed the way whitespaces are handled in matching help messages

* Addressed PR comments, moved items into common classes

* Made modifications based on comments, removed relative import paths, added method annotations, fixed text formatting

* Reformatted files

* removed folder deletion

* removed uneccessary folder creation and deletion

* fixed errors with cwd of integration tests

* Added implementation and tests for the stack-outputs command

* Added test skips for integration tests, added unit tests, removed redundant init_client call

* commit to retrigger appveyor tests

* Commmit to trigger appveyor

* Modified client source, made fixes based on comments

* Made fixes based on comments

* Combined get_stack_info and stack_exists, and modified unit tests

* Empty-Commit

* Empty-Commit

* Empty-Commit

* fixed tests based on comments

* reformatted file

* Refactored stack outputs command to the producer mapper consumer design pattern

* Fixed formatting

* Moved interfaces, made changes based on comments

* Made fixes based on comments

* Made fixes based on comments

* Empty commit

* Made changes based on comments, added new exceptions

* Fixed format

* Fixed return type declaration

* Fixed return type declaration

* Changed return type to list

* Fixed error

* Implementation of the local transform and resource collection

* Empty-Commit

* Added section to avoid unused variable

* Refactored common code

* Added tests, modified PR

* Fixed formatting

* Made fixes based on PR comments

* Fixed formatting

* Fixed typing errors

* Reverted typing

* Fixed error with typing

* Made changes to handling optional params

* Fixes to typing errors

* Made edits based on comments

* Fixed error

* Changed return type

* Reverted return type due to make pr error

* Added change to fix make pr error

* Removed translate_utils.py file

* Added cloud resources to sam list resources output

* Empty commit

* modified test format

* Modified tests

* Modified test

* Adding the sam list testable resources command, tests, and table output format support for all sam list commands

* Changed table and made changes based on pr comments

* Fixed integration test expected outputs

* Fixed table heading

* Added docstring and re-arranged the testable resources producer to reduce if-elses within a single function

* Fixed format

Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* Renaming the 'testable-resources' command to 'endpoints' (aws#4116)

* Added the base commands of sam list and their corresponding help messages

* Added no-args handling to base commands and added files for integration test suite

* Made additions to resources integration tests

* Made additions to the sam list integration test suite

* Added to sam list integration and unit tests

* Added integration tests to test help messages of sam list commands

* Reformatted files

* Cleaned up unfinished tests

* adding check to see what the appveyor test will produce. Trying to resolve test failure

* Fixed test to check help messages

* modified pattern matching for eliminating newlines when matching help message

* Changed the way whitespaces are handled in matching help messages

* Addressed PR comments, moved items into common classes

* Made modifications based on comments, removed relative import paths, added method annotations, fixed text formatting

* Reformatted files

* removed folder deletion

* removed uneccessary folder creation and deletion

* fixed errors with cwd of integration tests

* Added implementation and tests for the stack-outputs command

* Added test skips for integration tests, added unit tests, removed redundant init_client call

* commit to retrigger appveyor tests

* Commmit to trigger appveyor

* Modified client source, made fixes based on comments

* Made fixes based on comments

* Combined get_stack_info and stack_exists, and modified unit tests

* Empty-Commit

* Empty-Commit

* Empty-Commit

* fixed tests based on comments

* reformatted file

* Refactored stack outputs command to the producer mapper consumer design pattern

* Fixed formatting

* Moved interfaces, made changes based on comments

* Made fixes based on comments

* Made fixes based on comments

* Empty commit

* Made changes based on comments, added new exceptions

* Fixed format

* Fixed return type declaration

* Fixed return type declaration

* Changed return type to list

* Fixed error

* Implementation of the local transform and resource collection

* Empty-Commit

* Added section to avoid unused variable

* Refactored common code

* Added tests, modified PR

* Fixed formatting

* Made fixes based on PR comments

* Fixed formatting

* Fixed typing errors

* Reverted typing

* Fixed error with typing

* Made changes to handling optional params

* Fixes to typing errors

* Made edits based on comments

* Fixed error

* Changed return type

* Reverted return type due to make pr error

* Added change to fix make pr error

* Removed translate_utils.py file

* Added cloud resources to sam list resources output

* Empty commit

* modified test format

* Modified tests

* Modified test

* Adding the sam list testable resources command, tests, and table output format support for all sam list commands

* Changed table and made changes based on pr comments

* Fixed integration test expected outputs

* Fixed table heading

* Added docstring and re-arranged the testable resources producer to reduce if-elses within a single function

* Fixed format

* Renamed command from testable resources to endpoints

Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* Cleanup integration tests

* Cleanup tests, address comments

* Move boto3 imports, update unit tests

* Add comments, use constants for resources

* Update unit test mocking type

* Add missing parameters

* Add additional comments

* Fix spelling, minor updates

Co-authored-by: Mehmet Nuri Deveci <5735811+mndeveci@users.noreply.github.com>
Co-authored-by: andrewzhan <andrewzhan8@gmail.com>
Co-authored-by: Andrew Zhan <zhandr@amazon.com>
* fix: Fix failing list tests on Windows

* Black reformat
* Update lint helpand output message

* Add event tracking for sam validate --lint metrics

* Add unit test for tracking

---------

Co-authored-by: Sriram Madapusi Vasudevan <3770774+sriram-mv@users.noreply.github.com>
Co-authored-by: Qingchuan Ma <69653965+qingchm@users.noreply.github.com>
Co-authored-by: Mehmet Nuri Deveci <5735811+mndeveci@users.noreply.github.com>
@lucashuy
lucashuy requested a review from a team as a code owner January 31, 2023 19:55
@lucashuy
lucashuy requested review from hawflau and jfuss January 31, 2023 19:55
@github-actions github-actions Bot added pr/internal area/validate sam validate command labels Jan 31, 2023
@lucashuy
lucashuy merged commit 1e439e7 into aws:feat/apigw-lambda-auth Jan 31, 2023
@lucashuy

Copy link
Copy Markdown
Contributor Author

Overriding reviewers to merge from develop into feature branch.

@lucashuy
lucashuy deleted the merge_develop branch January 31, 2023 20:15
lucashuy added a commit that referenced this pull request Apr 13, 2023
* chore: Merge from develop into feat/apigw-lambda-auth (#4642)

* feat: List Command (#4587)

* feat: Add table view and rich table (#3851)

* Add table view and rich table

* Black reformat

* Update reproducible reqs

* Comment out table comparison assertions

* Make rich table class members protected

* feat: Adding base commands and help messages for sam list (#3912)

* Added the base commands of sam list and their corresponding help messages

* Added no-args handling to base commands and added files for integration test suite

* Made additions to resources integration tests

* Made additions to the sam list integration test suite

* Added to sam list integration and unit tests

* Added integration tests to test help messages of sam list commands

* Reformatted files

* Cleaned up unfinished tests

* adding check to see what the appveyor test will produce. Trying to resolve test failure

* Fixed test to check help messages

* modified pattern matching for eliminating newlines when matching help message

* Changed the way whitespaces are handled in matching help messages

* Addressed PR comments, moved items into common classes

* Made modifications based on comments, removed relative import paths, added method annotations, fixed text formatting

* Reformatted files

* removed folder deletion

* removed uneccessary folder creation and deletion

* fixed errors with cwd of integration tests

Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* Added the stack-outputs command implementation and tests (#3947)


Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* Refactored stack outputs command to the producer mapper consumer design pattern (#3980)

* Added the base commands of sam list and their corresponding help messages

* Added no-args handling to base commands and added files for integration test suite

* Made additions to resources integration tests

* Made additions to the sam list integration test suite

* Added to sam list integration and unit tests

* Added integration tests to test help messages of sam list commands

* Reformatted files

* Cleaned up unfinished tests

* adding check to see what the appveyor test will produce. Trying to resolve test failure

* Fixed test to check help messages

* modified pattern matching for eliminating newlines when matching help message

* Changed the way whitespaces are handled in matching help messages

* Addressed PR comments, moved items into common classes

* Made modifications based on comments, removed relative import paths, added method annotations, fixed text formatting

* Reformatted files

* removed folder deletion

* removed uneccessary folder creation and deletion

* fixed errors with cwd of integration tests

* Added implementation and tests for the stack-outputs command

* Added test skips for integration tests, added unit tests, removed redundant init_client call

* commit to retrigger appveyor tests

* Commmit to trigger appveyor

* Modified client source, made fixes based on comments

* Made fixes based on comments

* Combined get_stack_info and stack_exists, and modified unit tests

* Empty-Commit

* Empty-Commit

* Empty-Commit

* fixed tests based on comments

* reformatted file

* Refactored stack outputs command to the producer mapper consumer design pattern

* Fixed formatting

* Moved interfaces, made changes based on comments

* Made fixes based on comments

* Made fixes based on comments

* Empty commit

* Made changes based on comments, added new exceptions

* Fixed format

* Fixed return type declaration

* Fixed return type declaration

* Changed return type to list

* Fixed error

Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* Local transform and resource collection (#4020)


Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* feat: Adding cloud resources to sam list resources output (#4056)

* Added the base commands of sam list and their corresponding help messages

* Added no-args handling to base commands and added files for integration test suite

* Made additions to resources integration tests

* Made additions to the sam list integration test suite

* Added to sam list integration and unit tests

* Added integration tests to test help messages of sam list commands

* Reformatted files

* Cleaned up unfinished tests

* adding check to see what the appveyor test will produce. Trying to resolve test failure

* Fixed test to check help messages

* modified pattern matching for eliminating newlines when matching help message

* Changed the way whitespaces are handled in matching help messages

* Addressed PR comments, moved items into common classes

* Made modifications based on comments, removed relative import paths, added method annotations, fixed text formatting

* Reformatted files

* removed folder deletion

* removed uneccessary folder creation and deletion

* fixed errors with cwd of integration tests

* Added implementation and tests for the stack-outputs command

* Added test skips for integration tests, added unit tests, removed redundant init_client call

* commit to retrigger appveyor tests

* Commmit to trigger appveyor

* Modified client source, made fixes based on comments

* Made fixes based on comments

* Combined get_stack_info and stack_exists, and modified unit tests

* Empty-Commit

* Empty-Commit

* Empty-Commit

* fixed tests based on comments

* reformatted file

* Refactored stack outputs command to the producer mapper consumer design pattern

* Fixed formatting

* Moved interfaces, made changes based on comments

* Made fixes based on comments

* Made fixes based on comments

* Empty commit

* Made changes based on comments, added new exceptions

* Fixed format

* Fixed return type declaration

* Fixed return type declaration

* Changed return type to list

* Fixed error

* Implementation of the local transform and resource collection

* Empty-Commit

* Added section to avoid unused variable

* Refactored common code

* Added tests, modified PR

* Fixed formatting

* Made fixes based on PR comments

* Fixed formatting

* Fixed typing errors

* Reverted typing

* Fixed error with typing

* Made changes to handling optional params

* Fixes to typing errors

* Made edits based on comments

* Fixed error

* Changed return type

* Reverted return type due to make pr error

* Added change to fix make pr error

* Removed translate_utils.py file

* Added cloud resources to sam list resources output

* Empty commit

* modified test format

* Modified tests

* Modified test

Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* feat: Adding the sam list testable resources command, tests, and table output format support for all sam list commands (#4081)

* Added the base commands of sam list and their corresponding help messages

* Added no-args handling to base commands and added files for integration test suite

* Made additions to resources integration tests

* Made additions to the sam list integration test suite

* Added to sam list integration and unit tests

* Added integration tests to test help messages of sam list commands

* Reformatted files

* Cleaned up unfinished tests

* adding check to see what the appveyor test will produce. Trying to resolve test failure

* Fixed test to check help messages

* modified pattern matching for eliminating newlines when matching help message

* Changed the way whitespaces are handled in matching help messages

* Addressed PR comments, moved items into common classes

* Made modifications based on comments, removed relative import paths, added method annotations, fixed text formatting

* Reformatted files

* removed folder deletion

* removed uneccessary folder creation and deletion

* fixed errors with cwd of integration tests

* Added implementation and tests for the stack-outputs command

* Added test skips for integration tests, added unit tests, removed redundant init_client call

* commit to retrigger appveyor tests

* Commmit to trigger appveyor

* Modified client source, made fixes based on comments

* Made fixes based on comments

* Combined get_stack_info and stack_exists, and modified unit tests

* Empty-Commit

* Empty-Commit

* Empty-Commit

* fixed tests based on comments

* reformatted file

* Refactored stack outputs command to the producer mapper consumer design pattern

* Fixed formatting

* Moved interfaces, made changes based on comments

* Made fixes based on comments

* Made fixes based on comments

* Empty commit

* Made changes based on comments, added new exceptions

* Fixed format

* Fixed return type declaration

* Fixed return type declaration

* Changed return type to list

* Fixed error

* Implementation of the local transform and resource collection

* Empty-Commit

* Added section to avoid unused variable

* Refactored common code

* Added tests, modified PR

* Fixed formatting

* Made fixes based on PR comments

* Fixed formatting

* Fixed typing errors

* Reverted typing

* Fixed error with typing

* Made changes to handling optional params

* Fixes to typing errors

* Made edits based on comments

* Fixed error

* Changed return type

* Reverted return type due to make pr error

* Added change to fix make pr error

* Removed translate_utils.py file

* Added cloud resources to sam list resources output

* Empty commit

* modified test format

* Modified tests

* Modified test

* Adding the sam list testable resources command, tests, and table output format support for all sam list commands

* Changed table and made changes based on pr comments

* Fixed integration test expected outputs

* Fixed table heading

* Added docstring and re-arranged the testable resources producer to reduce if-elses within a single function

* Fixed format

Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* Renaming the 'testable-resources' command to 'endpoints' (#4116)

* Added the base commands of sam list and their corresponding help messages

* Added no-args handling to base commands and added files for integration test suite

* Made additions to resources integration tests

* Made additions to the sam list integration test suite

* Added to sam list integration and unit tests

* Added integration tests to test help messages of sam list commands

* Reformatted files

* Cleaned up unfinished tests

* adding check to see what the appveyor test will produce. Trying to resolve test failure

* Fixed test to check help messages

* modified pattern matching for eliminating newlines when matching help message

* Changed the way whitespaces are handled in matching help messages

* Addressed PR comments, moved items into common classes

* Made modifications based on comments, removed relative import paths, added method annotations, fixed text formatting

* Reformatted files

* removed folder deletion

* removed uneccessary folder creation and deletion

* fixed errors with cwd of integration tests

* Added implementation and tests for the stack-outputs command

* Added test skips for integration tests, added unit tests, removed redundant init_client call

* commit to retrigger appveyor tests

* Commmit to trigger appveyor

* Modified client source, made fixes based on comments

* Made fixes based on comments

* Combined get_stack_info and stack_exists, and modified unit tests

* Empty-Commit

* Empty-Commit

* Empty-Commit

* fixed tests based on comments

* reformatted file

* Refactored stack outputs command to the producer mapper consumer design pattern

* Fixed formatting

* Moved interfaces, made changes based on comments

* Made fixes based on comments

* Made fixes based on comments

* Empty commit

* Made changes based on comments, added new exceptions

* Fixed format

* Fixed return type declaration

* Fixed return type declaration

* Changed return type to list

* Fixed error

* Implementation of the local transform and resource collection

* Empty-Commit

* Added section to avoid unused variable

* Refactored common code

* Added tests, modified PR

* Fixed formatting

* Made fixes based on PR comments

* Fixed formatting

* Fixed typing errors

* Reverted typing

* Fixed error with typing

* Made changes to handling optional params

* Fixes to typing errors

* Made edits based on comments

* Fixed error

* Changed return type

* Reverted return type due to make pr error

* Added change to fix make pr error

* Removed translate_utils.py file

* Added cloud resources to sam list resources output

* Empty commit

* modified test format

* Modified tests

* Modified test

* Adding the sam list testable resources command, tests, and table output format support for all sam list commands

* Changed table and made changes based on pr comments

* Fixed integration test expected outputs

* Fixed table heading

* Added docstring and re-arranged the testable resources producer to reduce if-elses within a single function

* Fixed format

* Renamed command from testable resources to endpoints

Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* Cleanup integration tests

* Cleanup tests, address comments

* Move boto3 imports, update unit tests

* Add comments, use constants for resources

* Update unit test mocking type

* Add missing parameters

* Add additional comments

* Fix spelling, minor updates

Co-authored-by: Mehmet Nuri Deveci <5735811+mndeveci@users.noreply.github.com>
Co-authored-by: andrewzhan <andrewzhan8@gmail.com>
Co-authored-by: Andrew Zhan <zhandr@amazon.com>

* feat: Add warning about not providing stack name option (#4624)

* fix: Fix failing list tests on Windows (#4623)

* fix: Fix failing list tests on Windows

* Black reformat

* Add event tracking for sam validate --lint metrics (#4612)

* Update lint helpand output message

* Add event tracking for sam validate --lint metrics

* Add unit test for tracking

---------

Co-authored-by: Sriram Madapusi Vasudevan <3770774+sriram-mv@users.noreply.github.com>
Co-authored-by: Qingchuan Ma <69653965+qingchm@users.noreply.github.com>
Co-authored-by: Mehmet Nuri Deveci <5735811+mndeveci@users.noreply.github.com>

* Use safe yaml parse in list producer (#4632)

* Revert an integration test change related to permission change revert (#4633)

---------

Co-authored-by: Daniel Mil <84205762+mildaniel@users.noreply.github.com>
Co-authored-by: Mehmet Nuri Deveci <5735811+mndeveci@users.noreply.github.com>
Co-authored-by: andrewzhan <andrewzhan8@gmail.com>
Co-authored-by: Andrew Zhan <zhandr@amazon.com>
Co-authored-by: David <114027923+cdavidxu-hub@users.noreply.github.com>
Co-authored-by: Sriram Madapusi Vasudevan <3770774+sriram-mv@users.noreply.github.com>
Co-authored-by: Qingchuan Ma <69653965+qingchm@users.noreply.github.com>

* feat: Collect Lambda authorizers in swagger definition (#4641)

* Initial suppport to gather lambda authorizers in swagger

* Added more unit tests

* Made it clear that tests are Lambda auth related

* Added function docstring

* Added missed case where identity sources differ depending on API Gateway version

* Changed some values to constants

* Addressed comments

* Added empty check to other security definition check

* Updated log messages to change some info to warnings, and no auth info to debug

* feat: Collect Lambda Authorizers found in Cloudformation resources (#4668)

* Initial suppport to gather lambda authorizers in swagger

* Added more unit tests

* Made it clear that tests are Lambda auth related

* Added function docstring

* Added missed case where identity sources differ depending on API Gateway version

* Changed some values to constants

* Addressed comments

* Added empty check to other security definition check

* Added collection of Lambda authorizers for CFN resources

* Addressed comments by moving validation logic to its own methods

* feat: Collect Lambda Authorizers under the Auth property for Serverless resources (#4654)

* Initial suppport to gather lambda authorizers in swagger

* Added more unit tests

* Made it clear that tests are Lambda auth related

* Added function docstring

* Added missed case where identity sources differ depending on API Gateway version

* Added parsing Authorizers inside of Auth properties for Serverless resources

* Added unit tests

* Added test for the HTTP API extraction method

* Changed some values to constants

* Changed some variables to constants

* Addressed comments

* Added empty check to other security definition check

* Correctly name identity sources

* Addressed some comments

* Changed LOGs to debugs to reduce spam

---------

Co-authored-by: Sriram Madapusi Vasudevan <3770774+sriram-mv@users.noreply.github.com>

* feat: Added identity source validation and removed empty string state (#4683)

* Added identity source validation and removed empty string state

* make black reformat

* Moved identity source validator into validators folder

* Fixed linting errors

* Run make black

* Compile regular expressions

* feat: Added identity source validation in request handling (#4762)

* Added identity source validation in request handling

* Removed call to create flask app

* Added context to id validator

* Add route type check for operation_name

* Convert to dictionary to avoid typing issue

* Addressed comments and moved Route class to it's own module

* feat: Event construction refactor (#4798)

* Refactored LocalApigwService by moving some event generation logic out

* Cleaned operation name generation

* Addressed comments

* feat: Event constructors for authorizers (#4807)

* Refactored LocalApigwService by moving some event generation logic out

* Cleaned operation name generation

* Addressed comments

* Added tests

* Fixed typing for identity getter functions

* feat: Invoke Lambda authorizer (#4840)

* Added initial invocation logic for Lambda authorizer

* Added response validation

* Removed unused method

* Added tests

* Updated principalId get logic

* Changed typing to be correct

* Addressed comments

* Format

* Moved lambda auth invocation to its own method

* Addressed comments

* feat: Integration testing of local Lambda authorizers in serverless properties (#4872)

* Added initial invocation logic for Lambda authorizer

* Added response validation

* Removed unused method

* Added tests

* Updated principalId get logic

* Changed typing to be correct

* Addressed comments

* Format

* Moved lambda auth invocation to its own method

* Addressed comments

* Initial integration testing setup and work

* Change test class name and add comment to make it more clear that this is a bad test case

* make black

* feat: Validate headers against validation expression property (#4910)

* Added identity validation expression check

* Added additional test cases

* fix: Fix APIGW V2 context passing (#4916)

* Updated context passing logic to consider V2 payloads

* Addressed comments by adding checking for API event

* feat: Integration testing of Lambda authorizers defined as CFN resources (#4917)

* Added identity validation expression check

* Updated context passing logic to consider V2 payloads

* Initial CFN authorizer resource testing

* Added tests to validate template validation

* fix: Added missing checks for Swagger parsing of Lambda authorizers and fixed some existing ones (#4938)

* Added missing check for simple responses and fixed validation string check

* Added missing check for simple responses

* Added checks for payload version

* make format

* Addressed comments

* feat: Integration testing of Lambda authorizers defined under the Swagger document (#4939)

* Added identity validation expression check

* Updated context passing logic to consider V2 payloads

* Added missing check for simple responses and fixed validation string check

* Initial swagger parsing integration testing

* Added missing check for simple responses

* Added checks for payload version

* make format

* Added template validation for swagger

* make format

* fix: Only print console message if enableSimpleResponses is defined (#4994)

* feat: Add usage disclaimer when starting API with authorizers (#4968)

* Added disclaimer for authorizer usage and updated log message for undefined authorizers

* Populated message

* Updated message

* Updated message

* feat: Add metrics for using the Lambda authorizer feature (#4942)

* Added event tracking for using Lambda authorizers

* Added and update unit tests

* Moved event tracker to after invocation logic and added session ID passing

* Updated event tracker to accept exceptions

* Added tests

* Updated doc string to include exception message

* Addressed comments and removed old test

* Added exception to __repr__ and __eq__

* chore: Removed old test file (#5006)

---------

Co-authored-by: Daniel Mil <84205762+mildaniel@users.noreply.github.com>
Co-authored-by: Mehmet Nuri Deveci <5735811+mndeveci@users.noreply.github.com>
Co-authored-by: andrewzhan <andrewzhan8@gmail.com>
Co-authored-by: Andrew Zhan <zhandr@amazon.com>
Co-authored-by: David <114027923+cdavidxu-hub@users.noreply.github.com>
Co-authored-by: Sriram Madapusi Vasudevan <3770774+sriram-mv@users.noreply.github.com>
Co-authored-by: Qingchuan Ma <69653965+qingchm@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/validate sam validate command pr/internal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants