arthurcornelio88 commited on
Commit
72b8cc6
·
1 Parent(s): 298a14d
Files changed (3) hide show
  1. requirements.txt +2 -1
  2. scripts/csfr_debug.py +11 -0
  3. start.sh +3 -0
requirements.txt CHANGED
@@ -4,4 +4,5 @@ numpy
4
  boto3
5
  requests
6
  apache-airflow-providers-ssh
7
- apache-airflow-providers-amazon
 
 
4
  boto3
5
  requests
6
  apache-airflow-providers-ssh
7
+ apache-airflow-providers-amazon
8
+ flask
scripts/csfr_debug.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, session
2
+
3
+ app = Flask(__name__)
4
+ app.secret_key = "supersecretkey"
5
+
6
+ @app.route("/check_csrf")
7
+ def check_csrf():
8
+ return {"csrf_token": session.get("csrf_token", "NOT SET")}
9
+
10
+ if __name__ == "__main__":
11
+ app.run(debug=True, host="0.0.0.0", port=5001)
start.sh CHANGED
@@ -132,6 +132,9 @@ done
132
  python /opt/airflow/csrf_fix.py &
133
  log "✅ CSRF fix applied."
134
 
 
 
 
135
  ### 🚀 Start Airflow Services
136
  log "🚀 Starting Airflow services..."
137
  airflow scheduler > /dev/null 2>&1 &
 
132
  python /opt/airflow/csrf_fix.py &
133
  log "✅ CSRF fix applied."
134
 
135
+ python /opt/airflow/csrf_debug.py &
136
+ log "✅ CSRF debug applied."
137
+
138
  ### 🚀 Start Airflow Services
139
  log "🚀 Starting Airflow services..."
140
  airflow scheduler > /dev/null 2>&1 &