feat(services): wire AKV secret resolution in platform-service and extraction-service startup

This commit is contained in:
saravanakumardb1 2026-02-14 22:18:01 -08:00
parent 2e5b4de0c4
commit 81999dcbb3
2 changed files with 22 additions and 0 deletions

View File

@ -8,6 +8,15 @@
* Depends on a Python sidecar running LangExtract (default port 4006).
*/
// Resolve secrets from Azure Key Vault BEFORE config parsing
import { resolveKeyVaultSecrets, LYSNR_SECRETS } from '@bytelyst/config';
await resolveKeyVaultSecrets([
LYSNR_SECRETS.COSMOS_KEY,
LYSNR_SECRETS.COSMOS_ENDPOINT,
LYSNR_SECRETS.JWT_SECRET,
LYSNR_SECRETS.GEMINI_API_KEY,
]);
import { createServiceApp, startService } from '@bytelyst/fastify-core';
import { extractRoutes } from './modules/extract/routes.js';
import { taskRoutes } from './modules/tasks/routes.js';

View File

@ -8,6 +8,19 @@
* Port: 4003 (configurable via PORT env var).
*/
// Resolve secrets from Azure Key Vault BEFORE config parsing
import { resolveKeyVaultSecrets, LYSNR_SECRETS } from '@bytelyst/config';
await resolveKeyVaultSecrets([
LYSNR_SECRETS.COSMOS_KEY,
LYSNR_SECRETS.COSMOS_ENDPOINT,
LYSNR_SECRETS.JWT_SECRET,
LYSNR_SECRETS.STRIPE_SECRET_KEY,
LYSNR_SECRETS.STRIPE_WEBHOOK_SECRET,
LYSNR_SECRETS.BILLING_INTERNAL_KEY,
LYSNR_SECRETS.AZURE_BLOB_CONNECTION_STRING,
LYSNR_SECRETS.AZURE_BLOB_ACCOUNT_KEY,
]);
import { createServiceApp, startService } from '@bytelyst/fastify-core';
import { authRoutes } from './modules/auth/routes.js';
import { auditRoutes } from './modules/audit/routes.js';