feat(services): wire AKV secret resolution in platform-service and extraction-service startup
This commit is contained in:
parent
2e5b4de0c4
commit
81999dcbb3
@ -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';
|
||||
|
||||
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user