From dcfc7822f4c1f2063c84dbd4520dfc71889fbb45 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Wed, 29 Apr 2026 16:03:59 -0700 Subject: [PATCH] hide cert in public resources col on oss --- src/components/ClientResourcesTable.tsx | 2 ++ src/components/ProxyResourcesTable.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/components/ClientResourcesTable.tsx b/src/components/ClientResourcesTable.tsx index e8ff8ff62..88b1e938e 100644 --- a/src/components/ClientResourcesTable.tsx +++ b/src/components/ClientResourcesTable.tsx @@ -52,6 +52,7 @@ import { type ResourceSiteRow } from "@app/components/ResourceSitesStatusCell"; import { ResourceAccessCertIndicator } from "@app/components/ResourceAccessCertIndicator"; +import { build } from "@server/build"; export type InternalResourceSiteRow = ResourceSiteRow; @@ -445,6 +446,7 @@ export default function ClientResourcesTable({ const fullDomain = resourceRow.fullDomain; const url = `${resourceRow.ssl ? "https" : "http"}://${fullDomain}`; const did = + build !== "oss" && resourceRow.ssl && domainId != null && domainId !== "" && diff --git a/src/components/ProxyResourcesTable.tsx b/src/components/ProxyResourcesTable.tsx index f65ec0b0c..813d232cc 100644 --- a/src/components/ProxyResourcesTable.tsx +++ b/src/components/ProxyResourcesTable.tsx @@ -65,6 +65,7 @@ import { ColumnFilterButton } from "./ColumnFilterButton"; import { ControlledDataTable } from "./ui/controlled-data-table"; import UptimeMiniBar from "./UptimeMiniBar"; import { ResourceAccessCertIndicator } from "@app/components/ResourceAccessCertIndicator"; +import { build } from "@server/build"; export type TargetHealth = { targetId: number; @@ -554,6 +555,7 @@ export default function ProxyResourcesTable({ const domainId = resourceRow.domainId; const certHostname = resourceRow.fullDomain; const showHttpsCertIndicator = + build !== "oss" && resourceRow.ssl && certHostname != null && certHostname !== "";