feat(security): implement dynamic tactical license gate, instant key revocation, and clean hardcoded credentials

This commit is contained in:
Hamza-Ayed
2026-08-18 13:46:02 +03:00
parent 8375773898
commit cb384765fb
17 changed files with 439 additions and 38 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import axios from 'axios';
// Constants
const API_URL = process.env.TEST_API_URL || 'https://map-saas.intaleqapp.com/api/geocoding/search';
const API_KEY = process.env.TEST_API_KEY || 'zP9vL5mK2nQ8xR7jT4wS1yB6hG3fV0cX';
const API_KEY = process.env.TEST_API_KEY || process.env.MAP_API_KEY || '';
let DATA_FILE = path.join(__dirname, '../../../data/golden_tests/queries_syria.json');
if (!fs.existsSync(DATA_FILE) && fs.existsSync('/data/data/golden_tests/queries_syria.json')) {
DATA_FILE = '/data/data/golden_tests/queries_syria.json'; // Docker environment fallback