diff --git a/deployment.yaml b/deployment.yaml index 40a0628..35ed688 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -44,8 +44,6 @@ spec: secretKeyRef: name: miniobucket-inventory-app-owner-secrets key: MINIO_URI - - name: SECRET_KEY - value: "bad_secret" - name: ENVIRONMENT_TYPE value: "DEV" - name: MY_POD_NAME diff --git a/inventory-app/const.py b/inventory-app/const.py index e9e1972..5c2634f 100644 --- a/inventory-app/const.py +++ b/inventory-app/const.py @@ -12,7 +12,6 @@ def file_exists(path): ENVIRONMENT_TYPE = getenv_in("ENVIRONMENT_TYPE", "DEV", "PROD") -SECRET_KEY = os.environ["SECRET_KEY"] AWS_S3_ENDPOINT_URL = os.environ["AWS_S3_ENDPOINT_URL"] BUCKET_NAME = os.environ["BUCKET_NAME"] INVENTORY_ASSETS_BASE_URL = os.environ["INVENTORY_ASSETS_BASE_URL"] diff --git a/inventory-app/main.py b/inventory-app/main.py index 93078f8..fb89192 100755 --- a/inventory-app/main.py +++ b/inventory-app/main.py @@ -126,8 +126,6 @@ app.register_blueprint(page_oidc) app.register_blueprint(page_doorboy) metrics = PrometheusMetrics(app, group_by="path") -app.config['SECRET_KEY'] = const.SECRET_KEY - mongoclient = MongoClient(const.MONGO_URI) mongodb = mongoclient.get_default_database() mongodb.member.create_index("ad.username", sparse=True, unique=True)