Repository navigation
Closed
Labels
Description
Based on the RFC #781, we need to implement the AWS_IAM Authorizers feature.
Requirements:
- Implement Transform
- Add tests
- Add example(s)
Some code areas to get started for any interested contributors:
- Add
InvokeRoleas a valid property ofAuthhttps://github.com/awslabs/serverless-application-model/blob/master/samtranslator/model/api/api_generator.py#L20 - Add an exception for
AWS_IAMDefaultAuthorizerhere https://github.com/awslabs/serverless-application-model/blob/master/samtranslator/model/api/api_generator.py#L321 - Ensure this section is working and only a single sigv4 security definition gets added https://github.com/awslabs/serverless-application-model/blob/master/samtranslator/swagger/swagger.py#L343
- Add 'sigv4' to
securityDefinitionsif it's defined as DefaultAuthorizer or if it is specified on any of the Methods https://github.com/awslabs/serverless-application-model/blob/master/samtranslator/swagger/swagger.py#L289 - Update Integration with credentials https://github.com/awslabs/serverless-application-model/blob/master/samtranslator/swagger/swagger.py#L101
Reacted by Masashi Terui, Takahiro Horike, ykarakita, shuta kakura, Yoshikazu Tsuji, Kenichi Nagahara and ebortoluzzi-maualab
Reacted by Manju Arakere, Masashi Terui, Takahiro Horike, Yoshikazu Tsuji and Kenichi Nagahara
Activity
rhboyd commentedon Feb 16, 2019
Is the idea that it would look something like:
and the serverless macro would transform that into specifying AWS_IAM for the auth type and add the policy to the resource policy on the API?
rhboyd commentedon Feb 16, 2019
or possibly
And the macro would create an IAM Role named NOT_AN_ARN and substitute that Role ARN where applicable in the previous comment?
brettstack commentedon Feb 16, 2019
@rhboyd check out the RFC #781
horike37 commentedon Feb 26, 2019
Hey @brettstack, I would like to start working on this since this feature is needed for my job.
No problem?
brettstack commentedon Feb 26, 2019
Absolutely! We look forward to a PR. ❤️
horike37 commentedon Feb 28, 2019
Hey @brettstack, My PR #827 is just ready for review!
Please go ahead 👍 😄 Thanks!
brettstack commentedon Mar 15, 2019
Thanks @horike37! This has been merged to develop and we'll get it out to production asap.
horike37 commentedon Mar 16, 2019
Great! Can't wait to release 😄
keetonian commentedon Apr 26, 2019
Released with SAM v1.11.0!