Skip to content

Commit 11fd7ee

Browse files
add security hardening directives to dagster service
1 parent 672e5e0 commit 11fd7ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

card_data/infrastructure/dagster.service

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ User=ubuntu
1010
WorkingDirectory=/home/ubuntu/card_data/card_data
1111
Environment="AWS_DEFAULT_REGION=us-west-2"
1212
Environment="PATH=/home/ubuntu/card_data/card_data/.venv/bin:/usr/local/bin:/usr/bin:/bin"
13+
NoNewPrivileges=true
14+
PrivateTmp=true
15+
ProtectSystem=strict
16+
ProtectHome=read-only
1317
ExecStartPre=/home/ubuntu/wait-for-rds.sh
1418
ExecStart=/home/ubuntu/start-dagster.sh
1519
Restart=on-failure

0 commit comments

Comments
 (0)