Skip to content

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

improvement: use cron enabled param and link to the upgrade tool

Scott Wilsonef98f493a5de
diff --git a/backend/src/services/update-check/update-check-queue.ts b/backend/src/services/update-check/update-check-queue.ts
index 5ef66dc384..0a9fbc9c4f 100644
--- a/backend/src/services/update-check/update-check-queue.ts
+++ b/backend/src/services/update-check/update-check-queue.ts
@@ -59,15 +59,16 @@ export const updateCheckServiceFactory = ({ cronJob, keyStore }: TUpdateCheckSer
};
const init = () => {
- if (!isEnabled) return;
-
cronJob.register({
name: CronJobName.InstanceUpdateCheck,
pattern: "0 0 * * 0", // weekly on Sunday at midnight UTC
runHashTtlS: 3 * 24 * 60 * 60,
+ enabled: isEnabled,
handler: refreshLatestVersion
});
+ if (!isEnabled) return;
+
// also refresh once at boot so a fresh instance is not blind until the next Sunday fire
void keyStore
.getItem(KeyStorePrefixes.UpdateCheckLatestVersion)
diff --git a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
index d21f0cc0d0..15af0fbc2e 100644
--- a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
@@ -703,7 +703,7 @@ export const Navbar = () => {
Version: {envConfig.PLATFORM_VERSION}
{serverConfig.latestAvailableVersion && (
<a
- href="https://github.com/Infisical/infisical/releases"
+ href="https://upgrade.infisical.com/"
target="_blank"
rel="noopener noreferrer"
className="text-info hover:underline"
diff --git a/frontend/src/layouts/OrganizationLayout/components/NavBar/VersionBadge.tsx b/frontend/src/layouts/OrganizationLayout/components/NavBar/VersionBadge.tsx
index 2f87e28221..87e08e41d0 100644
--- a/frontend/src/layouts/OrganizationLayout/components/NavBar/VersionBadge.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/NavBar/VersionBadge.tsx
@@ -33,7 +33,7 @@ export const VersionBadge = () => {
<Tooltip>
<TooltipTrigger asChild>
<a
- href="https://github.com/Infisical/infisical/releases"
+ href="https://upgrade.infisical.com/"
target="_blank"
rel="noopener noreferrer"
className="mt-1 mr-2 hidden items-center gap-x-1.5 text-xs text-muted transition-colors hover:text-accent md:inline-flex"