Skip to content

Commit

Permalink
Add test CloudFront keys
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthlingDavey committed Dec 6, 2024
1 parent 9506993 commit 854ce36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ jobs:
docker compose run --rm -e JWT=${JWT} spider sh -c "npm ci && npm run test"
env:
JWT: ${{ secrets.JWT }}
# Use mock AWS CloudFront keys, these do not grant permission to anything.
AWS_CLOUDFRONT_PRIVATE_KEY: ${{ secrets.TEST_AWS_CLOUDFRONT_PRIVATE_KEY }}
AWS_CLOUDFRONT_PUBLIC_KEY: ${{ secrets.TEST_AWS_CLOUDFRONT_PUBLIC_KEY }}
AWS_CLOUDFRONT_PUBLIC_KEYS_OBJECT: ${{ secrets.TEST_AWS_CLOUDFRONT_PUBLIC_KEYS_OBJECT }}
1 change: 1 addition & 0 deletions deploy/development/secret.tpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ metadata:
type: Opaque
data:
AWS_CLOUDFRONT_PRIVATE_KEY: "${AWS_CLOUDFRONT_PRIVATE_KEY_BASE64}"
AWS_CLOUDFRONT_PUBLIC_KEY: "${AWS_CLOUDFRONT_PUBLIC_KEY_BASE64}"
---
apiVersion: v1
kind: Secret
Expand Down

0 comments on commit 854ce36

Please sign in to comment.