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

[#3970,4002] Bug/Cryptography Integration #4109

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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