Skip to content

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

add license modal earlier

Matheus Nogueira0f21a97d7403
diff --git a/frontend/src/hooks/api/subscriptions/types.ts b/frontend/src/hooks/api/subscriptions/types.ts
index 7009bfe9ad..5e2ece9e4a 100644
--- a/frontend/src/hooks/api/subscriptions/types.ts
+++ b/frontend/src/hooks/api/subscriptions/types.ts
@@ -76,4 +76,5 @@ export type SubscriptionPlan = {
machineIdentityAuthTemplates: boolean;
secretShareExternalBranding: boolean;
emailDomainVerification: boolean;
+ honeyTokens: boolean;
};
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/HoneyTokenSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/HoneyTokenSection.tsx
index 10c5f69228..291c33cb21 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/HoneyTokenSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/HoneyTokenSection.tsx
@@ -32,7 +32,7 @@ import {
} from "@app/hooks/api/honeyToken";
const CF_TEMPLATE_URL =
- "https://s3.amazonaws.com/infisical-honeytokens/cfn/aws-honey-token-v1.yaml";
+ "https://infisical-static-assets.s3.us-east-1.amazonaws.com/honey-tokens/honey-tokens-v1.yaml";
const DEFAULT_STACK_NAME = "infisical-honey-tokens";
diff --git a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
index 2dc5a6d82f..5222e433a4 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
@@ -2517,7 +2517,13 @@ const OverviewPageContent = () => {
});
}}
onAddHoneyToken={() => {
- handlePopUpOpen("addHoneyToken");
+ if (subscription?.honeyTokens) {
+ handlePopUpOpen("addHoneyToken");
+ return;
+ }
+ handlePopUpOpen("upgradePlan", {
+ text: "Adding honey tokens can be unlocked if you upgrade to Infisical Pro plan."
+ });
}}
onReplicateSecrets={() => handlePopUpOpen("replicateFolder")}
isDyanmicSecretAvailable={userAvailableDynamicSecretEnvs.length > 0}