Skip to content

Commit bd0e6cf

Browse files
authored
[DSEC-932] updates Werkzeug and Flask. (#589)
* The hash has changed, changing regex. * update werkzeug * try updating flask * remove flaskapi * add csrf protection * update flask-cors * remove commented line * pin config connector version * add CSRF library * remove csrf library
1 parent d85c905 commit bd0e6cf

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

sdarq/backend/requirements.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
Flask==2.1.3
1+
Flask>=3.0.0
22
Flask-Limiter==3.8.0
33
requests>=2.32.3
44
requests-oauthlib>=1.0.0
55
urllib3==1.26.19
6-
flask-api==3.1
7-
flask-cors==4.0.1
6+
flask-cors==4.0.2
87
virtualenv==16.0.0
98
jira==2.0.0
109
gunicorn[gevent]>= 1.4
@@ -16,6 +15,6 @@ google-cloud-logging==3.11.1
1615
google-cloud-resource-manager==1.12.5
1716
google-api-core[grpc]==2.19.1
1817
python-owasp-zap-v2.4==0.1.0
19-
werkzeug==2.1.2
18+
werkzeug==3.0.6
2019
jsonschema==4.23.0
2120
markupsafe>=2.0.1

sdarq/backend/src/app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
import parse_data as parse_json_data
3434
import requests
3535
import slacknotify
36-
from flask import Response, jsonify, request
37-
from flask_api import FlaskAPI
36+
from flask import Flask, Response, jsonify, request
3837
from flask_cors import cross_origin
3938
from google.cloud import bigquery, firestore, pubsub_v1
4039
from jsonschema import validate
@@ -77,7 +76,7 @@
7776
loggingclient = google.cloud.logging.Client()
7877
loggingclient.setup_logging()
7978

80-
app = FlaskAPI(__name__)
79+
app = Flask(__name__)
8180

8281
client = bigquery.Client()
8382

shared/global.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export PSP_ROLE="${NAMESPACE}-psp"
1515
export PSP_BINDING="${PSP_ROLE}"
1616

1717
# install config connector
18-
gcloud storage cp gs://configconnector-operator/latest/release-bundle.tar.gz release-bundle.tar.gz
18+
gcloud storage cp gs://configconnector-operator/1.125.0/release-bundle.tar.gz release-bundle.tar.gz
1919
tar zxvf release-bundle.tar.gz
2020
kubectl apply -f operator-system/configconnector-operator.yaml
2121

0 commit comments

Comments
 (0)