Skip to content

Commit b868446

Browse files
committed
removed BF variables
1 parent c86100e commit b868446

File tree

4 files changed

+2
-20
lines changed

4 files changed

+2
-20
lines changed

.env-devel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ SMTP_PROTOCOL=UNENCRYPTED
250250
SMTP_USERNAME=it_doesnt_matter
251251

252252
# STORAGE ----
253-
BF_API_KEY=none
254-
BF_API_SECRET=none
255253
STORAGE_ENDPOINT=storage:8080
256254
STORAGE_HOST=storage
257255
STORAGE_LOGLEVEL=INFO

services/docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,8 +1153,6 @@ services:
11531153
init: true
11541154
hostname: "sto-{{.Node.Hostname}}-{{.Task.Slot}}"
11551155
environment:
1156-
BF_API_KEY: ${BF_API_KEY}
1157-
BF_API_SECRET: ${BF_API_SECRET}
11581156
DATCORE_ADAPTER_HOST: ${DATCORE_ADAPTER_HOST:-datcore-adapter}
11591157
LOG_FORMAT_LOCAL_DEV_ENABLED: ${LOG_FORMAT_LOCAL_DEV_ENABLED}
11601158
LOG_FILTER_MAPPING : ${LOG_FILTER_MAPPING}

services/storage/src/simcore_service_storage/core/settings.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ class ApplicationSettings(BaseApplicationSettings, MixinLoggingSettings):
3636
STORAGE_MONITORING_ENABLED: bool = False
3737
STORAGE_PROFILING: bool = False
3838

39-
BF_API_KEY: str | None = Field(
40-
None, description="Pennsieve API key ONLY for testing purposes"
41-
)
42-
BF_API_SECRET: str | None = Field(
43-
None, description="Pennsieve API secret ONLY for testing purposes"
44-
)
45-
4639
STORAGE_POSTGRES: PostgresSettings | None = Field(
4740
json_schema_extra={"auto_default_from_env": True}
4841
)

services/storage/src/simcore_service_storage/modules/db/tokens.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from simcore_postgres_database.storage_models import tokens
88
from sqlalchemy.ext.asyncio import AsyncEngine
99

10-
from ...core.settings import get_application_settings
1110
from . import get_db_engine
1211

1312
_logger = logging.getLogger(__name__)
@@ -27,17 +26,11 @@ async def _get_tokens_from_db(engine: AsyncEngine, user_id: UserID) -> dict[str,
2726
async def get_api_token_and_secret(
2827
app: FastAPI, user_id: UserID
2928
) -> tuple[str | None, str | None]:
30-
# from the client side together with the userid?
3129
engine = get_db_engine(app)
32-
app_settings = get_application_settings(app)
33-
# defaults from config if any, othewise None
34-
api_token = app_settings.BF_API_KEY
35-
api_secret = app_settings.BF_API_SECRET
36-
3730
data = await _get_tokens_from_db(engine, user_id)
3831

3932
data = data.get("token_data", {})
40-
api_token = data.get("token_key", api_token)
41-
api_secret = data.get("token_secret", api_secret)
33+
api_token = data.get("token_key")
34+
api_secret = data.get("token_secret")
4235

4336
return api_token, api_secret

0 commit comments

Comments
 (0)