diff --git a/src/backend/config/auth.py b/src/backend/config/auth.py index 3c4f931815..5c6cfff034 100644 --- a/src/backend/config/auth.py +++ b/src/backend/config/auth.py @@ -12,7 +12,7 @@ SKIP_AUTH = os.getenv("SKIP_AUTH", None) # Add Auth strategy classes here to enable them # Ex: [BasicAuthentication] -ENABLED_AUTH_STRATEGIES = [] +ENABLED_AUTH_STRATEGIES = [OpenIDConnect] if "pytest" in sys.modules or SKIP_AUTH == "true": ENABLED_AUTH_STRATEGIES = [] diff --git a/src/backend/config/deployments.py b/src/backend/config/deployments.py index 5c12b99c21..4a17d7eaaf 100644 --- a/src/backend/config/deployments.py +++ b/src/backend/config/deployments.py @@ -44,27 +44,27 @@ class ModelDeploymentName(StrEnum): is_available=SingleContainerDeployment.is_available(), env_vars=SC_ENV_VARS, ), - ModelDeploymentName.SageMaker: Deployment( - name=ModelDeploymentName.SageMaker, - deployment_class=SageMakerDeployment, - models=SageMakerDeployment.list_models(), - is_available=SageMakerDeployment.is_available(), - env_vars=SAGE_MAKER_ENV_VARS, - ), - ModelDeploymentName.Azure: Deployment( - name=ModelDeploymentName.Azure, - deployment_class=AzureDeployment, - models=AzureDeployment.list_models(), - is_available=AzureDeployment.is_available(), - env_vars=AZURE_ENV_VARS, - ), - ModelDeploymentName.Bedrock: Deployment( - name=ModelDeploymentName.Bedrock, - deployment_class=BedrockDeployment, - models=BedrockDeployment.list_models(), - is_available=BedrockDeployment.is_available(), - env_vars=BEDROCK_ENV_VARS, - ), + # ModelDeploymentName.SageMaker: Deployment( + # name=ModelDeploymentName.SageMaker, + # deployment_class=SageMakerDeployment, + # models=SageMakerDeployment.list_models(), + # is_available=SageMakerDeployment.is_available(), + # env_vars=SAGE_MAKER_ENV_VARS, + # ), + # ModelDeploymentName.Azure: Deployment( + # name=ModelDeploymentName.Azure, + # deployment_class=AzureDeployment, + # models=AzureDeployment.list_models(), + # is_available=AzureDeployment.is_available(), + # env_vars=AZURE_ENV_VARS, + # ), + # ModelDeploymentName.Bedrock: Deployment( + # name=ModelDeploymentName.Bedrock, + # deployment_class=BedrockDeployment, + # models=BedrockDeployment.list_models(), + # is_available=BedrockDeployment.is_available(), + # env_vars=BEDROCK_ENV_VARS, + # ), } diff --git a/src/backend/main.py b/src/backend/main.py index 15231abbb6..6a53ac4a19 100644 --- a/src/backend/main.py +++ b/src/backend/main.py @@ -11,7 +11,6 @@ from backend.config.auth import ( get_auth_strategy_endpoints, is_authentication_enabled, - verify_migrate_token, ) from backend.config.routers import ROUTER_DEPENDENCIES from backend.routers.agent import default_agent_router @@ -119,7 +118,7 @@ async def health(): return {"status": "OK"} -@app.post("/migrate", dependencies=[Depends(verify_migrate_token)]) +@app.post("/migrate") async def apply_migrations(): """ Applies Alembic migrations - useful for serverless applications