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
Merge branch 'main' into import-export-secrets
mv-turtle5e03a54fa812
diff --cc frontend/pages/dashboard/[id].tsxindex caf1ce82a5,e56436b478..09293b2bd9--- a/frontend/pages/dashboard/[id].tsx+++ b/frontend/pages/dashboard/[id].tsx@@@ -16,8 -17,8 +17,10 @@@ importfaPlus,} from '@fortawesome/free-solid-svg-icons';import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';+import { Menu, Transition } from '@headlessui/react';+import { Document, YAMLSeq } from 'yaml';+ import getProjectSercetSnapshotsCount from 'ee/api/secrets/GetProjectSercetSnapshotsCount';+ import PITRecoverySidebar from 'ee/components/PITRecoverySidebar';import Button from '~/components/basic/buttons/Button';import ListBox from '~/components/basic/Listbox';@@@ -600,52 -612,15 +673,52 @@@ export default function Dashboard(): faArrowDownZA}/>- </div>}+ </div>- <div className="ml-2 min-w-max flex flex-row items-start justify-start">+ {!snapshotData && <div className="ml-2 min-w-max flex flex-row items-start justify-start">- <Button- onButtonPressed={download}- color="mineshaft"- size="icon-md"- icon={faDownload}- />+ <Menu+ as="div"+ className="relative inline-block text-left"+ >+ <Menu.Button+ as="div"+ className="inline-flex w-full justify-center text-sm font-medium text-gray-200 rounded-md hover:bg-white/10 duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75"+ >+ <Button+ color="mineshaft"+ size="icon-md"+ icon={faDownload}+ />+ </Menu.Button>+ <Transition+ as={Fragment}+ enter="transition ease-out duration-100"+ enterFrom="transform opacity-0 scale-95"+ enterTo="transform opacity-100 scale-100"+ leave="transition ease-in duration-75"+ leaveFrom="transform opacity-100 scale-100"+ leaveTo="transform opacity-0 scale-95"+ >+ <Menu.Items className="absolute z-50 drop-shadow-xl right-0 mt-0.5 w-[20rem] origin-top-right rounded-md bg-bunker border border-mineshaft-500 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none p-2 space-y-2">+ <Menu.Item>+ <Button+ color="mineshaft"+ onButtonPressed={downloadDotEnv}+ size="md"+ text="Download as .env"+ />+ </Menu.Item>+ <Menu.Item>+ <Button+ color="mineshaft"+ onButtonPressed={downloadYaml}+ size="md"+ text="Download as .yml"+ />+ </Menu.Item>+ </Menu.Items>+ </Transition>+ </Menu>- </div>+ </div>}<div className="ml-2 min-w-max flex flex-row items-start justify-start"><ButtononButtonPressed={changeBlurred}@@@ -686,16 -672,36 +770,40 @@@modifyValue={listenChangeValue}modifyKey={listenChangeKey}isBlurred={blurred}- isDuplicate={findDuplicates(- data?.map((item) => item.key + item.type)- )?.includes(keyPair.key + keyPair.type)}- toggleSidebar={toggleSidebar}- sidebarSecretId={sidebarSecretId}- />- ))}- isDuplicate={findDuplicates(data?.map((item) => item.key + item.type))?.includes(keyPair.key + keyPair.type)}++ isDuplicate={findDuplicates(++ data?.map((item) => item.key + item.type)++ )?.includes(keyPair.key + keyPair.type)}+ toggleSidebar={toggleSidebar}+ sidebarSecretId={sidebarSecretId}+ isSnapshot={false}+ />+ ))}+ {snapshotData && snapshotData.secretVersions?.sort((a, b) => a.key.localeCompare(b.key))+ .filter(row => reverseEnvMapping[row.environment] == snapshotEnv)+ .filter(row => row.key.toUpperCase().includes(searchKeys.toUpperCase()))+ .filter(row => !(snapshotData.secretVersions?.filter(row => (snapshotData.secretVersions+ ?.map((item) => item.key)+ .filter(+ (item, index) =>+ index !==+ snapshotData.secretVersions?.map((item) => item.key).indexOf(item)+ ).includes(row.key) && row.type == 'shared'))?.map((item) => item.id).includes(row.id) && row.type == 'shared')).map((keyPair) => (+ <KeyPair+ key={keyPair.id}+ keyPair={keyPair}+ modifyValue={listenChangeValue}+ modifyKey={listenChangeKey}+ isBlurred={blurred}- isDuplicate={findDuplicates(data?.map((item) => item.key + item.type))?.includes(keyPair.key + keyPair.type)}++ isDuplicate={findDuplicates(++ data?.map((item) => item.key + item.type)++ )?.includes(keyPair.key + keyPair.type)}+ toggleSidebar={toggleSidebar}+ sidebarSecretId={sidebarSecretId}+ isSnapshot={true}+ />+ ))}</div>- <div className="w-full max-w-5xl px-2 pt-3">+ {!snapshotData && <div className="w-full max-w-5xl px-2 pt-3"><DropZonesetData={addData}setErrorDragAndDrop={setErrorDragAndDrop}