Skip to content

Commit

Permalink
[communitybridge#3970,4002] Bug/Cryptography Integration
Browse files Browse the repository at this point in the history
- Added lambda layer to support cryptography integration for docusign oauth flow

Signed-off-by: Harold Wanyama <hwanyama@contractor.linuxfoundation.org>
  • Loading branch information
nickmango committed Aug 29, 2023
1 parent 55404c3 commit eac76ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,7 @@ jobs:
run: |
pip install -r requirements.txt
- name: Install Cryptography
working-directory: cla-backend
run: |
pip install \
--platform manylinux2014_x86_64 \
--target ./cla-backend \
--implementation cp \
--only-binary=:all: --upgrade \
cryptography
- name: Python Lint
working-directory: cla-backend
Expand Down
Binary file added cla-backend/cryptography-layer.zip
Binary file not shown.
13 changes: 9 additions & 4 deletions cla-backend/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ custom:
wsgi:
app: cla.routes.__hug_wsgi__
pythonBin: python
pythonRequirements:
dockerizePip: 'non-linux'
dockerImage: public.ecr.aws/sam/build-python3.9:latest
dockerRunCmdExtraArgs: ['--platform', 'linux/amd64']
pythonRequirements: false
# Config for serverless-prune-plugin - remove all but the 10 most recent
# versions to avoid the "Code storage limit exceeded" error
prune:
Expand Down Expand Up @@ -601,6 +598,8 @@ functions:
method: ANY
path: v2/{proxy+}
cors: true
layers:
- Ref : CryptographyLayerLambdaLayer

salesforceprojects:
handler: cla.salesforce.get_projects
Expand Down Expand Up @@ -638,6 +637,12 @@ functions:
method: POST
path: v2/github/activity

layers:
CryptographyLayerLambdaLayer:
package:
individually: true
artifact: cryptography-layer.zip

resources:
Conditions:
# Helper functions since we conditionally create some resources
Expand Down

0 comments on commit eac76ae

Please sign in to comment.