Add ability to test client cert configuration in the TestHttpClient
- Dominant language
- Python
- Stars
- 11.1k
- Forks
- 1k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 2
Description
I would like to test some endpoints using client certifications.
It looks like api gateway supports it
https://aws.amazon.com/blogs/compute/introducing-mutual-tls-authentication-for-amazon-api-gateway/
maybe do it the way requests does it: https://stackoverflow.com/a/17604076
where you you can pass in a cert tuple to https://github.com/aws/chalice/blob/master/chalice/test.py#L109
and then the info gets added to the lamba event?
Contributor guide
Research direction
Start with chalice/test.py around line 109 and the TestHttpClient entry point, then compare the referenced requests certificate-tuple behavior with API Gateway mutual TLS documentation. Determine how client certificate configuration should be represented in the Lambda event; done means the test client can exercise an endpoint with that configuration and the resulting event is verifiable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- api, cloud, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100