feat!: release v2 (#6545)

Co-authored-by: Artur <145776561+arturict@users.noreply.github.com>
Co-authored-by: arturict <arturict@users.noreply.github.com>
Co-authored-by: Thomas <thomas@ajnart.fr>
Co-authored-by: Afonso Jorge Ramos <afonsojorgeramos@gmail.com>
Co-authored-by: Danura30082 <danura30082+github@gmail.com>
Co-authored-by: Kushie <122986913+kushiemoon-dev@users.noreply.github.com>
Co-authored-by: ajnart <thomas@ajnart.fr>
Co-authored-by: ajnart <thomas@ajnart.dev>
Co-authored-by: chenjun <chenjun@foxmail.com>
Co-authored-by: Wikibear <wikibear@users.noreply.github.com>
Co-authored-by: Bergasha <bergasha@gmail.com>
Co-authored-by: leafyelin <43306196+leafyelin@users.noreply.github.com>
Co-authored-by: Lucas Araujo <lucas.lra@gmail.com>
Co-authored-by: GreenMonito <86085570+GreenMonito@users.noreply.github.com>
Co-authored-by: Nerdy-Technician <roffo@nerdy-technician.social>
Co-authored-by: Jun <34545896+jcstrong@users.noreply.github.com>
Co-authored-by: Edmond Abraham <54119952+gitedmond@users.noreply.github.com>
Co-authored-by: thrawnx <tight.bulb9384@fastmail.com>
Co-authored-by: Chris <58918656+nordada@users.noreply.github.com>
Co-authored-by: yi111 <153097222+Yi-111-a@users.noreply.github.com>
Co-authored-by: Yanis <naamaneyanis@gmail.com>
Co-authored-by: Wikibear <me@sej.de>
Co-authored-by: alessiottavo <93441886+alessiottavo@users.noreply.github.com>
This commit is contained in:
3286 files changed
+284386 -139176

No files matched your search

@@ -1,8 +1,8 @@
export const AddingIntegration = () => {
return (
<p>
You can find how to add the integration on the <a href="/docs/management/integrations">Integrations Management</a>{" "}
documentation page.
Create the connection under <strong>Management → Integrations</strong>. See{" "}
<a href="/docs/management/integrations">Managing integrations</a>.
</p>
);
};
@@ -1,6 +1,8 @@
"use client";
import { IntegrationDefinition } from "@site/src/types";
import { DocsHeader } from "../ui/header";
import { useColorMode } from "@docusaurus/theme-common";
import { useColorMode } from "@/hooks/use-color-mode";
interface IntegrationHeaderProps {
integration: IntegrationDefinition;
@@ -14,7 +16,14 @@ export const IntegrationHeader = (props: IntegrationHeaderProps) => {
<DocsHeader
title={props.integration.name}
description={props.integration.description}
icon={<img src={getIntegrationIconUrl(props.integration, isDarkTheme)} width={48} height={48} />}
icon={
<img
src={getIntegrationIconUrl(props.integration, isDarkTheme)}
width={48}
height={48}
alt={`${props.integration.name} logo`}
/>
}
categories={props.categories}
/>
);
@@ -1,10 +1,9 @@
import { IconCode, IconKey, IconKeyOff, IconLink, IconPassword, IconPlug, IconUser } from "@tabler/icons-react";
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
import { ReactNode } from "react";
import Alert from "@theme/Admonition";
import Alert from "@/components/mdx/admonition";
import Tabs, { TabItem } from "@/components/mdx/legacy-tabs";
const secretKinds = {
export const secretKinds = {
apiKey: {
name: "API Key",
description: "API Key from the service for authentication.",
@@ -78,6 +77,26 @@ const secretKinds = {
description: "The slug or path identifier for the resource",
icon: IconLink,
},
wazuhIndexerUrl: {
name: "Indexer URL",
description: "URL of the Wazuh indexer (OpenSearch), usually https://wazuh:9200",
icon: IconLink,
},
wazuhIndexerUsername: {
name: "Indexer username",
description: "Wazuh indexer user with read access to wazuh-alerts-*, wazuh-monitoring-* and wazuh-states-*",
icon: IconUser,
},
wazuhIndexerPassword: {
name: "Indexer password",
description: "Password of the Wazuh indexer user",
icon: IconPassword,
},
wazuhDashboardUrl: {
name: "Dashboard URL",
description: "Optional. Public URL of the Wazuh dashboard, used for deep links from the widgets",
icon: IconLink,
},
};
type SecretKind = keyof typeof secretKinds;
@@ -98,8 +117,8 @@ export const IntegrationSecrets = ({ secrets }: IntegrationSecretsProps) => {
<div className="flex flex-col gap-4 mt-6 w-full">
<div className="flex gap-6 rounded-xl border border-solid dark:border-[#333] border-[#e5e7eb] shadow-sm w-full items-center justify-between [&>*]:w-full">
<Tabs className="[&>li]:w-full [&>li]:justify-center">
{secrets.map((secret) => {
const key = secret.credentials.join("-");
{secrets.map((secret, index) => {
const key = secret.credentials.join("-") || `no-authentication-${index}`;
const Icon =
secret.credentials.map((value) => secretKinds[value]).find((value) => "icon" in value)?.icon ||
IconKeyOff;
@@ -1,5 +1,7 @@
import { getDocsHref } from "@/lib/docs-path";
import { WidgetDefinition } from "@site/src/types";
import { IconExternalLink, TablerIcon } from "@tabler/icons-react";
import { IconArrowRight, type TablerIcon } from "@tabler/icons-react";
import Link from "next/link";
interface IntegrationCapabilitesProps {
items: (
@@ -21,35 +23,37 @@ interface IntegrationCapabilitesProps {
export const IntegrationCapabilites = ({ items }: IntegrationCapabilitesProps) => {
return (
<div className="flex flex-col gap-4 mt-4 w-full">
<div className="flex flex-col gap-2">
<div className="not-prose mt-4 grid w-full gap-2">
<div className="grid gap-2">
{items.map((item) => {
const capability = "widget" in item ? item.widget : item.capability;
return (
<div
key={capability.name}
className="flex gap-6 rounded-xl border border-solid dark:border-[#333] border-[#e5e7eb] p-4 shadow-sm w-full items-center justify-between"
className="flex flex-col gap-4 rounded-xl border bg-fd-card p-4 shadow-sm sm:flex-row sm:items-center sm:justify-between"
>
<div className="flex gap-6 items-center">
<div className="w-10 h-10 flex justify-center items-center bg-red-500/10 rounded-md">
<capability.icon size={24} stroke={1.5} className="stroke-red-500" />
<div className="flex min-w-0 items-start gap-4 sm:items-center">
<div className="flex size-10 shrink-0 items-center justify-center rounded-md bg-fd-primary/10 text-fd-primary">
<capability.icon aria-hidden="true" size={24} stroke={1.5} />
</div>
<div className="flex flex-col gap-0">
<span className="text-base font-bold">{capability.name}</span>
<span className="text-sm dark:text-[#999999] text-[#696969]">{capability.description}</span>
{item.note && <span className="text-xs text-yellow-500 mt-1">{item.note}</span>}
<div className="min-w-0">
<span className="block text-base font-semibold text-fd-foreground">{capability.name}</span>
<span className="mt-1 block text-sm leading-5 text-fd-muted-foreground">
{capability.description}
</span>
{item.note && <span className="mt-1 block text-xs text-fd-muted-foreground">{item.note}</span>}
</div>
</div>
<a
href={capability.path}
className="border border-solid border-[#e5e7eb] dark:border-[#333] p-2 py-1 rounded-md gap-2 flex justify-center items-center hover:no-underline hover:bg-slate-100 dark:hover:bg-gray-800"
<Link
href={getDocsHref(capability.path)}
className="inline-flex shrink-0 items-center justify-center gap-2 rounded-md border px-3 py-2 text-sm font-medium text-fd-foreground hover:bg-fd-muted hover:no-underline"
>
<IconExternalLink size={16} stroke={1.5} className="dark:stroke-white stroke-black" />
<span className="dark:text-white text-black font-medium text-sm">Details</span>
</a>
View guide
<IconArrowRight aria-hidden="true" size={16} stroke={1.5} />
</Link>
</div>
);
})}