From 4431a1a48486e2049c36873fe9e606468e639f98 Mon Sep 17 00:00:00 2001 From: Martin Yankov <23098926+Lutherwaves@users.noreply.github.com> Date: Sat, 20 Dec 2025 04:59:08 +0200 Subject: [PATCH 1/2] fix(helm): add custom egress rules to realtime network policy (#2481) The realtime service network policy was missing the custom egress rules section that allows configuration of additional egress rules via values.yaml. This caused the realtime pods to be unable to connect to external databases (e.g., PostgreSQL on port 5432) when using external database configurations. The app network policy already had this section, but the realtime network policy was missing it, creating an inconsistency and preventing the realtime service from accessing external databases configured via networkPolicy.egress values. This fix adds the same custom egress rules template section to the realtime network policy, matching the app network policy behavior and allowing users to configure database connectivity via values.yaml. --- helm/sim/templates/networkpolicy.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helm/sim/templates/networkpolicy.yaml b/helm/sim/templates/networkpolicy.yaml index deac5a5dba..7ef8697417 100644 --- a/helm/sim/templates/networkpolicy.yaml +++ b/helm/sim/templates/networkpolicy.yaml @@ -141,6 +141,10 @@ spec: ports: - protocol: TCP port: 443 + # Allow custom egress rules + {{- with .Values.networkPolicy.egress }} + {{- toYaml . | nindent 2 }} + {{- end }} {{- end }} {{- if .Values.postgresql.enabled }} From 49fad6ec86a2f6ebaa5440a62ad4928824f24ca3 Mon Sep 17 00:00:00 2001 From: majiayu000 <1835304752@qq.com> Date: Mon, 22 Dec 2025 18:59:50 +0800 Subject: [PATCH 2/2] feat(api): add version endpoint for instance identification Adds GET /api/version endpoint that returns: - Application version - Application name - Build time (if available) - Git commit hash (if available) - Node environment This helps users identify the version of a running Sim Studio instance. Fixes #2014 --- apps/sim/app/api/version/route.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 apps/sim/app/api/version/route.ts diff --git a/apps/sim/app/api/version/route.ts b/apps/sim/app/api/version/route.ts new file mode 100644 index 0000000000..e95cc60c8e --- /dev/null +++ b/apps/sim/app/api/version/route.ts @@ -0,0 +1,24 @@ +import { NextResponse } from 'next/server' + +export const dynamic = 'force-dynamic' + +// Version from package.json - updated during build process +const APP_VERSION = process.env.npm_package_version || process.env.APP_VERSION || '0.1.0' +const APP_NAME = 'sim-studio' + +/** + * GET /api/version + * Returns the current version information of the Sim Studio instance + */ +export async function GET() { + const buildTime = process.env.BUILD_TIME || null + const gitCommit = process.env.VERCEL_GIT_COMMIT_SHA || process.env.GIT_COMMIT || null + + return NextResponse.json({ + version: APP_VERSION, + name: APP_NAME, + buildTime, + gitCommit: gitCommit ? gitCommit.substring(0, 7) : null, + nodeEnv: process.env.NODE_ENV, + }) +}