Skip to content

Commit c50f790

Browse files
committed
fix(security): remove llmaas exposed test secrets
1 parent 033ec44 commit c50f790

8 files changed

Lines changed: 17 additions & 30 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ scripts/translate_py/venv/
1717
# Misc
1818
.DS_Store
1919
.env
20+
.env.*
21+
**/.env
22+
**/.env.*
23+
!.env.example
24+
!**/.env.example
2025
.env.local
2126
.env.development.local
2227
.env.test.local

memory-bank/swagger.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ info:
1616
altText: Cloud Temple Logo
1717

1818
servers:
19-
- url: https://api.ai.cloud-temple.com # Corrigé en HTTP
20-
description: Alias DNS pour LB01 (Prod API)
21-
- url: http://preprod.api.ai.cloud-temple.com # Corrigé en HTTP
22-
description: Alias DNS pour LB02 (Préprod API)
19+
- url: https://api.ai.cloud-temple.com
20+
description: API de production
2321

2422
tags:
2523
- name: Chat

tests/llmaas/.env

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/llmaas/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Copy this file to .env for local runs only.
2+
LLMAAS_API_KEY="your-api-key-here"
3+
API_URL="https://api.ai.cloud-temple.com/v1"

tests/llmaas/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,12 @@ python test_audio_transcription.py
5454
export LLMAAS_API_KEY="votre-token-api-reel"
5555
```
5656

57-
### Token par Défaut
58-
Si non configuré, utilise `test-token-for-docs` (pour tests d'erreurs uniquement).
57+
### Fichier local optionnel
58+
```bash
59+
cp .env.example .env
60+
```
61+
62+
Le fichier `.env` local ne doit jamais être commité. Les tests d'intégration réels nécessitent une clé fournie par l'environnement.
5963

6064
## 📦 Dépendances
6165

tests/llmaas/simple_tool_calling/.env

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/llmaas/simple_vision/.env

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/llmaas/test_rag_simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from langchain.embeddings.base import Embeddings
1919

2020
# Configuration
21-
API_KEY = os.getenv("LLMAAS_API_KEY", "WolFH3xGSCMPvlfEru5JAt_KWZIrYreQOm1dDB2x5X4")
21+
API_KEY = os.getenv("LLMAAS_API_KEY", "test-token-for-docs")
2222
BASE_URL = "https://api.ai.cloud-temple.com/v1"
2323

2424
class SimpleRAGLogger:

0 commit comments

Comments
 (0)