Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
make org assets table more generic
x032205d53a423710cf
diff --git a/backend/src/@types/knex.d.ts b/backend/src/@types/knex.d.tsindex 15eb2bc889..44678eaeed 100644--- a/backend/src/@types/knex.d.ts+++ b/backend/src/@types/knex.d.ts@@ -293,6 +293,9 @@ import {TOidcConfigs,TOidcConfigsInsert,TOidcConfigsUpdate,+ TOrganizationAssets,+ TOrganizationAssetsInsert,+ TOrganizationAssetsUpdate,TOrganizations,TOrganizationsInsert,TOrganizationsUpdate,@@ -510,9 +513,6 @@ import {TSecretScanningScans,TSecretScanningScansInsert,TSecretScanningScansUpdate,- TSecretShareBrandingAssets,- TSecretShareBrandingAssetsInsert,- TSecretShareBrandingAssetsUpdate,TSecretSharing,TSecretSharingInsert,TSecretSharingUpdate,@@ -1614,10 +1614,10 @@ declare module "knex/types/tables" {TApprovalRequestsInsert,TApprovalRequestsUpdate>;- [TableName.SecretShareBrandingAsset]: KnexOriginal.CompositeTableType<- TSecretShareBrandingAssets,- TSecretShareBrandingAssetsInsert,- TSecretShareBrandingAssetsUpdate+ [TableName.OrganizationAsset]: KnexOriginal.CompositeTableType<+ TOrganizationAssets,+ TOrganizationAssetsInsert,+ TOrganizationAssetsUpdate>;}}diff --git a/backend/src/db/migrations/20260109205558_secret-share-brand-config.ts b/backend/src/db/migrations/20260109205558_secret-share-brand-config.tsindex c8e6fcd552..a16c8fb423 100644--- a/backend/src/db/migrations/20260109205558_secret-share-brand-config.ts+++ b/backend/src/db/migrations/20260109205558_secret-share-brand-config.ts@@ -11,30 +11,30 @@ export async function up(knex: Knex): Promise<void> {});}- // For storing logo/favicon images- const hasAssetsTable = await knex.schema.hasTable(TableName.SecretShareBrandingAsset);+ // General blob storage for organization assets+ const hasAssetsTable = await knex.schema.hasTable(TableName.OrganizationAsset);if (!hasAssetsTable) {- await knex.schema.createTable(TableName.SecretShareBrandingAsset, (t) => {+ await knex.schema.createTable(TableName.OrganizationAsset, (t) => {t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());t.uuid("orgId").notNullable();t.foreign("orgId").references("id").inTable(TableName.Organization).onDelete("CASCADE");- t.string("assetType").notNullable(); // 'logo' or 'favicon'+ t.string("assetType").notNullable();t.binary("data").notNullable();t.string("contentType").notNullable();t.integer("size").notNullable();t.timestamps(true, true, true);- t.unique(["orgId", "assetType"]);+ t.index(["orgId", "assetType"]);});- await createOnUpdateTrigger(knex, TableName.SecretShareBrandingAsset);+ await createOnUpdateTrigger(knex, TableName.OrganizationAsset);}}export async function down(knex: Knex): Promise<void> {- const hasAssetsTable = await knex.schema.hasTable(TableName.SecretShareBrandingAsset);+ const hasAssetsTable = await knex.schema.hasTable(TableName.OrganizationAsset);if (hasAssetsTable) {- await knex.schema.dropTable(TableName.SecretShareBrandingAsset);- await dropOnUpdateTrigger(knex, TableName.SecretShareBrandingAsset);+ await knex.schema.dropTable(TableName.OrganizationAsset);+ await dropOnUpdateTrigger(knex, TableName.OrganizationAsset);}const hasConfigColumn = await knex.schema.hasColumn(TableName.Organization, "secretShareBrandConfig");diff --git a/backend/src/db/schemas/index.ts b/backend/src/db/schemas/index.tsindex c3c1f1e063..8ec56de6b9 100644--- a/backend/src/db/schemas/index.ts+++ b/backend/src/db/schemas/index.ts@@ -104,6 +104,7 @@ export * from "./org-gateway-config-v2";export * from "./org-memberships";export * from "./org-relay-config";export * from "./org-roles";+export * from "./organization-assets";export * from "./organizations";export * from "./pam-accounts";export * from "./pam-folders";@@ -174,7 +175,6 @@ export * from "./secret-scanning-findings";export * from "./secret-scanning-git-risks";export * from "./secret-scanning-resources";export * from "./secret-scanning-scans";-export * from "./secret-share-branding-assets";export * from "./secret-sharing";export * from "./secret-snapshot-folders";export * from "./secret-snapshot-secrets";diff --git a/backend/src/db/schemas/models.ts b/backend/src/db/schemas/models.tsindex c366bd2bec..5ca9727d7c 100644--- a/backend/src/db/schemas/models.ts+++ b/backend/src/db/schemas/models.ts@@ -70,7 +70,7 @@ export enum TableName {Secret = "secrets",SecretReference = "secret_references",SecretSharing = "secret_sharing",- SecretShareBrandingAsset = "secret_share_branding_assets",+ OrganizationAsset = "organization_assets",SecretBlindIndex = "secret_blind_indexes",SecretVersion = "secret_versions",SecretFolder = "secret_folders",diff --git a/backend/src/db/schemas/secret-share-branding-assets.ts b/backend/src/db/schemas/organization-assets.tssimilarity index 55%rename from backend/src/db/schemas/secret-share-branding-assets.tsrename to backend/src/db/schemas/organization-assets.tsindex d0375f1fe8..33a57d5368 100644--- a/backend/src/db/schemas/secret-share-branding-assets.ts+++ b/backend/src/db/schemas/organization-assets.ts@@ -9,7 +9,7 @@ import { zodBuffer } from "@app/lib/zod";import { TImmutableDBKeys } from "./models";-export const SecretShareBrandingAssetsSchema = z.object({+export const OrganizationAssetsSchema = z.object({id: z.string().uuid(),orgId: z.string().uuid(),assetType: z.string(),@@ -20,8 +20,6 @@ export const SecretShareBrandingAssetsSchema = z.object({updatedAt: z.date()});-export type TSecretShareBrandingAssets = z.infer<typeof SecretShareBrandingAssetsSchema>;-export type TSecretShareBrandingAssetsInsert = Omit<z.input<typeof SecretShareBrandingAssetsSchema>, TImmutableDBKeys>;-export type TSecretShareBrandingAssetsUpdate = Partial<- Omit<z.input<typeof SecretShareBrandingAssetsSchema>, TImmutableDBKeys>->;+export type TOrganizationAssets = z.infer<typeof OrganizationAssetsSchema>;+export type TOrganizationAssetsInsert = Omit<z.input<typeof OrganizationAssetsSchema>, TImmutableDBKeys>;+export type TOrganizationAssetsUpdate = Partial<Omit<z.input<typeof OrganizationAssetsSchema>, TImmutableDBKeys>>;diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.tsindex 0dcd3173c7..7c40a49dc5 100644--- a/backend/src/server/routes/index.ts+++ b/backend/src/server/routes/index.ts@@ -307,6 +307,7 @@ import { incidentContactDALFactory } from "@app/services/org/incident-contacts-dimport { orgDALFactory } from "@app/services/org/org-dal";import { orgServiceFactory } from "@app/services/org/org-service";import { orgAdminServiceFactory } from "@app/services/org-admin/org-admin-service";+import { orgAssetDALFactory } from "@app/services/org-asset/org-asset-dal";import { orgMembershipDALFactory } from "@app/services/org-membership/org-membership-dal";import { pamAccountRotationServiceFactory } from "@app/services/pam-account-rotation/pam-account-rotation-queue";import { pamSessionExpirationServiceFactory } from "@app/services/pam-session-expiration/pam-session-expiration-queue";@@ -363,7 +364,6 @@ import { secretFolderVersionDALFactory } from "@app/services/secret-folder/secreimport { secretImportDALFactory } from "@app/services/secret-import/secret-import-dal";import { secretImportServiceFactory } from "@app/services/secret-import/secret-import-service";import { secretReminderRecipientsDALFactory } from "@app/services/secret-reminder-recipients/secret-reminder-recipients-dal";-import { secretShareBrandingAssetDALFactory } from "@app/services/secret-sharing/secret-share-branding-asset-dal";import { secretSharingDALFactory } from "@app/services/secret-sharing/secret-sharing-dal";import { secretSharingServiceFactory } from "@app/services/secret-sharing/secret-sharing-service";import { secretSyncDALFactory } from "@app/services/secret-sync/secret-sync-dal";@@ -553,7 +553,7 @@ export const registerRoutes = async (const userGroupMembershipDAL = userGroupMembershipDALFactory(db);const secretScanningDAL = secretScanningDALFactory(db);const secretSharingDAL = secretSharingDALFactory(db);- const secretShareBrandingAssetDAL = secretShareBrandingAssetDALFactory(db);+ const orgAssetDAL = orgAssetDALFactory(db);const licenseDAL = licenseDALFactory(db);const dynamicSecretDAL = dynamicSecretDALFactory(db);const dynamicSecretLeaseDAL = dynamicSecretLeaseDALFactory(db);@@ -1575,7 +1575,7 @@ export const registerRoutes = async (const secretSharingService = secretSharingServiceFactory({permissionService,secretSharingDAL,- secretShareBrandingAssetDAL,+ orgAssetDAL,orgDAL,kmsService,smtpService,diff --git a/backend/src/server/routes/v1/secret-requests-router.ts b/backend/src/server/routes/v1/secret-requests-router.tsindex aaf75c4f3d..478f525a3c 100644--- a/backend/src/server/routes/v1/secret-requests-router.ts+++ b/backend/src/server/routes/v1/secret-requests-router.ts@@ -88,7 +88,7 @@ export const registerSecretRequestsRouter = async (server: FastifyZodProvider) =schema: {params: z.object({id: z.string(),- assetType: z.enum(["logo", "favicon"])+ assetType: z.enum(["brand-logo", "brand-favicon"])})},handler: async (req, res) => {diff --git a/backend/src/server/routes/v1/secret-sharing-router.ts b/backend/src/server/routes/v1/secret-sharing-router.tsindex a3209a2321..475266f6bb 100644--- a/backend/src/server/routes/v1/secret-sharing-router.ts+++ b/backend/src/server/routes/v1/secret-sharing-router.ts@@ -295,7 +295,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>schema: {params: z.object({id: z.string(),- assetType: z.enum(["logo", "favicon"])+ assetType: z.enum(["brand-logo", "brand-favicon"])})},handler: async (req, res) => {@@ -329,7 +329,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>},schema: {params: z.object({- assetType: z.enum(["logo", "favicon"])+ assetType: z.enum(["brand-logo", "brand-favicon"])}),response: {200: z.object({@@ -382,7 +382,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>},schema: {params: z.object({- assetType: z.enum(["logo", "favicon"])+ assetType: z.enum(["brand-logo", "brand-favicon"])}),response: {200: z.object({@@ -439,7 +439,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>},schema: {params: z.object({- assetType: z.enum(["logo", "favicon"])+ assetType: z.enum(["brand-logo", "brand-favicon"])})},onRequest: verifyAuth([AuthMode.JWT]),diff --git a/backend/src/services/org-asset/org-asset-dal.ts b/backend/src/services/org-asset/org-asset-dal.tsnew file mode 100644index 0000000000..b11a847c7a--- /dev/null+++ b/backend/src/services/org-asset/org-asset-dal.ts@@ -0,0 +1,50 @@+import { TDbClient } from "@app/db";+import { TableName } from "@app/db/schemas";+import { ormify } from "@app/lib/knex";++export type TOrgAssetDALFactory = ReturnType<typeof orgAssetDALFactory>;++export const orgAssetDALFactory = (db: TDbClient) => {+ const organizationAssetOrm = ormify(db, TableName.OrganizationAsset);++ // "First Asset" functions useful in scenarios where only one asset of a type is expected per organization+ const getFirstAsset = async (orgId: string, assetType: string) => {+ const asset = await db.replicaNode()(TableName.OrganizationAsset).where({ orgId, assetType }).first();+ return asset;+ };++ const upsertFirstAsset = async (+ orgId: string,+ assetType: string,+ data: Buffer,+ contentType: string,+ size: number+ ) => {+ const existing = await getFirstAsset(orgId, assetType);+ if (existing) {+ return organizationAssetOrm.updateById(existing.id, { data, contentType, size });+ }+ return organizationAssetOrm.create({ orgId, assetType, data, contentType, size });+ };++ const deleteAssetsByType = async (orgId: string, assetType: string) => {+ await db(TableName.OrganizationAsset).where({ orgId, assetType }).delete();+ };++ const listAssets = async (orgId: string) => {+ return db.replicaNode()(TableName.OrganizationAsset).where({ orgId });+ };++ const listAssetsByType = async (orgId: string, assetTypes: string[]) => {+ return db.replicaNode()(TableName.OrganizationAsset).where({ orgId }).whereIn("assetType", assetTypes);+ };++ return {+ ...organizationAssetOrm,+ getFirstAsset,+ upsertFirstAsset,+ deleteAssetsByType,+ listAssets,+ listAssetsByType+ };+};diff --git a/backend/src/services/secret-sharing/secret-share-branding-asset-dal.ts b/backend/src/services/secret-sharing/secret-share-branding-asset-dal.tsdeleted file mode 100644index 211816a6bd..0000000000--- a/backend/src/services/secret-sharing/secret-share-branding-asset-dal.ts+++ /dev/null@@ -1,38 +0,0 @@-import { TDbClient } from "@app/db";-import { TableName } from "@app/db/schemas";-import { ormify } from "@app/lib/knex";--export type TSecretShareBrandingAssetDALFactory = ReturnType<typeof secretShareBrandingAssetDALFactory>;--export const secretShareBrandingAssetDALFactory = (db: TDbClient) => {- const brandingAssetOrm = ormify(db, TableName.SecretShareBrandingAsset);-- const findByOrgIdAndType = async (orgId: string, assetType: string) => {- const asset = await db.replicaNode()(TableName.SecretShareBrandingAsset).where({ orgId, assetType }).first();- return asset;- };-- const upsert = async (orgId: string, assetType: string, data: Buffer, contentType: string, size: number) => {- const existing = await findByOrgIdAndType(orgId, assetType);- if (existing) {- return brandingAssetOrm.updateById(existing.id, { data, contentType, size });- }- return brandingAssetOrm.create({ orgId, assetType, data, contentType, size });- };-- const deleteByOrgIdAndType = async (orgId: string, assetType: string) => {- await db(TableName.SecretShareBrandingAsset).where({ orgId, assetType }).delete();- };-- const findAllByOrgId = async (orgId: string) => {- return db.replicaNode()(TableName.SecretShareBrandingAsset).where({ orgId });- };-- return {- ...brandingAssetOrm,- findByOrgIdAndType,- upsert,- deleteByOrgIdAndType,- findAllByOrgId- };-};diff --git a/backend/src/services/secret-sharing/secret-sharing-service.ts b/backend/src/services/secret-sharing/secret-sharing-service.tsindex c13e9070ff..f53de1b72a 100644--- a/backend/src/services/secret-sharing/secret-sharing-service.ts+++ b/backend/src/services/secret-sharing/secret-sharing-service.ts@@ -1,6 +1,7 @@import { ForbiddenError } from "@casl/ability";import { OrganizationActionScope, TSecretSharing } from "@app/db/schemas";+import { TLicenseServiceFactory } from "@app/ee/services/license/license-service";import { OrgPermissionSecretShareAction, OrgPermissionSubjects } from "@app/ee/services/permission/org-permission";import { TPermissionServiceFactory } from "@app/ee/services/permission/permission-service-types";import { getConfig } from "@app/lib/config/env";@@ -13,9 +14,9 @@ import { isUuidV4 } from "@app/lib/validator";import { TKmsServiceFactory } from "../kms/kms-service";import { TOrgDALFactory } from "../org/org-dal";import { TSecretShareBrandConfig } from "../org/org-types";+import { TOrgAssetDALFactory } from "../org-asset/org-asset-dal";import { SmtpTemplates, TSmtpService } from "../smtp/smtp-service";import { TUserDALFactory } from "../user/user-dal";-import { TSecretShareBrandingAssetDALFactory } from "./secret-share-branding-asset-dal";import { TSecretSharingDALFactory } from "./secret-sharing-dal";import {SecretSharingType,@@ -29,12 +30,11 @@ import {TRevealSecretRequestValueDTO,TSetSecretRequestValueDTO} from "./secret-sharing-types";-import { TLicenseServiceFactory } from "@app/ee/services/license/license-service";type TSecretSharingServiceFactoryDep = {permissionService: Pick<TPermissionServiceFactory, "getOrgPermission">;secretSharingDAL: TSecretSharingDALFactory;- secretShareBrandingAssetDAL: TSecretShareBrandingAssetDALFactory;+ orgAssetDAL: TOrgAssetDALFactory;orgDAL: TOrgDALFactory;userDAL: TUserDALFactory;kmsService: TKmsServiceFactory;@@ -47,7 +47,7 @@ export type TSecretSharingServiceFactory = ReturnType<typeof secretSharingServicexport const secretSharingServiceFactory = ({permissionService,secretSharingDAL,- secretShareBrandingAssetDAL,+ orgAssetDAL,orgDAL,kmsService,smtpService,@@ -691,10 +691,10 @@ export const secretSharingServiceFactory = ({}const org = await orgDAL.findOrgById(orgId);- const assets = await secretShareBrandingAssetDAL.findAllByOrgId(orgId);+ const assets = await orgAssetDAL.listAssetsByType(orgId, ["brand-logo", "brand-favicon"]);- const hasLogo = assets.some((a) => a.assetType === "logo");- const hasFavicon = assets.some((a) => a.assetType === "favicon");+ const hasLogo = assets.some((a) => a.assetType === "brand-logo");+ const hasFavicon = assets.some((a) => a.assetType === "brand-favicon");const config = org?.secretShareBrandConfig as TSecretShareBrandConfig;@@ -733,7 +733,7 @@ export const secretSharingServiceFactory = ({return null;}- const asset = await secretShareBrandingAssetDAL.findByOrgIdAndType(orgId, assetType);+ const asset = await orgAssetDAL.getFirstAsset(orgId, assetType);return asset;};@@ -759,7 +759,7 @@ export const secretSharingServiceFactory = ({);const size = data.length;- return secretShareBrandingAssetDAL.upsert(orgId, assetType, data, contentType, size);+ return orgAssetDAL.upsertFirstAsset(orgId, assetType, data, contentType, size);};const deleteBrandingAsset = async (orgId: string, assetType: string, actor: OrgServiceActor) => {@@ -777,7 +777,7 @@ export const secretSharingServiceFactory = ({OrgPermissionSubjects.SecretShare);- await secretShareBrandingAssetDAL.deleteByOrgIdAndType(orgId, assetType);+ await orgAssetDAL.deleteAssetsByType(orgId, assetType);};return {diff --git a/frontend/src/hooks/api/secretSharing/mutations.ts b/frontend/src/hooks/api/secretSharing/mutations.tsindex db952577d9..75ca8e8a10 100644--- a/frontend/src/hooks/api/secretSharing/mutations.ts+++ b/frontend/src/hooks/api/secretSharing/mutations.ts@@ -118,7 +118,7 @@ export const useUploadBrandingAsset = () => {return useMutation<{ message: string },{ message: string },- { assetType: "logo" | "favicon"; file: File }+ { assetType: "brand-logo" | "brand-favicon"; file: File }>({mutationFn: async ({ assetType, file }) => {const formData = new FormData();@@ -142,7 +142,11 @@ export const useUploadBrandingAsset = () => {export const useDeleteBrandingAsset = () => {const queryClient = useQueryClient();- return useMutation<{ message: string }, { message: string }, { assetType: "logo" | "favicon" }>({+ return useMutation<+ { message: string },+ { message: string },+ { assetType: "brand-logo" | "brand-favicon" }+ >({mutationFn: async ({ assetType }) => {const { data } = await apiRequest.delete<{ message: string }>(`/api/v1/secret-sharing/shared/branding/${assetType}`diff --git a/frontend/src/pages/organization/SecretSharingPage/components/SecretSharingSettings/SecretSharingBrandingSection.tsx b/frontend/src/pages/organization/SecretSharingPage/components/SecretSharingSettings/SecretSharingBrandingSection.tsxindex 1e7e71f23f..127e254394 100644--- a/frontend/src/pages/organization/SecretSharingPage/components/SecretSharingSettings/SecretSharingBrandingSection.tsx+++ b/frontend/src/pages/organization/SecretSharingPage/components/SecretSharingSettings/SecretSharingBrandingSection.tsx@@ -59,7 +59,9 @@ const validateFile = (file: File): string | null => {};// Fetch image as base64 data URL using authenticated request-const fetchAssetAsDataUrl = async (assetType: "logo" | "favicon"): Promise<string | null> => {+const fetchAssetAsDataUrl = async (+ assetType: "brand-logo" | "brand-favicon"+): Promise<string | null> => {try {const response = await apiRequest.get(`/api/v1/secret-sharing/shared/branding/${assetType}`, {responseType: "blob"@@ -77,14 +79,14 @@ const fetchAssetAsDataUrl = async (assetType: "logo" | "favicon"): Promise<strin};type AssetUploadCardProps = {- assetType: "logo" | "favicon";+ assetType: "brand-logo" | "brand-favicon";title: string;description: string;hasAsset: boolean;isAllowed: boolean;isPending: boolean;- onUpload: (assetType: "logo" | "favicon", file: File) => Promise<void>;- onDelete: (assetType: "logo" | "favicon") => Promise<void>;+ onUpload: (assetType: "brand-logo" | "brand-favicon", file: File) => Promise<void>;+ onDelete: (assetType: "brand-logo" | "brand-favicon") => Promise<void>;};const AssetUploadCard = ({@@ -237,7 +239,7 @@ export const SecretSharingBrandingSection = () => {});};- const handleFileUpload = async (assetType: "logo" | "favicon", file: File) => {+ const handleFileUpload = async (assetType: "brand-logo" | "brand-favicon", file: File) => {await uploadAsset({ assetType, file });createNotification({text: `Successfully uploaded ${assetType}`,@@ -245,7 +247,7 @@ export const SecretSharingBrandingSection = () => {});};- const handleFileDelete = async (assetType: "logo" | "favicon") => {+ const handleFileDelete = async (assetType: "brand-logo" | "brand-favicon") => {await deleteAsset({ assetType });createNotification({text: `Successfully deleted ${assetType}`,@@ -291,7 +293,7 @@ export const SecretSharingBrandingSection = () => {<div className="space-y-4"><div className="grid grid-cols-1 gap-4 md:grid-cols-2"><AssetUploadCard- assetType="logo"+ assetType="brand-logo"title="Logo"description="Displayed on shared secret pages (max 1MB)"hasAsset={brandingConfig?.hasLogo ?? false}@@ -301,7 +303,7 @@ export const SecretSharingBrandingSection = () => {onDelete={handleFileDelete}/><AssetUploadCard- assetType="favicon"+ assetType="brand-favicon"title="Favicon"description="Displayed in browser tab (max 1MB)"hasAsset={brandingConfig?.hasFavicon ?? false}diff --git a/frontend/src/pages/public/ViewSecretRequestByIDPage/ViewSecretRequestByIDPage.tsx b/frontend/src/pages/public/ViewSecretRequestByIDPage/ViewSecretRequestByIDPage.tsxindex 115adce062..2c16dba149 100644--- a/frontend/src/pages/public/ViewSecretRequestByIDPage/ViewSecretRequestByIDPage.tsx+++ b/frontend/src/pages/public/ViewSecretRequestByIDPage/ViewSecretRequestByIDPage.tsx@@ -92,10 +92,10 @@ export const ViewSecretRequestByIDPage = () => {const hasCustomBranding = !!brandingConfig;const logoUrl = brandingConfig?.hasLogo- ? `/api/v1/secret-sharing/requests/${id}/branding/logo`+ ? `/api/v1/secret-sharing/requests/${id}/branding/brand-logo`: DEFAULT_LOGO_URL;const faviconUrl = brandingConfig?.hasFavicon- ? `/api/v1/secret-sharing/requests/${id}/branding/favicon`+ ? `/api/v1/secret-sharing/requests/${id}/branding/brand-favicon`: DEFAULT_FAVICON_URL;const brandingTheme = useMemo(() => {diff --git a/frontend/src/pages/public/ViewSharedSecretByIDPage/ViewSharedSecretByIDPage.tsx b/frontend/src/pages/public/ViewSharedSecretByIDPage/ViewSharedSecretByIDPage.tsxindex c9fe57d48e..284f50ebef 100644--- a/frontend/src/pages/public/ViewSharedSecretByIDPage/ViewSharedSecretByIDPage.tsx+++ b/frontend/src/pages/public/ViewSharedSecretByIDPage/ViewSharedSecretByIDPage.tsx@@ -154,10 +154,10 @@ export const ViewSharedSecretByIDPage = () => {// Use proxy URLs for branding assets to avoid cross origin issuesconst logoUrl = brandingConfig?.hasLogo- ? `/api/v1/secret-sharing/shared/public/${id}/branding/logo`+ ? `/api/v1/secret-sharing/shared/public/${id}/branding/brand-logo`: DEFAULT_LOGO_URL;const faviconUrl = brandingConfig?.hasFavicon- ? `/api/v1/secret-sharing/shared/public/${id}/branding/favicon`+ ? `/api/v1/secret-sharing/shared/public/${id}/branding/brand-favicon`: DEFAULT_FAVICON_URL;const brandingTheme = useMemo((): BrandingTheme | undefined => {