mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 02:26:40 +00:00
Feat: Silent integration errors
This commit is contained in:
@@ -454,7 +454,9 @@ const syncSecretsAWSParameterStore = async ({
|
|||||||
}) => {
|
}) => {
|
||||||
let response: { isSynced: boolean; syncMessage: string } | null = null;
|
let response: { isSynced: boolean; syncMessage: string } | null = null;
|
||||||
|
|
||||||
if (!accessId) return null;
|
if (!accessId) {
|
||||||
|
throw new Error("AWS access ID is required");
|
||||||
|
}
|
||||||
|
|
||||||
const config = new AWS.Config({
|
const config = new AWS.Config({
|
||||||
region: integration.region as string,
|
region: integration.region as string,
|
||||||
|
|||||||
@@ -562,8 +562,8 @@ export const secretQueueFactory = ({
|
|||||||
await integrationDAL.updateById(integration.id, {
|
await integrationDAL.updateById(integration.id, {
|
||||||
lastSyncJobId: job.id,
|
lastSyncJobId: job.id,
|
||||||
lastUsed: new Date(),
|
lastUsed: new Date(),
|
||||||
syncMessage: response?.syncMessage || "",
|
syncMessage: response?.syncMessage ?? "",
|
||||||
isSynced: response?.isSynced || true
|
isSynced: response?.isSynced ?? true
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.info("Secret integration sync error: %o", err);
|
logger.info("Secret integration sync error: %o", err);
|
||||||
|
|||||||
Reference in New Issue
Block a user