Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

more fixes

varonix05ba038e605d
diff --git a/backend/src/services/integration/integration-deprecation-queue.ts b/backend/src/services/integration/integration-deprecation-queue.ts
index b74b10c463..dd3ea951ab 100644
--- a/backend/src/services/integration/integration-deprecation-queue.ts
+++ b/backend/src/services/integration/integration-deprecation-queue.ts
@@ -164,7 +164,7 @@ export const integrationDeprecationQueueFactory = ({
const orgAdminRecipients = toRecipients(
orgAdmins
- .filter((admin) => admin.status !== OrgMembershipStatus.Invited)
+ .filter((admin) => admin.status !== OrgMembershipStatus.Invited && admin.user.isActive)
.map((admin) => ({ userId: admin.user.id, email: admin.user.email }))
);
const orgAdminUserIds = new Set(orgAdminRecipients.map((recipient) => recipient.userId));
@@ -220,7 +220,9 @@ export const integrationDeprecationQueueFactory = ({
cronJob.register({
name: CronJobName.MonthlyNativeIntegrationDeprecationNotice,
pattern: "0 0 18 2,5,8,11 *",
- runHashTtlS: 7 * 24 * 60 * 60,
+ // must outlive the longest gap between two fires (92 days). The run hash is the only thing stopping a
+ // restarted pod from re-enqueuing the previous fire, since lastEnqueuedAt is per-process.
+ runHashTtlS: 100 * 24 * 60 * 60,
enabled: !appCfg.isSecondaryInstance,
handler: async () => {
if (!appCfg.SITE_URL) {
diff --git a/backend/src/services/org/org-dal.ts b/backend/src/services/org/org-dal.ts
index 1dac1fbfba..2c9052524b 100644
--- a/backend/src/services/org/org-dal.ts
+++ b/backend/src/services/org/org-dal.ts
@@ -614,13 +614,14 @@ export const orgDALFactory = (db: TDbClient) => {
conn.ref("firstName").withSchema(TableName.Users),
conn.ref("lastName").withSchema(TableName.Users),
conn.ref("id").withSchema(TableName.Users).as("userId"),
- conn.ref("publicKey").withSchema(TableName.UserEncryptionKey)
+ conn.ref("publicKey").withSchema(TableName.UserEncryptionKey),
+ conn.ref("isActive").withSchema(TableName.Membership)
)
.where({ isGhost: false });
- return members.map(({ username, email, firstName, lastName, userId, publicKey, ...data }) => ({
+ return members.map(({ username, email, firstName, lastName, userId, publicKey, isActive, ...data }) => ({
...data,
- user: { username, email, firstName, lastName, id: userId, publicKey }
+ user: { username, email, firstName, lastName, id: userId, publicKey, isActive }
}));
} catch (error) {
throw new DatabaseError({ error, name: "Find org members by role" });