Skip to content

Commit 920e8dd

Browse files
authored
Merge pull request #107 from mitdbg/main
Releasing Physical Plan Execution and UI Improvements
2 parents a10659a + f6416e1 commit 920e8dd

File tree

86 files changed

+14906
-1011
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+14906
-1011
lines changed

.github/workflows/deploy-to-aws.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,34 @@ jobs:
118118
- name: Start NGINX on Homepage EC2
119119
env:
120120
CARNOT_DEPLOY_KEY: ${{ secrets.CARNOT_DEPLOY_KEY }}
121+
MS_APP_ID: ${{ secrets.MICROSOFT_APPLICATION_ID }}
121122
run: |
123+
echo "Preparing Entra ID association file..."
124+
mkdir -p .well-known
125+
echo "{\"associatedApplications\":[{\"applicationId\": \"$MS_APP_ID\"}]}" > .well-known/microsoft-identity-association.json
126+
127+
# sleep to ensure that the instance is ready to accept SSH connections
122128
echo "Copying homepage files to $HOMEPAGE_PUBLIC_IP"
123-
124-
# copy index.html to EC2; sleep first to wait for it to be ready to accept SSH connections
125129
sleep 5
126-
scp -o StrictHostKeyChecking=no -i deployer_key.pem app/index.html ubuntu@$HOMEPAGE_PUBLIC_IP:~/
130+
131+
# copy files to EC2
132+
scp -r -o StrictHostKeyChecking=no -i deployer_key.pem app/index.html app/terms-of-service.md app/privacy-statement.md .well-known ubuntu@$HOMEPAGE_PUBLIC_IP:~/
127133
128134
# Copy index.html to the NGINX default location inside the container's volume mount and (re)start container
129135
ssh -o StrictHostKeyChecking=no -i deployer_key.pem ubuntu@$HOMEPAGE_PUBLIC_IP "
130136
sudo docker start carnot-homepage-nginx
131137
sleep 3
138+
139+
# Ensure the directory exists in the container and copy files
140+
sudo docker exec carnot-homepage-nginx mkdir -p /usr/share/nginx/html/.well-known
132141
sudo docker cp index.html carnot-homepage-nginx:/usr/share/nginx/html/index.html
133-
rm index.html
142+
sudo docker cp terms-of-service.md carnot-homepage-nginx:/usr/share/nginx/html/terms-of-service.md
143+
sudo docker cp privacy-statement.md carnot-homepage-nginx:/usr/share/nginx/html/privacy-statement.md
144+
sudo docker cp .well-known/microsoft-identity-association.json carnot-homepage-nginx:/usr/share/nginx/html/.well-known/microsoft-identity-association.json
145+
146+
# Clean up home directory
147+
rm -rf index.html terms-of-service.md privacy-statement.md .well-known
148+
134149
sudo docker restart carnot-homepage-nginx
135150
"
136151

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ __marimo__/
209209
# allow env/ within deploy/terraform/env/
210210
!deploy/terraform/env/
211211

212+
# test data files
213+
tests/pytest/data/movie-reviews
214+
tests/pytest/data/quest/
215+
212216
# Miscellaneous
213217
.github/workflows/github-trust-policy.json
214218
venv_web/

app/backend/app/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from jose import jwt
66

77
AUTH0_ISSUER = f"https://{os.getenv('AUTH0_DOMAIN')}/"
8-
AUTH0_AUDIENCE = os.getenv("AUTH0_AUDIENCE")
9-
CLAIMS_NAMESPACE = os.getenv("AUTH0_CLAIMS_NAMESPACE")
8+
AUTH0_AUDIENCE = os.getenv("AUTH0_AUDIENCE", "")
9+
CLAIMS_NAMESPACE = os.getenv("AUTH0_CLAIMS_NAMESPACE", "") # NOTE: not used anymore; may be deprecated
1010
ALGORITHMS = ["RS256"]
1111

1212
# Cache for JWKS keys to avoid hitting Auth0 on every request

app/backend/app/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
IS_LOCAL_ENV = os.getenv("LOCAL_ENV").lower() == "true"
3+
IS_LOCAL_ENV = os.getenv("LOCAL_ENV", "").lower() == "true"
44
FILESYSTEM = "file" if IS_LOCAL_ENV else "s3"
55
REGION_NAME = os.getenv("AWS_REGION", "us-east-1")
66
COMPANY_ENV = os.getenv("COMPANY_ENV", "dev")

0 commit comments

Comments
 (0)