mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 07:26:45 +00:00
Fixed minor bugs everywhere
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
- **[Integrations](https://infisical.com/docs/integrations/overview)** with CI/CD and production infrastructure
|
- **[Integrations](https://infisical.com/docs/integrations/overview)** with CI/CD and production infrastructure
|
||||||
- **[Infisical API](https://infisical.com/docs/api-reference/overview/introduction)** - manage secrets via HTTPS requests to the platform
|
- **[Infisical API](https://infisical.com/docs/api-reference/overview/introduction)** - manage secrets via HTTPS requests to the platform
|
||||||
- **[Secret Versioning](https://infisical.com/docs/getting-started/dashboard/versioning)** to view the change history for any secret
|
- **[Secret Versioning](https://infisical.com/docs/getting-started/dashboard/versioning)** to view the change history for any secret
|
||||||
- **[Activity Logs](https://infisical.com/docs/getting-started/dashboard/audit-logs)** to record every action taken in a project
|
- **[Audit Logs](https://infisical.com/docs/getting-started/dashboard/audit-logs)** to record every action taken in a project
|
||||||
- **[Point-in-time Secrets Recovery](https://infisical.com/docs/getting-started/dashboard/pit-recovery)** for rolling back to any snapshot of your secrets
|
- **[Point-in-time Secrets Recovery](https://infisical.com/docs/getting-started/dashboard/pit-recovery)** for rolling back to any snapshot of your secrets
|
||||||
- **Role-based Access Controls** per environment
|
- **Role-based Access Controls** per environment
|
||||||
- **2FA** (more options coming soon)
|
- **2FA** (more options coming soon)
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
title: "Activity Logs"
|
title: "Audit Logs"
|
||||||
description: "See which events are triggered within your Infisical project."
|
description: "See which events are triggered within your Infisical project."
|
||||||
---
|
---
|
||||||
|
|
||||||
Activity logs record all actions going through Infisical including who performed which CRUD operations on environment variables and from what IP address. They help answer questions like:
|
Audit logs record all actions going through Infisical including who performed which CRUD operations on environment variables and from what IP address. They help answer questions like:
|
||||||
|
|
||||||
- Who added or updated environment variables recently?
|
- Who added or updated environment variables recently?
|
||||||
- Did Bob read environment variables last week (if at all)?
|
- Did Bob read environment variables last week (if at all)?
|
||||||
- What IP address was used for that action?
|
- What IP address was used for that action?
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -12,7 +12,7 @@ This is a non-exhaustive list of features that Infisical offers:
|
|||||||
- Sync secrets to platforms via integrations to platforms like GitHub, Vercel, and Netlify.
|
- Sync secrets to platforms via integrations to platforms like GitHub, Vercel, and Netlify.
|
||||||
- Rollback secrets to any point in time.
|
- Rollback secrets to any point in time.
|
||||||
- Rollback each secrets to any version.
|
- Rollback each secrets to any version.
|
||||||
- Track actions through activity logs.
|
- Track actions through audit logs.
|
||||||
|
|
||||||
## CLI
|
## CLI
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"title": "Activity Logs",
|
"title": "Audit Logs",
|
||||||
"subtitle": "Event history for this Infisical project.",
|
"subtitle": "Event history for this Infisical project.",
|
||||||
"event": {
|
"event": {
|
||||||
"readSecrets": "Secrets Viewed",
|
"readSecrets": "Secrets Viewed",
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
"project-id": "Project ID",
|
"project-id": "Project ID",
|
||||||
"save-changes": "Save Changes",
|
"save-changes": "Save Changes",
|
||||||
"saved": "Saved",
|
"saved": "Saved",
|
||||||
"drop-zone": "Drag and drop a .env or .yml file here.",
|
"drop-zone": "Drag and drop a .env, .json, or .yml file here.",
|
||||||
"drop-zone-keys": "Drag and drop a .env or .yml file here to add more secrets.",
|
"drop-zone-keys": "Drag and drop a .env, .json, or .yml file here to add more secrets.",
|
||||||
"role": "Role",
|
"role": "Role",
|
||||||
"role_admin": "admin",
|
"role_admin": "admin",
|
||||||
"display-name": "Display Name",
|
"display-name": "Display Name",
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ const Layout = ({ children }: LayoutProps) => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
href: `/activity/${workspaceMapping[workspaceSelected as any]}`,
|
href: `/activity/${workspaceMapping[workspaceSelected as any]}`,
|
||||||
title: 'Activity Logs',
|
title: 'Audit Logs',
|
||||||
emoji: <FontAwesomeIcon icon={faFileLines} />
|
emoji: <FontAwesomeIcon icon={faFileLines} />
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -71,6 +71,19 @@ const DropZone = ({
|
|||||||
}));
|
}));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'json': {
|
||||||
|
const keyPairs = JSON.parse(String(file));
|
||||||
|
secrets = Object.keys(keyPairs).map((key, index) => ({
|
||||||
|
id: guidGenerator(),
|
||||||
|
pos: numCurrentRows + index,
|
||||||
|
key,
|
||||||
|
value: keyPairs[key as keyof typeof keyPairs],
|
||||||
|
comment: '',
|
||||||
|
type: 'shared',
|
||||||
|
tags: []
|
||||||
|
}));
|
||||||
|
break;
|
||||||
|
}
|
||||||
case 'yml': {
|
case 'yml': {
|
||||||
const parsedFile = parseDocument(file.toString());
|
const parsedFile = parseDocument(file.toString());
|
||||||
const keyPairs = parsedFile.contents!.toJSON();
|
const keyPairs = parsedFile.contents!.toJSON();
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ type Props = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const EmptyState = ({ title, className, children, icon = faCubesStacked }: Props) => (
|
export const EmptyState = ({ title, className, children, icon = faCubesStacked }: Props) => (
|
||||||
<div className={twMerge('flex w-full flex-col items-center px-2 pt-6 text-bunker-300', className)}>
|
<div className={twMerge('flex w-full bg-bunker-700 flex-col items-center px-2 pt-6 text-bunker-300', className)}>
|
||||||
<FontAwesomeIcon icon={icon} size="2x" className='mr-4' />
|
<FontAwesomeIcon icon={icon} size="2x" className='mr-4' />
|
||||||
<div className='flex flex-row items-center py-4'>
|
<div className='flex flex-row items-center py-4'>
|
||||||
<div className="text-bunker-300 text-sm">{title}</div>
|
<div className="text-bunker-300 text-sm">{title}</div>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const tagVariants = cva('inline-flex whitespace-nowrap text-sm rounded-sm mr-1.5
|
|||||||
red: 'bg-red/80 text-bunker-100'
|
red: 'bg-red/80 text-bunker-100'
|
||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
sm: 'px-1 py-0.5'
|
sm: 'px-1.5 py-0.5'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -308,7 +308,7 @@ export const AppLayout = ({ children }: LayoutProps) => {
|
|||||||
isSelected={router.asPath === `/activity/${currentWorkspace?._id}`}
|
isSelected={router.asPath === `/activity/${currentWorkspace?._id}`}
|
||||||
icon={<FontAwesomeIcon icon={faFileLines} size="lg" />}
|
icon={<FontAwesomeIcon icon={faFileLines} size="lg" />}
|
||||||
>
|
>
|
||||||
Activity Logs
|
Audit Logs
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
|
import Head from 'next/head';
|
||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
|
|
||||||
@@ -125,7 +126,12 @@ export default function Activity() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx-6 lg:mx-0 w-full h-screen">
|
<div className="mx-6 lg:mx-0 w-full h-screen">
|
||||||
<NavHeader pageName="Project Activity" isProjectRelated />
|
<Head>
|
||||||
|
<title>Audit Logs</title>
|
||||||
|
<link rel="icon" href="/infisical.ico" />
|
||||||
|
<meta property="og:image" content="/images/message.png" />
|
||||||
|
</Head>
|
||||||
|
<NavHeader pageName="Audit Logs" isProjectRelated />
|
||||||
{currentSidebarAction && (
|
{currentSidebarAction && (
|
||||||
<ActivitySideBar toggleSidebar={toggleSidebar} currentAction={currentSidebarAction} />
|
<ActivitySideBar toggleSidebar={toggleSidebar} currentAction={currentSidebarAction} />
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -77,13 +77,13 @@ export default function SettingsBilling() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-bunker-800 max-h-screen flex flex-col justify-between text-white">
|
<div className="bg-bunker-800 pb-4 flex flex-col justify-between text-white">
|
||||||
<Head>
|
<Head>
|
||||||
<title>{t('common:head-title', { title: t('billing:title') })}</title>
|
<title>{t('common:head-title', { title: t('billing:title') })}</title>
|
||||||
<link rel="icon" href="/infisical.ico" />
|
<link rel="icon" href="/infisical.ico" />
|
||||||
</Head>
|
</Head>
|
||||||
<div className="flex flex-row">
|
<div className="flex flex-row">
|
||||||
<div className="w-full max-h-screen pb-2 overflow-y-auto">
|
<div className="w-full pb-2">
|
||||||
<NavHeader pageName={t('billing:title')} />
|
<NavHeader pageName={t('billing:title')} />
|
||||||
<div className="flex flex-row justify-between items-center ml-6 my-8 text-xl max-w-5xl">
|
<div className="flex flex-row justify-between items-center ml-6 my-8 text-xl max-w-5xl">
|
||||||
<div className="flex flex-col justify-start items-start text-3xl">
|
<div className="flex flex-col justify-start items-start text-3xl">
|
||||||
@@ -93,7 +93,6 @@ export default function SettingsBilling() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col ml-6 text-mineshaft-50 w-max">
|
<div className="flex flex-col ml-6 text-mineshaft-50 w-max">
|
||||||
<p className="text-xl font-semibold">{t('billing:subscription')}</p>
|
<p className="text-xl font-semibold">{t('billing:subscription')}</p>
|
||||||
<div className="mt-4 text-bunker-200 h-14 flex justify-center items-center rounded-md bg-bunker-600 mr-4"> If you are looking to get an annual plan, please reach out to <a className="ml-1.5 underline text-primary underline-offset-2" href="mailto:[email protected]">team@infisical.com</a></div>
|
|
||||||
<div className="grid grid-cols-2 grid-rows-2 gap-y-6 gap-x-3 mt-4 overflow-x-auto">
|
<div className="grid grid-cols-2 grid-rows-2 gap-y-6 gap-x-3 mt-4 overflow-x-auto">
|
||||||
{plans.map((plan) => (
|
{plans.map((plan) => (
|
||||||
<Plan key={plan.name} plan={plan} />
|
<Plan key={plan.name} plan={plan} />
|
||||||
|
|||||||
+16
-4
@@ -1,5 +1,6 @@
|
|||||||
import { useMemo, useState } from 'react';
|
import { useMemo, useState } from 'react';
|
||||||
import { Controller, useForm } from 'react-hook-form';
|
import { Controller, useForm } from 'react-hook-form';
|
||||||
|
import { useRouter } from 'next/router';
|
||||||
import { faMagnifyingGlass, faPlus, faTrash, faUsers } from '@fortawesome/free-solid-svg-icons';
|
import { faMagnifyingGlass, faPlus, faTrash, faUsers } from '@fortawesome/free-solid-svg-icons';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import { yupResolver } from '@hookform/resolvers/yup';
|
import { yupResolver } from '@hookform/resolvers/yup';
|
||||||
@@ -61,6 +62,7 @@ export const OrgMembersTable = ({
|
|||||||
userId,
|
userId,
|
||||||
isLoading
|
isLoading
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
|
const router = useRouter();
|
||||||
const [searchMemberFilter, setSearchMemberFilter] = useState('');
|
const [searchMemberFilter, setSearchMemberFilter] = useState('');
|
||||||
const { handlePopUpToggle, popUp, handlePopUpOpen, handlePopUpClose } = usePopUp([
|
const { handlePopUpToggle, popUp, handlePopUpOpen, handlePopUpClose } = usePopUp([
|
||||||
'addMember',
|
'addMember',
|
||||||
@@ -159,7 +161,7 @@ export const OrgMembersTable = ({
|
|||||||
<Select
|
<Select
|
||||||
defaultValue={role}
|
defaultValue={role}
|
||||||
isDisabled={userId === user?._id}
|
isDisabled={userId === user?._id}
|
||||||
className="w-full bg-mineshaft-600"
|
className="w-40 bg-mineshaft-600"
|
||||||
onValueChange={(selectedRole) =>
|
onValueChange={(selectedRole) =>
|
||||||
onRoleChange(orgMembershipId, selectedRole)
|
onRoleChange(orgMembershipId, selectedRole)
|
||||||
}
|
}
|
||||||
@@ -172,8 +174,8 @@ export const OrgMembersTable = ({
|
|||||||
</Select>
|
</Select>
|
||||||
)}
|
)}
|
||||||
{(status === 'invited' || status === 'verified') && (
|
{(status === 'invited' || status === 'verified') && (
|
||||||
<Button colorSchema="secondary" onClick={() => onInviteMember(email)}>
|
<Button className='w-40' colorSchema="secondary" onClick={() => onInviteMember(email)}>
|
||||||
Resent Invite
|
Resend Invite
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{status === 'completed' && (
|
{status === 'completed' && (
|
||||||
@@ -193,7 +195,17 @@ export const OrgMembersTable = ({
|
|||||||
</Tag>
|
</Tag>
|
||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
<Tag colorSchema="red">This user isn't part of any projects yet</Tag>
|
<div className='flex flex-row'>
|
||||||
|
<Tag colorSchema="red">This user isn't part of any projects yet</Tag>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onClick={() => router.push(`/users/${router.query.id}`)}
|
||||||
|
className='text-sm bg-mineshaft w-max px-1.5 py-0.5 hover:bg-primary duration-200 hover:text-black cursor-pointer rounded-sm'
|
||||||
|
>
|
||||||
|
<FontAwesomeIcon icon={faPlus} className="mr-1" />
|
||||||
|
Add to projects
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</Td>
|
</Td>
|
||||||
<Td>
|
<Td>
|
||||||
|
|||||||
+1
-1
@@ -54,7 +54,7 @@
|
|||||||
- **[Integrations](https://infisical.com/docs/integrations/overview)** with CI/CD and production infrastructure
|
- **[Integrations](https://infisical.com/docs/integrations/overview)** with CI/CD and production infrastructure
|
||||||
- **[Infisical API](https://infisical.com/docs/api-reference/overview/introduction)** - manage secrets via HTTPS requests to the platform
|
- **[Infisical API](https://infisical.com/docs/api-reference/overview/introduction)** - manage secrets via HTTPS requests to the platform
|
||||||
- **[Secret Versioning](https://infisical.com/docs/getting-started/dashboard/versioning)** to view the change history for any secret
|
- **[Secret Versioning](https://infisical.com/docs/getting-started/dashboard/versioning)** to view the change history for any secret
|
||||||
- **[Activity Logs](https://infisical.com/docs/getting-started/dashboard/audit-logs)** to record every action taken in a project
|
- **[Audit Logs](https://infisical.com/docs/getting-started/dashboard/audit-logs)** to record every action taken in a project
|
||||||
- **[Point-in-time Secrets Recovery](https://infisical.com/docs/getting-started/dashboard/pit-recovery)** for rolling back to any snapshot of your secrets
|
- **[Point-in-time Secrets Recovery](https://infisical.com/docs/getting-started/dashboard/pit-recovery)** for rolling back to any snapshot of your secrets
|
||||||
- **Role-based Access Controls** per environment
|
- **Role-based Access Controls** per environment
|
||||||
- **2FA** (more options coming soon)
|
- **2FA** (more options coming soon)
|
||||||
|
|||||||
Reference in New Issue
Block a user