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
Begin service token v3
Tuan Dang1cdd84048533
diff --git a/backend/src/models/serviceTokenV3.ts b/backend/src/models/serviceTokenV3.tsnew file mode 100644index 0000000000..695b3f894f--- /dev/null+++ b/backend/src/models/serviceTokenV3.ts@@ -0,0 +1,28 @@+import { Document, Schema, Types, model } from "mongoose";++export interface IServiceTokenV3 extends Document {+ _id: Types.ObjectId;+ name: string;+ workspace: Types.ObjectId;+ publicKey: string;+}++const serviceTokenV3Schema = new Schema(+ {+ name: {+ type: String,+ required: true+ },+ workspace: {+ type: Schema.Types.ObjectId,+ ref: "Workspace",+ required: true+ },+ publicKey: {+ type: String,+ required: true+ }+ }+);++export const ServiceTokenV3 = model<IServiceTokenV3>("ServiceTokenV3", serviceTokenV3Schema);\ No newline at end of filediff --git a/frontend/src/views/Settings/ProjectSettingsPage/components/ProjectServiceTokensTab/ProjectServiceTokensTab.tsx b/frontend/src/views/Settings/ProjectSettingsPage/components/ProjectServiceTokensTab/ProjectServiceTokensTab.tsxindex cfa325b414..12312dc786 100644--- a/frontend/src/views/Settings/ProjectSettingsPage/components/ProjectServiceTokensTab/ProjectServiceTokensTab.tsx+++ b/frontend/src/views/Settings/ProjectSettingsPage/components/ProjectServiceTokensTab/ProjectServiceTokensTab.tsx@@ -1,7 +1,11 @@import { ServiceTokenSection } from "../ServiceTokenSection";+import { ServiceTokenV3Section } from "../ServiceTokenV3Section";export const ProjectServiceTokensTab = () => {return (- <ServiceTokenSection />+ <>+ <ServiceTokenV3Section />+ <ServiceTokenSection />+ </>);}\ No newline at end of filediff --git a/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenV3Section/AddServiceTokenV3Modal.tsx b/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenV3Section/AddServiceTokenV3Modal.tsxnew file mode 100644index 0000000000..6fd6ce0d2b--- /dev/null+++ b/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenV3Section/AddServiceTokenV3Modal.tsx@@ -0,0 +1,7 @@+export const AddServiceTokenV3Modal = () => {+ return (+ <div>+ AddServiceTokenV3Modal+ </div>+ );+}\ No newline at end of filediff --git a/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenV3Section/ServiceTokenV3Section.tsx b/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenV3Section/ServiceTokenV3Section.tsxnew file mode 100644index 0000000000..4d8250fd30--- /dev/null+++ b/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenV3Section/ServiceTokenV3Section.tsx@@ -0,0 +1,14 @@+import { AddServiceTokenV3Modal } from "./AddServiceTokenV3Modal";+import { ServiceTokenV3Table } from "./ServiceTokenV3Table";++export const ServiceTokenV3Section = () => {+ return (+ <div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">+ <p className="text-xl font-semibold text-mineshaft-100">+ Service Tokens 2.0+ </p>+ <ServiceTokenV3Table />+ <AddServiceTokenV3Modal />+ </div>+ );+}\ No newline at end of filediff --git a/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenV3Section/ServiceTokenV3Table.tsx b/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenV3Section/ServiceTokenV3Table.tsxnew file mode 100644index 0000000000..77b2b8fac5--- /dev/null+++ b/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenV3Section/ServiceTokenV3Table.tsx@@ -0,0 +1,7 @@+export const ServiceTokenV3Table = () => {+ return (+ <div>+ ServiceTokenV3Table+ </div>+ );+}\ No newline at end of filediff --git a/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenV3Section/index.tsx b/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenV3Section/index.tsxnew file mode 100644index 0000000000..b6abc117c4--- /dev/null+++ b/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenV3Section/index.tsx@@ -0,0 +1 @@+export { ServiceTokenV3Section } from "./ServiceTokenV3Section";\ No newline at end of file