hwonder commited on
Commit
5a42256
·
1 Parent(s): ba92228

Remove env fallback for API key - UI input only

Browse files
Files changed (3) hide show
  1. .env.example +1 -1
  2. src/api/client.py +1 -1
  3. src/config.py +1 -1
.env.example CHANGED
@@ -1,3 +1,3 @@
1
  # STACKNET Configuration
2
  STACKNET_NETWORK_URL=https://geoffnet.magma-rpc.com
3
- STACKNET_SERVICE_KEY=
 
1
  # STACKNET Configuration
2
  STACKNET_NETWORK_URL=https://geoffnet.magma-rpc.com
3
+ # Note: API key is entered via the UI Settings field, not from environment
src/api/client.py CHANGED
@@ -58,7 +58,7 @@ class StackNetClient:
58
  timeout: float = 300.0
59
  ):
60
  self.base_url = base_url or config.stacknet_url
61
- self.api_key = api_key or config.stacknet_api_key
62
  self.timeout = timeout
63
  self._temp_dir = tempfile.mkdtemp(prefix="stacknet_")
64
 
 
58
  timeout: float = 300.0
59
  ):
60
  self.base_url = base_url or config.stacknet_url
61
+ self.api_key = api_key # Must be provided from UI, no env fallback
62
  self.timeout = timeout
63
  self._temp_dir = tempfile.mkdtemp(prefix="stacknet_")
64
 
src/config.py CHANGED
@@ -18,7 +18,7 @@ class Config:
18
 
19
  # StackNet API
20
  stacknet_url: str = os.getenv("STACKNET_NETWORK_URL", "https://geoffnet.magma-rpc.com")
21
- stacknet_api_key: str = os.getenv("STACKNET_SERVICE_KEY", "")
22
 
23
  # Endpoints
24
  @property
 
18
 
19
  # StackNet API
20
  stacknet_url: str = os.getenv("STACKNET_NETWORK_URL", "https://geoffnet.magma-rpc.com")
21
+ # Note: API key is provided via UI only, not from environment
22
 
23
  # Endpoints
24
  @property