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
ui for token details + reset honey token
Matheus Nogueira34d8d636d053
diff --git a/backend/src/db/migrations/20260427174746_honey-tokens.ts b/backend/src/db/migrations/20260427174746_honey-tokens.tsindex 24ec714df4..1c7f8ce851 100644--- a/backend/src/db/migrations/20260427174746_honey-tokens.ts+++ b/backend/src/db/migrations/20260427174746_honey-tokens.ts@@ -40,6 +40,14 @@ export async function up(knex: Knex): Promise<void> {t.string("tokenIdentifier", 256).nullable();t.unique(["tokenIdentifier"]);t.datetime("lastTriggeredAt").nullable();+ t.datetime("lastResetAt").nullable();+ t.datetime("revokedAt").nullable();+ t.uuid("createdByUserId").nullable();+ t.foreign("createdByUserId").references("id").inTable(TableName.Users).onDelete("SET NULL");+ t.uuid("resetByUserId").nullable();+ t.foreign("resetByUserId").references("id").inTable(TableName.Users).onDelete("SET NULL");+ t.uuid("revokedByUserId").nullable();+ t.foreign("revokedByUserId").references("id").inTable(TableName.Users).onDelete("SET NULL");t.timestamps(true, true, true);});diff --git a/backend/src/db/schemas/honey-tokens.ts b/backend/src/db/schemas/honey-tokens.tsindex 331ca10524..d8170c0272 100644--- a/backend/src/db/schemas/honey-tokens.ts+++ b/backend/src/db/schemas/honey-tokens.ts@@ -22,6 +22,11 @@ export const HoneyTokensSchema = z.object({secretsMapping: z.unknown(),tokenIdentifier: z.string().nullable().optional(),lastTriggeredAt: z.date().nullable().optional(),+ lastResetAt: z.date().nullable().optional(),+ revokedAt: z.date().nullable().optional(),+ createdByUserId: z.string().uuid().nullable().optional(),+ resetByUserId: z.string().uuid().nullable().optional(),+ revokedByUserId: z.string().uuid().nullable().optional(),createdAt: z.date(),updatedAt: z.date()});diff --git a/backend/src/db/schemas/pam-resources.ts b/backend/src/db/schemas/pam-resources.tsindex 0e03fcc83f..7193631283 100644--- a/backend/src/db/schemas/pam-resources.ts+++ b/backend/src/db/schemas/pam-resources.ts@@ -21,8 +21,8 @@ export const PamResourcesSchema = z.object({encryptedRotationAccountCredentials: zodBuffer.nullable().optional(),encryptedResourceMetadata: zodBuffer.nullable().optional(),discoveryFingerprint: z.string().nullable().optional(),- domainId: z.string().uuid().nullable().optional(),- encryptedSessionSummaryConfig: zodBuffer.nullable().optional()+ encryptedSessionSummaryConfig: zodBuffer.nullable().optional(),+ domainId: z.string().uuid().nullable().optional()});export type TPamResources = z.infer<typeof PamResourcesSchema>;diff --git a/backend/src/ee/routes/v1/honey-token-router.ts b/backend/src/ee/routes/v1/honey-token-router.tsindex 766d3713c4..98a667a206 100644--- a/backend/src/ee/routes/v1/honey-token-router.ts+++ b/backend/src/ee/routes/v1/honey-token-router.ts@@ -58,6 +58,62 @@ export const registerHoneyTokenRouter = async (server: FastifyZodProvider) => {}});+ server.route({+ url: "/:honeyTokenId",+ method: "GET",+ config: {+ rateLimit: readLimit+ },+ onRequest: verifyAuth([AuthMode.JWT]),+ schema: {+ params: z.object({+ honeyTokenId: z.string().uuid()+ }),+ querystring: z.object({+ projectId: z.string().trim()+ }),+ response: {+ 200: z.object({+ honeyToken: z.object({+ id: z.string().uuid(),+ name: z.string(),+ description: z.string().nullable().optional(),+ type: z.string(),+ status: z.string(),+ projectId: z.string(),+ folderId: z.string().uuid(),+ secretsMapping: z.unknown(),+ createdAt: z.date(),+ updatedAt: z.date(),+ environment: z+ .object({+ id: z.string(),+ name: z.string(),+ slug: z.string()+ })+ .nullable(),+ folder: z+ .object({+ path: z.string()+ })+ .nullable(),+ openEvents: z.number()+ })+ })+ }+ },+ handler: async (req) => {+ const { honeyToken } = await server.services.honeyTokenCrud.getHoneyTokenById(+ {+ honeyTokenId: req.params.honeyTokenId,+ projectId: req.query.projectId+ },+ req.permission+ );+ return { honeyToken };+ }+ });+server.route({url: "/:honeyTokenId",method: "PATCH",@@ -107,6 +163,48 @@ export const registerHoneyTokenRouter = async (server: FastifyZodProvider) => {}});+ server.route({+ url: "/:honeyTokenId/reset",+ method: "POST",+ config: {+ rateLimit: writeLimit+ },+ onRequest: verifyAuth([AuthMode.JWT]),+ schema: {+ params: z.object({+ honeyTokenId: z.string().uuid()+ }),+ body: z.object({+ projectId: z.string().trim()+ }),+ response: {+ 200: z.object({+ honeyToken: z.object({+ id: z.string().uuid(),+ status: z.string(),+ lastResetAt: z.date().nullable()+ })+ })+ }+ },+ handler: async (req) => {+ const { honeyToken } = await server.services.honeyTokenCrud.resetHoneyToken(+ {+ honeyTokenId: req.params.honeyTokenId,+ projectId: req.body.projectId+ },+ req.permission+ );+ return {+ honeyToken: {+ id: honeyToken.id,+ status: honeyToken.status,+ lastResetAt: honeyToken.lastResetAt ?? null+ }+ };+ }+ });+server.route({url: "/:honeyTokenId",method: "DELETE",@@ -171,6 +269,52 @@ export const registerHoneyTokenRouter = async (server: FastifyZodProvider) => {}});+ server.route({+ url: "/:honeyTokenId/events",+ method: "GET",+ config: {+ rateLimit: readLimit+ },+ onRequest: verifyAuth([AuthMode.JWT]),+ schema: {+ params: z.object({+ honeyTokenId: z.string().uuid()+ }),+ querystring: z.object({+ projectId: z.string().trim(),+ offset: z.coerce.number().min(0).default(0),+ limit: z.coerce.number().min(1).max(100).default(25)+ }),+ response: {+ 200: z.object({+ events: z.array(+ z.object({+ id: z.string().uuid(),+ honeyTokenId: z.string().uuid(),+ eventType: z.string(),+ metadata: z.unknown().nullable().optional(),+ createdAt: z.date(),+ updatedAt: z.date()+ })+ ),+ totalCount: z.number()+ })+ }+ },+ handler: async (req) => {+ const { events, totalCount } = await server.services.honeyTokenCrud.getHoneyTokenEvents(+ {+ honeyTokenId: req.params.honeyTokenId,+ projectId: req.query.projectId,+ offset: req.query.offset,+ limit: req.query.limit+ },+ req.permission+ );+ return { events, totalCount };+ }+ });+server.route({url: "/configs",method: "PUT",diff --git a/backend/src/ee/services/honey-token/honey-token-config-service.ts b/backend/src/ee/services/honey-token/honey-token-config-service.tsindex 9aef008fe9..15641465ab 100644--- a/backend/src/ee/services/honey-token/honey-token-config-service.ts+++ b/backend/src/ee/services/honey-token/honey-token-config-service.ts@@ -201,7 +201,7 @@ export const honeyTokenConfigServiceFactory = ({eventTime: eventMetadata.eventTime,sourceIp: eventMetadata.sourceIp || "Unknown",awsRegion: eventMetadata.awsRegion,- projectUrl: `${siteUrl}/project/${project.id}/honey-tokens`+ projectUrl: `${siteUrl}/organizations/${orgId}/projects/secret-management/${project.id}/honey-tokens/${honeyToken.id}`}});} catch (err) {diff --git a/backend/src/ee/services/honey-token/honey-token-event-dal.ts b/backend/src/ee/services/honey-token/honey-token-event-dal.tsindex b91ba3a26f..c0ad50fd2d 100644--- a/backend/src/ee/services/honey-token/honey-token-event-dal.ts+++ b/backend/src/ee/services/honey-token/honey-token-event-dal.ts@@ -1,10 +1,46 @@import { TDbClient } from "@app/db";import { TableName } from "@app/db/schemas";+import { DatabaseError } from "@app/lib/errors";import { ormify } from "@app/lib/knex";export type THoneyTokenEventDALFactory = ReturnType<typeof honeyTokenEventDALFactory>;export const honeyTokenEventDALFactory = (db: TDbClient) => {const orm = ormify(db, TableName.HoneyTokenEvent);- return orm;++ const countByHoneyTokenId = async (honeyTokenId: string, since?: Date) => {+ try {+ const query = db.replicaNode()(TableName.HoneyTokenEvent).where({ honeyTokenId });+ if (since) {+ void query.where("createdAt", ">", since);+ }+ const [res] = await query.count("id", { as: "count" });+ return Number(res.count);+ } catch (error) {+ throw new DatabaseError({ error, name: "CountByHoneyTokenId" });+ }+ };++ const findByHoneyTokenId = async (+ honeyTokenId: string,+ { since, offset, limit }: { since?: Date; offset?: number; limit?: number }+ ) => {+ try {+ const query = db.replicaNode()(TableName.HoneyTokenEvent).where({ honeyTokenId }).orderBy("createdAt", "desc");+ if (since) {+ void query.where("createdAt", ">", since);+ }+ if (offset !== undefined) {+ void query.offset(offset);+ }+ if (limit !== undefined) {+ void query.limit(limit);+ }+ return await query;+ } catch (error) {+ throw new DatabaseError({ error, name: "FindByHoneyTokenId" });+ }+ };++ return { ...orm, countByHoneyTokenId, findByHoneyTokenId };};diff --git a/backend/src/ee/services/honey-token/honey-token-service.ts b/backend/src/ee/services/honey-token/honey-token-service.tsindex 0c3f519665..bd57fe7e0a 100644--- a/backend/src/ee/services/honey-token/honey-token-service.ts+++ b/backend/src/ee/services/honey-token/honey-token-service.ts@@ -31,12 +31,14 @@ import { TSecretSnapshotServiceFactory } from "../secret-snapshot/secret-snapshoimport { THoneyTokenConfigDALFactory } from "./honey-token-config-dal";import { THoneyTokenDALFactory } from "./honey-token-dal";import { HoneyTokenStatus, HoneyTokenType } from "./honey-token-enums";+import { THoneyTokenEventDALFactory } from "./honey-token-event-dal";const HONEY_TOKEN_IAM_USER_PREFIX = "inf_ht_";type THoneyTokenServiceFactoryDep = {honeyTokenDAL: THoneyTokenDALFactory;honeyTokenConfigDAL: THoneyTokenConfigDALFactory;+ honeyTokenEventDAL: Pick<THoneyTokenEventDALFactory, "find" | "countByHoneyTokenId" | "findByHoneyTokenId">;permissionService: Pick<TPermissionServiceFactory, "getProjectPermission">;licenseService: Pick<TLicenseServiceFactory, "getPlan">;kmsService: Pick<TKmsServiceFactory, "createCipherPairWithDataKey">;@@ -64,6 +66,7 @@ export type THoneyTokenServiceFactory = ReturnType<typeof honeyTokenServiceFactoexport const honeyTokenServiceFactory = ({honeyTokenDAL,honeyTokenConfigDAL,+ honeyTokenEventDAL,permissionService,licenseService,kmsService,@@ -223,7 +226,8 @@ export const honeyTokenServiceFactory = ({connectionId: orgConfig.connectionId,encryptedCredentials,secretsMapping,- tokenIdentifier: AccessKey.AccessKeyId+ tokenIdentifier: AccessKey.AccessKeyId,+ createdByUserId: actor.id});const { encryptor: secretEncryptor } = await kmsService.createCipherPairWithDataKey({@@ -551,6 +555,41 @@ export const honeyTokenServiceFactory = ({return { honeyTokenId };};+ const resetHoneyToken = async (+ { honeyTokenId, projectId }: { honeyTokenId: string; projectId: string },+ actor: OrgServiceActor+ ) => {+ const { permission } = await permissionService.getProjectPermission({+ actor: actor.type,+ actorId: actor.id,+ actorAuthMethod: actor.authMethod,+ actorOrgId: actor.orgId,+ actionProjectType: ActionProjectType.SecretManager,+ projectId+ });++ ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionSecretActions.Edit, ProjectPermissionSub.Secrets);++ const honeyToken = await honeyTokenDAL.findById(honeyTokenId);++ if (!honeyToken || honeyToken.projectId !== projectId) {+ throw new NotFoundError({ message: `Honey token with ID "${honeyTokenId}" not found` });+ }++ if (honeyToken.status !== HoneyTokenStatus.Triggered) {+ throw new BadRequestError({ message: "Only triggered honey tokens can be reset" });+ }++ const updated = await honeyTokenDAL.updateById(honeyTokenId, {+ status: HoneyTokenStatus.Active,+ lastResetAt: new Date(),+ lastTriggeredAt: null,+ resetByUserId: actor.id+ });++ return { honeyToken: updated };+ };+const getDashboardHoneyTokenCount = async ({projectId,@@ -679,11 +718,107 @@ export const honeyTokenServiceFactory = ({return { credentials };};+ const getHoneyTokenById = async (+ { honeyTokenId, projectId }: { honeyTokenId: string; projectId: string },+ actor: OrgServiceActor+ ) => {+ const { permission } = await permissionService.getProjectPermission({+ actor: actor.type,+ actorId: actor.id,+ actorAuthMethod: actor.authMethod,+ actorOrgId: actor.orgId,+ actionProjectType: ActionProjectType.SecretManager,+ projectId+ });++ ForbiddenError.from(permission).throwUnlessCan(+ ProjectPermissionSecretActions.DescribeSecret,+ ProjectPermissionSub.Secrets+ );++ const honeyToken = await honeyTokenDAL.findById(honeyTokenId);++ if (!honeyToken || honeyToken.projectId !== projectId) {+ throw new NotFoundError({ message: `Honey token with ID "${honeyTokenId}" not found` });+ }++ const allInFolder = await honeyTokenDAL.findByFolderIds([honeyToken.folderId]);+ const match = allInFolder.find((ht) => ht.id === honeyTokenId);++ const openEvents = await honeyTokenEventDAL.countByHoneyTokenId(honeyTokenId, honeyToken.lastResetAt ?? undefined);++ return {+ honeyToken: {+ id: honeyToken.id,+ name: honeyToken.name,+ description: honeyToken.description,+ type: honeyToken.type,+ status: honeyToken.status,+ projectId: honeyToken.projectId,+ folderId: honeyToken.folderId,+ connectionId: honeyToken.connectionId,+ secretsMapping: honeyToken.secretsMapping,+ createdAt: honeyToken.createdAt,+ updatedAt: honeyToken.updatedAt,+ lastResetAt: honeyToken.lastResetAt,+ revokedAt: honeyToken.revokedAt,+ createdByUserId: honeyToken.createdByUserId,+ resetByUserId: honeyToken.resetByUserId,+ revokedByUserId: honeyToken.revokedByUserId,+ environment: match?.environment ?? null,+ folder: match?.folder ?? null,+ openEvents+ }+ };+ };++ const getHoneyTokenEvents = async (+ {+ honeyTokenId,+ projectId,+ offset,+ limit+ }: { honeyTokenId: string; projectId: string; offset?: number; limit?: number },+ actor: OrgServiceActor+ ) => {+ const { permission } = await permissionService.getProjectPermission({+ actor: actor.type,+ actorId: actor.id,+ actorAuthMethod: actor.authMethod,+ actorOrgId: actor.orgId,+ actionProjectType: ActionProjectType.SecretManager,+ projectId+ });++ ForbiddenError.from(permission).throwUnlessCan(+ ProjectPermissionSecretActions.DescribeSecret,+ ProjectPermissionSub.Secrets+ );++ const honeyToken = await honeyTokenDAL.findById(honeyTokenId);++ if (!honeyToken || honeyToken.projectId !== projectId) {+ throw new NotFoundError({ message: `Honey token with ID "${honeyTokenId}" not found` });+ }++ const since = honeyToken.lastResetAt ?? undefined;++ const [events, totalCount] = await Promise.all([+ honeyTokenEventDAL.findByHoneyTokenId(honeyTokenId, { since, offset, limit }),+ honeyTokenEventDAL.countByHoneyTokenId(honeyTokenId, since)+ ]);++ return { events, totalCount };+ };+return {create,updateHoneyToken,deleteHoneyToken,+ resetHoneyToken,getCredentials,+ getHoneyTokenById,+ getHoneyTokenEvents,getDashboardHoneyTokenCount,getDashboardHoneyTokens};diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.tsindex 03feea9dff..f980367007 100644--- a/backend/src/server/routes/index.ts+++ b/backend/src/server/routes/index.ts@@ -1647,6 +1647,7 @@ export const registerRoutes = async (const honeyTokenService = honeyTokenServiceFactory({honeyTokenDAL,honeyTokenConfigDAL,+ honeyTokenEventDAL,permissionService,licenseService,kmsService,diff --git a/frontend/src/const/routes.ts b/frontend/src/const/routes.tsindex 425cbb7bb3..e3b4f5cca8 100644--- a/frontend/src/const/routes.ts+++ b/frontend/src/const/routes.ts@@ -111,6 +111,10 @@ export const ROUTE_PATHS = Object.freeze({"/organizations/$orgId/projects/secret-management/$projectId/insights","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/insights"),+ HoneyTokenDetailsByIDPage: setRoute(+ "/organizations/$orgId/projects/secret-management/$projectId/honey-tokens/$honeyTokenId",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/honey-tokens/$honeyTokenId"+ ),IntegrationDetailsByIDPage: setRoute("/organizations/$orgId/projects/secret-management/$projectId/integrations/$integrationId","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/$integrationId"diff --git a/frontend/src/hooks/api/honeyTokens/mutations.tsx b/frontend/src/hooks/api/honeyTokens/mutations.tsxindex a31fb121e0..293a10b781 100644--- a/frontend/src/hooks/api/honeyTokens/mutations.tsx+++ b/frontend/src/hooks/api/honeyTokens/mutations.tsx@@ -43,6 +43,27 @@ export const useUpdateHoneyToken = () => {});};+export const useResetHoneyToken = () => {+ const queryClient = useQueryClient();++ return useMutation<+ { honeyToken: { id: string; status: string; lastResetAt: string | null } },+ object,+ { honeyTokenId: string; projectId: string }+ >({+ mutationFn: async ({ honeyTokenId, projectId }) => {+ const { data } = await apiRequest.post<{+ honeyToken: { id: string; status: string; lastResetAt: string | null };+ }>(`/api/v1/honey-tokens/${honeyTokenId}/reset`, { projectId });+ return data;+ },+ onSuccess: () => {+ queryClient.invalidateQueries({ queryKey: ["honeyTokens"] });+ queryClient.invalidateQueries({ queryKey: dashboardKeys.all() });+ }+ });+};+export const useDeleteHoneyToken = () => {const queryClient = useQueryClient();diff --git a/frontend/src/hooks/api/honeyTokens/queries.tsx b/frontend/src/hooks/api/honeyTokens/queries.tsxindex 07a3c2bb1c..15546fc12a 100644--- a/frontend/src/hooks/api/honeyTokens/queries.tsx+++ b/frontend/src/hooks/api/honeyTokens/queries.tsx@@ -2,13 +2,63 @@ import { useQuery } from "@tanstack/react-query";import { apiRequest } from "@app/config/request";+import { THoneyTokenDetails, THoneyTokenEvent } from "./types";+export const honeyTokenKeys = {all: ["honeyTokens"] as const,list: (projectId: string) => [...honeyTokenKeys.all, "list", projectId] as const,+ byId: (honeyTokenId: string) => [...honeyTokenKeys.all, "byId", honeyTokenId] as const,+ events: (honeyTokenId: string) => [...honeyTokenKeys.all, "events", honeyTokenId] as const,credentials: (honeyTokenId: string) =>[...honeyTokenKeys.all, "credentials", honeyTokenId] as const};+export const useGetHoneyTokenById = ({+ honeyTokenId,+ projectId,+ enabled = true+}: {+ honeyTokenId: string;+ projectId: string;+ enabled?: boolean;+}) =>+ useQuery({+ queryKey: honeyTokenKeys.byId(honeyTokenId),+ queryFn: async () => {+ const { data } = await apiRequest.get<{ honeyToken: THoneyTokenDetails }>(+ `/api/v1/honey-tokens/${honeyTokenId}`,+ { params: { projectId } }+ );+ return data.honeyToken;+ },+ enabled+ });++export const useGetHoneyTokenEvents = ({+ honeyTokenId,+ projectId,+ offset = 0,+ limit = 25,+ enabled = true+}: {+ honeyTokenId: string;+ projectId: string;+ offset?: number;+ limit?: number;+ enabled?: boolean;+}) =>+ useQuery({+ queryKey: [...honeyTokenKeys.events(honeyTokenId), { offset, limit }],+ queryFn: async () => {+ const { data } = await apiRequest.get<{ events: THoneyTokenEvent[]; totalCount: number }>(+ `/api/v1/honey-tokens/${honeyTokenId}/events`,+ { params: { projectId, offset, limit } }+ );+ return data;+ },+ enabled+ });+export const useGetHoneyTokenCredentials = ({honeyTokenId,projectId,diff --git a/frontend/src/hooks/api/honeyTokens/types.ts b/frontend/src/hooks/api/honeyTokens/types.tsindex 1f7b51de22..6c71fe683e 100644--- a/frontend/src/hooks/api/honeyTokens/types.ts+++ b/frontend/src/hooks/api/honeyTokens/types.ts@@ -9,6 +9,8 @@ export type {THoneyToken,THoneyTokenCredentialsResponse,THoneyTokenCredentialsResponseMap,+ THoneyTokenDetails,+ THoneyTokenEvent,THoneyTokenOption,THoneyTokenOptionMap,TUpdateHoneyTokenDTOdiff --git a/frontend/src/hooks/api/honeyTokens/types/honey-token-base.ts b/frontend/src/hooks/api/honeyTokens/types/honey-token-base.tsindex f9ac469d37..28110b6d25 100644--- a/frontend/src/hooks/api/honeyTokens/types/honey-token-base.ts+++ b/frontend/src/hooks/api/honeyTokens/types/honey-token-base.ts@@ -38,3 +38,40 @@ export type THoneyTokenCredentialsResponseBase<U, T> = {honeyTokenId: string;credentials: T;};++export type THoneyTokenDetails = THoneyTokenBase & {+ type: string;+ secretsMapping: Record<string, string>;+ environment: {+ id: string;+ name: string;+ slug: string;+ } | null;+ folder: {+ path: string;+ } | null;+ openEvents: number;+};++export type THoneyTokenEvent = {+ id: string;+ honeyTokenId: string;+ eventType: string;+ metadata: {+ username?: string;+ eventName?: string;+ eventSource?: string;+ sourceIp?: string;+ userAgent?: string;+ awsRegion?: string;+ eventTime?: string;+ accountId?: string;+ accessKeyId?: string;+ errorCode?: string;+ errorMessage?: string;+ eventId?: string;+ requestParameters?: unknown;+ } | null;+ createdAt: string;+ updatedAt: string;+};diff --git a/frontend/src/hooks/api/honeyTokens/types/index.ts b/frontend/src/hooks/api/honeyTokens/types/index.tsindex 3ff4b673b5..b6bf72398d 100644--- a/frontend/src/hooks/api/honeyTokens/types/index.ts+++ b/frontend/src/hooks/api/honeyTokens/types/index.ts@@ -56,5 +56,7 @@ export {type TDashboardHoneyTokenBase,type THoneyTokenBase,type THoneyTokenCredentialsResponseBase,+ type THoneyTokenDetails,+ type THoneyTokenEvent,type THoneyTokenOptionBase} from "./honey-token-base";diff --git a/frontend/src/pages/secret-manager/HoneyTokenDetailsByIDPage/HoneyTokenDetailsByIDPage.tsx b/frontend/src/pages/secret-manager/HoneyTokenDetailsByIDPage/HoneyTokenDetailsByIDPage.tsxnew file mode 100644index 0000000000..38e6031a56--- /dev/null+++ b/frontend/src/pages/secret-manager/HoneyTokenDetailsByIDPage/HoneyTokenDetailsByIDPage.tsx@@ -0,0 +1,320 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { faChevronLeft } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useParams } from "@tanstack/react-router";+import { format, formatDistanceToNow } from "date-fns";+import {+ AlertTriangle,+ CalendarIcon,+ ClockIcon,+ KeyIcon,+ MapPinIcon,+ RotateCcw,+ SirenIcon,+ Trash2Icon+} from "lucide-react";++import { createNotification } from "@app/components/notifications";+import { ProjectPermissionCan } from "@app/components/permissions";+import { CredentialDisplay } from "@app/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/shared/CredentialDisplay";+import {+ Button,+ ContentLoader,+ DeleteActionModal,+ EmptyState,+ Spinner,+ Tag,+ Tooltip+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { ProjectPermissionSub } from "@app/context";+import { ProjectPermissionSecretActions } from "@app/context/ProjectPermissionContext/types";+import { HONEY_TOKEN_CREDENTIAL_FIELDS, HONEY_TOKEN_MAP } from "@app/helpers/honeyTokens";+import { HoneyTokenStatus, HoneyTokenType } from "@app/hooks/api/honeyTokens/enums";+import { useDeleteHoneyToken, useResetHoneyToken } from "@app/hooks/api/honeyTokens/mutations";+import { useGetHoneyTokenById, useGetHoneyTokenCredentials } from "@app/hooks/api/honeyTokens/queries";++import { HoneyTokenEventsSection } from "./components";++const PageContent = () => {+ const navigate = useNavigate();+ const { honeyTokenId, projectId, orgId } = useParams({+ from: ROUTE_PATHS.SecretManager.HoneyTokenDetailsByIDPage.id+ });++ const { data: honeyToken, isPending } = useGetHoneyTokenById({+ honeyTokenId,+ projectId,+ enabled: Boolean(honeyTokenId && projectId)+ });++ const { mutateAsync: resetHoneyToken } = useResetHoneyToken();+ const { mutateAsync: deleteHoneyToken } = useDeleteHoneyToken();+ const [isDeleteOpen, setIsDeleteOpen] = useState(false);+ const { data: credentials, isPending: isCredentialsPending } = useGetHoneyTokenCredentials({+ honeyTokenId,+ projectId,+ enabled: Boolean(honeyTokenId && projectId)+ });++ if (isPending) {+ return (+ <div className="flex h-full w-full items-center justify-center">+ <ContentLoader />+ </div>+ );+ }++ if (!honeyToken) {+ return (+ <div className="flex h-full w-full items-center justify-center px-20">+ <EmptyState+ className="max-w-2xl rounded-md text-center"+ title={`Could not find honey token with ID ${honeyTokenId}`}+ />+ </div>+ );+ }++ const isTriggered = honeyToken.status === HoneyTokenStatus.Triggered;+ const tokenInfo = HONEY_TOKEN_MAP[honeyToken.type as HoneyTokenType];++ const handleReset = async () => {+ await resetHoneyToken({+ honeyTokenId: honeyToken.id,+ projectId+ });+ createNotification({+ text: `Honey token "${honeyToken.name}" has been reset`,+ type: "success"+ });+ };++ const handleDelete = async () => {+ await deleteHoneyToken({+ honeyTokenId: honeyToken.id,+ projectId+ });+ createNotification({+ text: `Successfully deleted honey token "${honeyToken.name}"`,+ type: "success"+ });+ navigate({+ to: ROUTE_PATHS.SecretManager.OverviewPage.path,+ params: { orgId, projectId }+ });+ };++ return (+ <>+ <Helmet>+ <title>{honeyToken.name} | Honey Token</title>+ </Helmet>+ <div className="container mx-auto flex flex-col justify-between bg-bunker-800 font-inter text-white">+ <div className="mx-auto mb-6 w-full max-w-8xl">+ <Button+ variant="link"+ type="submit"+ leftIcon={<FontAwesomeIcon icon={faChevronLeft} />}+ onClick={() => {+ navigate({+ to: ROUTE_PATHS.SecretManager.OverviewPage.path,+ params: { orgId, projectId }+ });+ }}+ >+ Overview+ </Button>++ <div className="mb-4 mt-2 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-5">+ <div className="flex items-start justify-between">+ <div className="flex items-center gap-3">+ <div className="flex h-11 w-11 items-center justify-center rounded-lg border border-mineshaft-600 bg-mineshaft-800">+ <SirenIcon+ className={isTriggered ? "text-red-500" : "text-yellow-500"}+ size={22}+ />+ </div>+ <div className="min-w-0">+ <div className="flex items-center gap-2.5">+ <p className="truncate text-lg font-medium text-white">{honeyToken.name}</p>+ <Tag colorSchema={isTriggered ? "red" : "green"}>+ {isTriggered && <AlertTriangle size={12} className="mr-1" />}+ {isTriggered ? "Triggered" : "Active"}+ </Tag>+ {tokenInfo && (+ <Tag className="flex items-center gap-1 px-1.5 py-0 text-xs normal-case">+ <img+ src={`/images/integrations/${tokenInfo.image}`}+ style={{ width: "11px" }}+ alt={`${tokenInfo.name} logo`}+ />+ {tokenInfo.name}+ </Tag>+ )}+ </div>+ <p className="text-xs text-bunker-300">+ {honeyToken.description || `${tokenInfo?.name ?? "Honey"} Token`}+ </p>+ </div>+ </div>+ <div className="flex shrink-0 items-center gap-2">+ <Button+ variant="outline_bg"+ size="xs"+ leftIcon={<RotateCcw size={14} />}+ onClick={handleReset}+ >+ Reset+ </Button>+ <Button+ variant="outline_bg"+ size="xs"+ colorSchema="danger"+ leftIcon={<Trash2Icon size={14} />}+ onClick={() => setIsDeleteOpen(true)}+ >+ Delete+ </Button>+ </div>+ </div>++ <div className="mt-4 flex flex-wrap items-center gap-x-6 gap-y-2 border-t border-mineshaft-600 pt-4 text-xs text-bunker-300">+ <Tooltip+ content={format(new Date(honeyToken.createdAt), "MMMM do, yyyy 'at' h:mm a")}+ >+ <div className="flex items-center gap-1.5">+ <CalendarIcon size={13} />+ <span>+ Created{" "}+ {formatDistanceToNow(new Date(honeyToken.createdAt), { addSuffix: true })}+ </span>+ </div>+ </Tooltip>+ {honeyToken.environment && (+ <div className="flex items-center gap-1.5">+ <MapPinIcon size={13} />+ <span>+ {honeyToken.environment.name}+ {honeyToken.folder?.path && honeyToken.folder.path !== "/"+ ? ` — ${honeyToken.folder.path}`+ : ""}+ </span>+ </div>+ )}+ <div className="flex items-center gap-1.5">+ <SirenIcon size={13} />+ <span>+ {honeyToken.openEvents} open event{honeyToken.openEvents !== 1 && "s"}+ </span>+ </div>+ <div className="flex items-center gap-1.5">+ <ClockIcon size={13} />+ <span>Active for {formatDistanceToNow(new Date(honeyToken.createdAt))}</span>+ </div>+ </div>++ <ProjectPermissionCan+ I={ProjectPermissionSecretActions.DescribeAndReadValue}+ a={ProjectPermissionSub.Secrets}+ >+ {(isAllowed) =>+ isAllowed && (+ <div className="mt-4 border-t border-mineshaft-600 pt-4">+ <div className="mb-2 flex items-center gap-1.5 text-xs text-bunker-300">+ <KeyIcon size={13} />+ <span>Credentials</span>+ </div>+ {isCredentialsPending ? (+ <div className="flex items-center gap-2 py-2">+ <Spinner size="xs" className="text-mineshaft-500" />+ <span className="text-xs text-mineshaft-400">Loading credentials...</span>+ </div>+ ) : credentials ? (+ <div className="flex flex-col gap-x-8 gap-y-2 rounded-sm border border-mineshaft-600 bg-mineshaft-700 p-2">+ {(+ HONEY_TOKEN_CREDENTIAL_FIELDS[honeyToken.type as HoneyTokenType] ?? []+ ).map(({ key, label }) => {+ const mapping = honeyToken.secretsMapping as Record<string, string>;+ const secretName = mapping[key];+ const value = secretName ? credentials[secretName] : undefined;+ return (+ <CredentialDisplay key={key} label={label} isSensitive>+ {value}+ </CredentialDisplay>+ );+ })}+ </div>+ ) : (+ <p className="text-xs text-bunker-400">No credentials available.</p>+ )}+ </div>+ )+ }+ </ProjectPermissionCan>++ {isTriggered && (+ <div className="mt-4 rounded-md border border-yellow-800/50 bg-yellow-900/20 p-4">+ <div className="mb-2 flex items-center gap-2">+ <AlertTriangle size={16} className="text-yellow-500" />+ <p className="text-sm font-medium text-yellow-500">+ Respond to a triggered honeytoken+ </p>+ </div>+ <p className="mb-3 text-xs text-bunker-300">+ Investigate. The events below give you information about when, where, and how the+ key was used.+ </p>+ <div className="flex gap-6">+ <div className="flex-1">+ <p className="text-xs font-medium text-white">1. False alarm confirmed?</p>+ <p className="text-xs text-bunker-300">+ You might want to <strong>reset the honeytoken</strong>. This will revert its+ status to active and hide the past events, so that the honeytoken can be+ triggered again.+ </p>+ </div>+ <div className="flex-1">+ <p className="text-xs font-medium text-white">+ 2. Malicious activity confirmed?+ </p>+ <p className="text-xs text-bunker-300">+ 1. Take immediate steps as per your company Incident Response Plan.+ <br />+ 2. <strong>Revoke the honeytoken</strong>. This will prevent any new+ connections while we keep the compromised key in our records.+ <br />+ 3. Don't forget to recreate a new honeytoken to replace it in the same+ location.+ </p>+ </div>+ </div>+ </div>+ )}+ </div>++ <HoneyTokenEventsSection honeyTokenId={honeyTokenId} projectId={projectId} />+ </div>+ </div>+ <DeleteActionModal+ isOpen={isDeleteOpen}+ onChange={setIsDeleteOpen}+ title={`Are you sure you want to delete ${honeyToken.name}?`}+ subTitle="This will revoke the AWS IAM credentials and remove the associated decoy secrets from this environment."+ deleteKey={honeyToken.name}+ onDeleteApproved={handleDelete}+ />+ </>+ );+};++export const HoneyTokenDetailsByIDPage = () => (+ <ProjectPermissionCan+ I={ProjectPermissionSecretActions.DescribeSecret}+ a={ProjectPermissionSub.Secrets}+ renderGuardBanner+ >+ <PageContent />+ </ProjectPermissionCan>+);diff --git a/frontend/src/pages/secret-manager/HoneyTokenDetailsByIDPage/components/HoneyTokenEventsSection.tsx b/frontend/src/pages/secret-manager/HoneyTokenDetailsByIDPage/components/HoneyTokenEventsSection.tsxnew file mode 100644index 0000000000..ad14ec8f45--- /dev/null+++ b/frontend/src/pages/secret-manager/HoneyTokenDetailsByIDPage/components/HoneyTokenEventsSection.tsx@@ -0,0 +1,118 @@+import { useState } from "react";+import { format, formatDistanceToNow } from "date-fns";+import { ActivityIcon } from "lucide-react";++import { ContentLoader, EmptyState, Tag, Tooltip } from "@app/components/v2";+import { Pagination } from "@app/components/v3";+import { useGetHoneyTokenEvents } from "@app/hooks/api/honeyTokens/queries";++type Props = {+ honeyTokenId: string;+ projectId: string;+};++const DEFAULT_PER_PAGE = 25;++export const HoneyTokenEventsSection = ({ honeyTokenId, projectId }: Props) => {+ const [page, setPage] = useState(1);+ const [perPage, setPerPage] = useState(DEFAULT_PER_PAGE);++ const { data, isPending } = useGetHoneyTokenEvents({+ honeyTokenId,+ projectId,+ offset: (page - 1) * perPage,+ limit: perPage+ });++ const events = data?.events;+ const totalCount = data?.totalCount ?? 0;++ return (+ <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-6">+ <div className="mb-4 flex items-center gap-2">+ <ActivityIcon size={16} className="text-bunker-300" />+ <p className="text-sm font-medium text-white">Events</p>+ {totalCount > 0 && (+ <span className="rounded-full bg-mineshaft-600 px-2 py-0.5 text-xs text-bunker-300">+ {totalCount}+ </span>+ )}+ </div>++ {isPending && <ContentLoader />}++ {!isPending && (!events || events.length === 0) && (+ <EmptyState title="No events recorded yet" className="rounded-md" />+ )}++ {events && events.length > 0 && (+ <>+ <div className="overflow-x-auto">+ <table className="w-full text-left text-sm">+ <thead>+ <tr className="border-b border-mineshaft-600 text-xs uppercase text-bunker-300">+ <th className="px-3 py-2">Timestamp</th>+ <th className="px-3 py-2">Action</th>+ <th className="px-3 py-2">Region</th>+ <th className="px-3 py-2">IP address</th>+ <th className="px-3 py-2">User agent</th>+ </tr>+ </thead>+ <tbody>+ {events.map((event) => {+ const meta = event.metadata;+ const eventDate = meta?.eventTime+ ? new Date(meta.eventTime)+ : new Date(event.createdAt);++ return (+ <tr+ key={event.id}+ className="border-b border-mineshaft-700 text-sm text-white last:border-0"+ >+ <td className="whitespace-nowrap px-3 py-3 text-bunker-300">+ <Tooltip+ content={format(eventDate, "MMMM do, yyyy 'at' h:mm:ss a")}+ >+ <span>{formatDistanceToNow(eventDate, { addSuffix: true })}</span>+ </Tooltip>+ </td>+ <td className="px-3 py-3">+ {meta?.eventName ? <Tag>{meta.eventName}</Tag> : "—"}+ </td>+ <td className="whitespace-nowrap px-3 py-3 text-bunker-300">+ {meta?.awsRegion ?? "—"}+ </td>+ <td className="px-3 py-3 text-bunker-300">+ {meta?.sourceIp ?? "—"}+ </td>+ <td className="max-w-[300px] px-3 py-3 text-bunker-300">+ <Tooltip content={meta?.userAgent}>+ <span className="block truncate">{meta?.userAgent ?? "—"}</span>+ </Tooltip>+ </td>+ </tr>+ );+ })}+ </tbody>+ </table>+ </div>+ {totalCount > DEFAULT_PER_PAGE && (+ <Pagination+ count={totalCount}+ page={page}+ perPage={perPage}+ onChangePage={setPage}+ onChangePerPage={(newPerPage) => {+ const totalPages = Math.ceil(totalCount / newPerPage);+ if (page > totalPages) setPage(totalPages);+ setPerPage(newPerPage);+ }}+ perPageList={[25, 50, 100]}+ />+ )}+ </>+ )}+ </div>+ );+};diff --git a/frontend/src/pages/secret-manager/HoneyTokenDetailsByIDPage/components/index.ts b/frontend/src/pages/secret-manager/HoneyTokenDetailsByIDPage/components/index.tsnew file mode 100644index 0000000000..cc1eb6b71b--- /dev/null+++ b/frontend/src/pages/secret-manager/HoneyTokenDetailsByIDPage/components/index.ts@@ -0,0 +1 @@+export { HoneyTokenEventsSection } from "./HoneyTokenEventsSection";diff --git a/frontend/src/pages/secret-manager/HoneyTokenDetailsByIDPage/route.tsx b/frontend/src/pages/secret-manager/HoneyTokenDetailsByIDPage/route.tsxnew file mode 100644index 0000000000..c7592195ac--- /dev/null+++ b/frontend/src/pages/secret-manager/HoneyTokenDetailsByIDPage/route.tsx@@ -0,0 +1,26 @@+import { createFileRoute, linkOptions } from "@tanstack/react-router";++import { HoneyTokenDetailsByIDPage } from "./HoneyTokenDetailsByIDPage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/honey-tokens/$honeyTokenId"+)({+ component: HoneyTokenDetailsByIDPage,+ beforeLoad: ({ context, params }) => {+ return {+ breadcrumbs: [+ ...context.breadcrumbs,+ {+ label: "Overview",+ link: linkOptions({+ to: "/organizations/$orgId/projects/secret-management/$projectId/overview",+ params+ })+ },+ {+ label: "Honey Token"+ }+ ]+ };+ }+});diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/HoneyTokenTableRow/HoneyTokenTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/HoneyTokenTableRow/HoneyTokenTableRow.tsxindex 0c653387d1..5360964550 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/HoneyTokenTableRow/HoneyTokenTableRow.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/HoneyTokenTableRow/HoneyTokenTableRow.tsx@@ -1,7 +1,9 @@+import { useNavigate, useParams } from "@tanstack/react-router";import {AsteriskIcon,ChevronDownIcon,EditIcon,+ ExternalLinkIcon,InfoIcon,SirenIcon,TrashIcon@@ -22,6 +24,7 @@ import {TooltipContent,TooltipTrigger} from "@app/components/v3";+import { ROUTE_PATHS } from "@app/const/routes";import {ProjectPermissionSecretActions,ProjectPermissionSub@@ -54,6 +57,10 @@ export const HoneyTokenTableRow = ({onDelete,onViewCredentials}: Props) => {+ const navigate = useNavigate();+ const { orgId, projectId } = useParams({+ from: ROUTE_PATHS.SecretManager.OverviewPage.id+ });const [isExpanded, setIsExpanded] = useToggle(false);const isSingleEnvView = environments.length === 1;@@ -78,6 +85,24 @@ export const HoneyTokenTableRow = ({"group-hover:pointer-events-auto group-hover:gap-1 group-hover:opacity-100")}>+ <Tooltip>+ <TooltipTrigger>+ <IconButton+ variant="ghost"+ size="xs"+ className="w-0 overflow-hidden border-0 transition-all duration-300 group-hover:w-7"+ onClick={() =>+ navigate({+ to: ROUTE_PATHS.SecretManager.HoneyTokenDetailsByIDPage.path,+ params: { orgId, projectId, honeyTokenId: honeyToken.id }+ })+ }+ >+ <ExternalLinkIcon />+ </IconButton>+ </TooltipTrigger>+ <TooltipContent>View details</TooltipContent>+ </Tooltip><ProjectPermissionCanI={ProjectPermissionSecretActions.DescribeAndReadValue}a={ProjectPermissionSub.Secrets}diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/HoneyTokenListView/HoneyTokenItem.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/HoneyTokenListView/HoneyTokenItem.tsxindex 9fe7dc2750..8c667cae2a 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/HoneyTokenListView/HoneyTokenItem.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/HoneyTokenListView/HoneyTokenItem.tsx@@ -1,12 +1,20 @@import { useState } from "react";-import { faAsterisk, faEdit, faInfoCircle, faTrash } from "@fortawesome/free-solid-svg-icons";+import {+ faAsterisk,+ faEdit,+ faExternalLinkAlt,+ faInfoCircle,+ faTrash+} from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useParams } from "@tanstack/react-router";import { AnimatePresence, motion } from "framer-motion";import { SirenIcon } from "lucide-react";import { twMerge } from "tailwind-merge";import { ProjectPermissionCan } from "@app/components/permissions";import { IconButton, Tag, Tooltip } from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";import { ProjectPermissionSub } from "@app/context";import { ProjectPermissionSecretActions } from "@app/context/ProjectPermissionContext/types";import { HONEY_TOKEN_MAP } from "@app/helpers/honeyTokens";@@ -21,6 +29,10 @@ type Props = {};export const HoneyTokenItem = ({ honeyToken, onEdit, onDelete, onViewCredentials }: Props) => {+ const navigate = useNavigate();+ const { orgId, projectId } = useParams({+ from: ROUTE_PATHS.SecretManager.SecretDashboardPage.id+ });const { name, type, status, secretsMapping } = honeyToken;const [isExpanded, setIsExpanded] = useState(true);@@ -87,11 +99,27 @@ export const HoneyTokenItem = ({ honeyToken, onEdit, onDelete, onViewCredentials<AnimatePresence mode="wait"><motion.divkey="options"- className="flex w-24 items-center justify-between border-l border-mineshaft-600 px-2 py-3"+ className="flex w-32 items-center justify-between border-l border-mineshaft-600 px-2 py-3"initial={{ x: 0, opacity: 0 }}animate={{ x: 0, opacity: 1 }}exit={{ x: 10, opacity: 0 }}>+ <Tooltip content="View details">+ <IconButton+ ariaLabel="View details"+ variant="plain"+ className="opacity-0 group-hover:opacity-100"+ onClick={(e) => {+ e.stopPropagation();+ navigate({+ to: ROUTE_PATHS.SecretManager.HoneyTokenDetailsByIDPage.path,+ params: { orgId, projectId, honeyTokenId: honeyToken.id }+ });+ }}+ >+ <FontAwesomeIcon icon={faExternalLinkAlt} />+ </IconButton>+ </Tooltip><ProjectPermissionCanI={ProjectPermissionSecretActions.DescribeAndReadValue}a={ProjectPermissionSub.Secrets}diff --git a/frontend/src/routeTree.gen.ts b/frontend/src/routeTree.gen.tsindex 4668156fc8..4dc550bcbe 100644--- a/frontend/src/routeTree.gen.ts+++ b/frontend/src/routeTree.gen.ts@@ -157,6 +157,7 @@ import { Route as sshSshCaByIDPageRouteImport } from './pages/ssh/SshCaByIDPage/import { Route as secretManagerSecretDashboardPageRouteImport } from './pages/secret-manager/SecretDashboardPage/route'import { Route as secretManagerIntegrationsSelectIntegrationAuthPageRouteImport } from './pages/secret-manager/integrations/SelectIntegrationAuthPage/route'import { Route as secretManagerIntegrationsDetailsByIDPageRouteImport } from './pages/secret-manager/IntegrationsDetailsByIDPage/route'+import { Route as secretManagerHoneyTokenDetailsByIDPageRouteImport } from './pages/secret-manager/HoneyTokenDetailsByIDPage/route'import { Route as pamPamSessionsByIDPageRouteImport } from './pages/pam/PamSessionsByIDPage/route'import { Route as pamApprovalRequestDetailPageRouteImport } from './pages/pam/ApprovalRequestDetailPage/route'import { Route as certManagerPkiSubscriberDetailsByIDPageRouteImport } from './pages/cert-manager/PkiSubscriberDetailsByIDPage/route'@@ -1668,6 +1669,13 @@ const secretManagerIntegrationsDetailsByIDPageRouteRoute =AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretManagementProjectIdSecretManagerLayoutIntegrationsRoute,} as any)+const secretManagerHoneyTokenDetailsByIDPageRouteRoute =+ secretManagerHoneyTokenDetailsByIDPageRouteImport.update({+ id: '/honey-tokens/$honeyTokenId',+ path: '/honey-tokens/$honeyTokenId',+ getParentRoute: () => secretManagerLayoutRoute,+ } as any)+const pamPamSessionsByIDPageRouteRoute =pamPamSessionsByIDPageRouteImport.update({id: '/$sessionId',@@ -3758,6 +3766,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof pamPamSessionsByIDPageRouteImportparentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutSessionsImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/honey-tokens/$honeyTokenId': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/honey-tokens/$honeyTokenId'+ path: '/honey-tokens/$honeyTokenId'+ fullPath: '/organizations/$orgId/projects/secret-management/$projectId/honey-tokens/$honeyTokenId'+ preLoaderRoute: typeof secretManagerHoneyTokenDetailsByIDPageRouteImport+ parentRoute: typeof secretManagerLayoutImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/$integrationId': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/$integrationId'path: '/$integrationId'@@ -5464,6 +5479,7 @@ interface secretManagerLayoutRouteChildren {projectAppConnectionsPageRouteSecretManagerRoute: typeof projectAppConnectionsPageRouteSecretManagerRouteprojectAuditLogsPageRouteSecretManagerRoute: typeof projectAuditLogsPageRouteSecretManagerRouteAuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretManagementProjectIdSecretManagerLayoutIntegrationsRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretManagementProjectIdSecretManagerLayoutIntegrationsRouteWithChildren+ secretManagerHoneyTokenDetailsByIDPageRouteRoute: typeof secretManagerHoneyTokenDetailsByIDPageRouteRoutesecretManagerSecretDashboardPageRouteRoute: typeof secretManagerSecretDashboardPageRouteRouteprojectGroupDetailsByIDPageRouteSecretManagerRoute: typeof projectGroupDetailsByIDPageRouteSecretManagerRouteprojectIdentityDetailsByIDPageRouteSecretManagerRoute: typeof projectIdentityDetailsByIDPageRouteSecretManagerRoute@@ -5488,6 +5504,8 @@ const secretManagerLayoutRouteChildren: secretManagerLayoutRouteChildren = {projectAuditLogsPageRouteSecretManagerRoute,AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretManagementProjectIdSecretManagerLayoutIntegrationsRoute:AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretManagementProjectIdSecretManagerLayoutIntegrationsRouteWithChildren,+ secretManagerHoneyTokenDetailsByIDPageRouteRoute:+ secretManagerHoneyTokenDetailsByIDPageRouteRoute,secretManagerSecretDashboardPageRouteRoute:secretManagerSecretDashboardPageRouteRoute,projectGroupDetailsByIDPageRouteSecretManagerRoute:@@ -6137,6 +6155,7 @@ export interface FileRoutesByFullPath {'/organizations/$orgId/projects/cert-manager/$projectId/subscribers/$subscriberName': typeof certManagerPkiSubscriberDetailsByIDPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/approvals/$approvalRequestId': typeof pamApprovalRequestDetailPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/sessions/$sessionId': typeof pamPamSessionsByIDPageRouteRoute+ '/organizations/$orgId/projects/secret-management/$projectId/honey-tokens/$honeyTokenId': typeof secretManagerHoneyTokenDetailsByIDPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/$integrationId': typeof secretManagerIntegrationsDetailsByIDPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/select-integration-auth': typeof secretManagerIntegrationsSelectIntegrationAuthPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/secrets/$envSlug': typeof secretManagerSecretDashboardPageRouteRoute@@ -6397,6 +6416,7 @@ export interface FileRoutesByTo {'/organizations/$orgId/projects/cert-manager/$projectId/subscribers/$subscriberName': typeof certManagerPkiSubscriberDetailsByIDPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/approvals/$approvalRequestId': typeof pamApprovalRequestDetailPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/sessions/$sessionId': typeof pamPamSessionsByIDPageRouteRoute+ '/organizations/$orgId/projects/secret-management/$projectId/honey-tokens/$honeyTokenId': typeof secretManagerHoneyTokenDetailsByIDPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/$integrationId': typeof secretManagerIntegrationsDetailsByIDPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/select-integration-auth': typeof secretManagerIntegrationsSelectIntegrationAuthPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/secrets/$envSlug': typeof secretManagerSecretDashboardPageRouteRoute@@ -6685,6 +6705,7 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers/$subscriberName': typeof certManagerPkiSubscriberDetailsByIDPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approvals/$approvalRequestId': typeof pamApprovalRequestDetailPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions/$sessionId': typeof pamPamSessionsByIDPageRouteRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/honey-tokens/$honeyTokenId': typeof secretManagerHoneyTokenDetailsByIDPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/$integrationId': typeof secretManagerIntegrationsDetailsByIDPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/select-integration-auth': typeof secretManagerIntegrationsSelectIntegrationAuthPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/secrets/$envSlug': typeof secretManagerSecretDashboardPageRouteRoute@@ -6968,6 +6989,7 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/cert-manager/$projectId/subscribers/$subscriberName'| '/organizations/$orgId/projects/pam/$projectId/approvals/$approvalRequestId'| '/organizations/$orgId/projects/pam/$projectId/sessions/$sessionId'+ | '/organizations/$orgId/projects/secret-management/$projectId/honey-tokens/$honeyTokenId'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/$integrationId'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/select-integration-auth'| '/organizations/$orgId/projects/secret-management/$projectId/secrets/$envSlug'@@ -7227,6 +7249,7 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/cert-manager/$projectId/subscribers/$subscriberName'| '/organizations/$orgId/projects/pam/$projectId/approvals/$approvalRequestId'| '/organizations/$orgId/projects/pam/$projectId/sessions/$sessionId'+ | '/organizations/$orgId/projects/secret-management/$projectId/honey-tokens/$honeyTokenId'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/$integrationId'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/select-integration-auth'| '/organizations/$orgId/projects/secret-management/$projectId/secrets/$envSlug'@@ -7513,6 +7536,7 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers/$subscriberName'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approvals/$approvalRequestId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions/$sessionId'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/honey-tokens/$honeyTokenId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/$integrationId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/select-integration-auth'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/secrets/$envSlug'@@ -8212,6 +8236,7 @@ export const routeTree = rootRoute"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/app-connections","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/audit-logs","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/honey-tokens/$honeyTokenId","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/secrets/$envSlug","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/groups/$groupId","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/identities/$identityId",@@ -8694,6 +8719,10 @@ export const routeTree = rootRoute"filePath": "pam/PamSessionsByIDPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/honey-tokens/$honeyTokenId": {+ "filePath": "secret-manager/HoneyTokenDetailsByIDPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/$integrationId": {"filePath": "secret-manager/IntegrationsDetailsByIDPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations"diff --git a/frontend/src/routes.ts b/frontend/src/routes.tsindex d17988e1ad..3807abd503 100644--- a/frontend/src/routes.ts+++ b/frontend/src/routes.ts@@ -34,6 +34,7 @@ const secretManagerRoutes = route("/organizations/$orgId/projects/secret-managem)])]),+ route("/honey-tokens/$honeyTokenId", "secret-manager/HoneyTokenDetailsByIDPage/route.tsx"),route("/audit-logs", "project/AuditLogsPage/route-secret-manager.tsx"),route("/access-management", "project/AccessControlPage/route-secret-manager.tsx"),route("/app-connections", "project/AppConnectionsPage/route-secret-manager.tsx"),