about summary refs log tree commit diff
path: root/gn3/settings.py
diff options
context:
space:
mode:
authorJohn Nduli2024-10-28 15:28:41 +0300
committerFrederick Muriuki Muriithi2024-10-28 11:53:13 -0500
commit5f30a202c152a1b0f8211e53a2973ee782ddc8f9 (patch)
treeb3f13d5c04903c2604c392017ae1f87e3b6a1e8e /gn3/settings.py
parent86b81be8c67cf82e8f26a7f84cbdc5df7198e214 (diff)
downloadgenenetwork3-5f30a202c152a1b0f8211e53a2973ee782ddc8f9.tar.gz
fix: remove dangerous default configs and have a detailed error with how to configure
Diffstat (limited to 'gn3/settings.py')
-rw-r--r--gn3/settings.py35
1 files changed, 2 insertions, 33 deletions
diff --git a/gn3/settings.py b/gn3/settings.py
index 439d88c..2c657af 100644
--- a/gn3/settings.py
+++ b/gn3/settings.py
@@ -8,7 +8,7 @@ import os
 import uuid
 import tempfile
 
-BCRYPT_SALT = "$2b$12$mxLvu9XRLlIaaSeDxt8Sle"  # Change this!
+BCRYPT_SALT = ""
 DATA_DIR = ""
 GEMMA_WRAPPER_CMD = os.environ.get("GEMMA_WRAPPER", "gemma-wrapper")
 CACHEDIR = ""
@@ -29,14 +29,10 @@ LMDB_PATH = os.environ.get(
 SQL_URI = os.environ.get(
     "SQL_URI", "mysql://webqtlout:webqtlout@localhost/db_webqtl")
 SECRET_KEY = "password"
-# gn2 results only used in fetching dataset info
-
 
 # FAHAMU API TOKEN
 FAHAMU_AUTH_TOKEN = ""
 
-GN2_BASE_URL = "http://www.genenetwork.org/"
-
 # wgcna script
 WGCNA_RSCRIPT = "wgcna_analysis.R"
 # qtlreaper command
@@ -83,31 +79,4 @@ ROUND_TO = 10
 
 MULTIPROCESSOR_PROCS = 6  # Number of processes to spawn
 
-AUTH_SERVER_URL = "https://auth.genenetwork.org"
-AUTH_MIGRATIONS = "migrations/auth"
-OAUTH2_SCOPE = (
-    "profile", "group", "role", "resource", "user", "masquerade",
-    "introspect")
-
-
-try:
-    # *** SECURITY CONCERN ***
-    # Clients with access to this privileges create a security concern.
-    # Be careful when adding to this configuration
-    OAUTH2_CLIENTS_WITH_INTROSPECTION_PRIVILEGE = tuple(
-        uuid.UUID(client_id) for client_id in
-        os.environ.get(
-            "OAUTH2_CLIENTS_WITH_INTROSPECTION_PRIVILEGE", "").split(","))
-except ValueError as _valerr:
-    OAUTH2_CLIENTS_WITH_INTROSPECTION_PRIVILEGE = tuple()
-
-try:
-    # *** SECURITY CONCERN ***
-    # Clients with access to this privileges create a security concern.
-    # Be careful when adding to this configuration
-    OAUTH2_CLIENTS_WITH_DATA_MIGRATION_PRIVILEGE = tuple(
-        uuid.UUID(client_id) for client_id in
-        os.environ.get(
-            "OAUTH2_CLIENTS_WITH_DATA_MIGRATION_PRIVILEGE", "").split(","))
-except ValueError as _valerr:
-    OAUTH2_CLIENTS_WITH_DATA_MIGRATION_PRIVILEGE = tuple()
+AUTH_SERVER_URL = ""