feat: enforce private backend isolation, deploy live interactive SOC Gateway UI, and provide English security report

This commit is contained in:
2026-10-13 00:38:12 +03:00
parent 2cea9f25ba
commit f8917dfa88
31 changed files with 1331 additions and 101 deletions
+7 -4
View File
@@ -6,7 +6,6 @@ async function getAuth() {
try {
const data = JSON.parse(fs.readFileSync(tokenFile, 'utf8'));
if (data.expiresAt && new Date(data.expiresAt) > new Date(Date.now() + 60000)) {
console.log('Using cached token, expires at:', data.expiresAt);
return data;
}
} catch (e) {}
@@ -36,6 +35,10 @@ async function getAuth() {
return tokenData;
}
getAuth()
.then(d => console.log('Auth success for user:', d.userId))
.catch(e => console.error('Auth error:', e.message));
module.exports = { getAuth };
if (require.main === module) {
getAuth()
.then(d => console.log('Auth success for user:', d.userId))
.catch(e => console.error('Auth error:', e.message));
}