@@ -13,7 +13,7 @@ import wrap from '@adobe/helix-shared-wrap';
1313import { helixStatus } from '@adobe/helix-status' ;
1414import secrets from '@adobe/helix-shared-secrets' ;
1515import dataAccess from '@adobe/spacecat-shared-data-access' ;
16- import { resolveSecretsName , sqsEventAdapter } from '@adobe/spacecat-shared-utils' ;
16+ import { sqsEventAdapter } from '@adobe/spacecat-shared-utils' ;
1717import { internalServerError , notFound , ok } from '@adobe/spacecat-shared-http-utils' ;
1818
1919import { runAuditStatusProcessor as auditStatusProcessor } from './audit-status-processor/handler.js' ;
@@ -27,6 +27,11 @@ const HANDLERS = {
2727 dummy : ( message ) => ok ( message ) ,
2828} ;
2929
30+ // Custom secret name resolver to use the correct secret path
31+ function getSecretName ( ) {
32+ return '/helix-deploy/spacecat-services/api-service/latest' ;
33+ }
34+
3035function getElapsedSeconds ( startTime ) {
3136 const endTime = process . hrtime ( startTime ) ;
3237 const elapsedSeconds = endTime [ 0 ] + endTime [ 1 ] / 1e9 ;
@@ -84,5 +89,5 @@ async function run(message, context) {
8489export const main = wrap ( run )
8590 . with ( dataAccess )
8691 . with ( sqsEventAdapter )
87- . with ( secrets , { name : resolveSecretsName } )
92+ . with ( secrets , { name : getSecretName } )
8893 . with ( helixStatus ) ;
0 commit comments