@perpetualsystems/connector-registry 202610.15.1 → 202610.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const connectorDocumentationSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3
|
+
/** Setup guides shipped with this registry version, keyed by documentation path. */
|
|
4
|
+
export declare function getBundledConnectorDocumentation(): Record<string, string>;
|
|
5
|
+
//# sourceMappingURL=documentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documentation.d.ts","sourceRoot":"","sources":["../src/documentation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,4BAA4B,uCAGxC,CAAA;AAED,oFAAoF;AACpF,wBAAgB,gCAAgC,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMzE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const connectorDocumentationSchema = z.record(z.string(), z.string().min(1));
|
|
4
|
+
/** Setup guides shipped with this registry version, keyed by documentation path. */
|
|
5
|
+
export function getBundledConnectorDocumentation() {
|
|
6
|
+
return connectorDocumentationSchema.parse(JSON.parse(readFileSync(new URL("./documentation.json", import.meta.url), "utf8")));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=documentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documentation.js","sourceRoot":"","sources":["../src/documentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAClD,CAAC,CAAC,MAAM,EAAE,EACV,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAClB,CAAA;AAED,oFAAoF;AACpF,MAAM,UAAU,gCAAgC;IAC9C,OAAO,4BAA4B,CAAC,KAAK,CACvC,IAAI,CAAC,KAAK,CACR,YAAY,CAAC,IAAI,GAAG,CAAC,sBAAsB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CACvE,CACF,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"setup-docs/atlassian-org-audit.md": "Source: https://docs.perpetualsystems.com/setup-docs/atlassian-org-audit/\n\n# Atlassian Organization Audit connector setup\n\nPolls audit log events from the [Atlassian Organizations REST API](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-events/) (`GET /orgs/{orgId}/events-stream`).\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Atlassian access | **Organization administrator** |\n| Organization ID | UUID for your Atlassian organization |\n| API key | Cloud Admin API key with access to audit events |\n\n---\n\n## 1. Create an API key and copy your organization ID\n\n1. Sign in to [Atlassian Administration](https://admin.atlassian.com/).\n2. Go to **Settings → API keys** (or **API access** depending on your admin UI).\n3. Click **Create API key**.\n4. Name the key (e.g. `Perpetual Atlassian Audit`).\n5. Assign the **`read:events:admin`** scope (required for the events stream endpoint).\n6. Complete two-factor authentication if prompted.\n7. Copy the **API key** and **Organization ID**. Atlassian shows the secret only once — store both securely.\n\n<!-- screenshot: Atlassian Administration — Create API key with read:events:admin -->\n\nTo find your organization ID later: **Settings → Organization settings** (or the API key creation flow displays it).\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `atlassian_org_audit`). |\n| **Allowed URL patterns** | `*.atlassian.com` |\n| **Value** | API key from step 1 (used as a Bearer token) |\n\n4. Save the credential.\n\n\n---\n\n## 3. Create the Atlassian Organization Audit connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Atlassian Organization Audit**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **Atlassian API access:** select the credential from step 2.\n - **Poll interval (minutes):** default `5`.\n - **Organization ID:** the org UUID from step 1.\n\n5. Optionally check **Deploy**, then save.\n\n\nThe first run uses the connector's configured initial lookback, defaulting to **24 hours** when it is not supplied. Subsequent polls resume from the last stream cursor, including after an empty response. The cursor returned by the last event page is retained when a later empty page has no `meta.next`. Empty pages end the run even if they return a cursor. An event page without a next cursor fails the run rather than silently restarting the lookback.\n\nThis follows [Atlassian's polling cursor contract](https://developer.atlassian.com/cloud/admin/organization/poll-events-migration/). Delivery remains at least once: retries after a failed flush or callback can replay events.\n\n---\n\n## Operational notes\n\n- **Key rotation:** Create a new API key, update the Perpetual credential, verify runs succeed, then revoke the old key.\n- **Rate limits:** The connector retries `429` and `5xx` responses with backoff; very large backfills may span multiple runs.\n\n---\n\n## Reference\n\n- [Organizations REST API — Events](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-events/)\n- [Cloud Admin scopes](https://developer.atlassian.com/cloud/admin/scopes/)\n",
|
|
3
|
+
"setup-docs/azure-event-hub.md": "Source: https://docs.perpetualsystems.com/setup-docs/azure-event-hub/\n\n# Azure Event Hubs connector setup\n\nConsumes events from an [Azure Event Hub](https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-about) via a consumer group. This is a **streaming** connector (long-running consumption, not scheduled polling).\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Event Hubs namespace | Active namespace with your event hub |\n| Event hub | Hub receiving events from your publishers |\n| Connection string | With **Listen** permission on the event hub |\n| Consumer group | Dedicated group recommended (default `$Default` works) |\n\n---\n\n## 1. Get Event Hub connection details\n\n1. Sign in to the [Azure portal](https://portal.azure.com/).\n2. Open your **Event Hubs Namespace** → **Event Hubs** → select your hub.\n3. Note the **Event hub name**.\n4. Under **Settings → Shared access policies**, create or open a policy with **Listen** claim.\n5. Copy the **Connection string–primary key** (or namespace-level connection string with Listen on this hub).\n\n<!-- screenshot: Azure portal — Event Hub shared access policy with Listen -->\n\n### Consumer group (recommended)\n\n1. In the event hub, open **Consumer groups**.\n2. Add a dedicated group (e.g. `perpetual`) instead of sharing `$Default` with other consumers.\n\n<!-- screenshot: Azure portal — Event Hub consumer groups -->\n\nThe connection string embeds the namespace (`*.servicebus.windows.net`); you do not enter the namespace separately.\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `azure_event_hub`). |\n| **Allowed URL patterns** | `*.servicebus.windows.net` |\n| **Value** | Event Hubs connection string from step 1 |\n\n4. Save the credential.\n\n\n---\n\n## 3. Create the Azure Event Hubs connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Azure Event Hubs**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **Event Hub connection string:** select the credential from step 2.\n - **Event Hub name:** hub name from step 1.\n - **Consumer group:** group to use (default `$Default`, or your dedicated group).\n\n5. Check **Deploy** to start the streaming connector after save.\n\n\nPartition checkpoints are stored automatically by the data plane (S3-backed). You do not configure checkpoint storage in the connector settings.\n\n---\n\n## Microsoft security sources\n\nUse Event Hubs for Microsoft security data that Microsoft exposes as append-only logs or event streams. This avoids timestamp-window polling and uses Event Hub partition offsets for bounded, resumable delivery.\n\nThe connector emits each Event Hub message as a raw JSON record. The original Microsoft payload remains under the record's `body`; Event Hub enqueue time, sequence number, and offset are retained alongside it.\n\n### Microsoft Entra diagnostic logs\n\nIn the Microsoft Entra admin center, open **Monitoring & health → Diagnostic settings**, add a diagnostic setting, and select **Stream to an event hub**. Route the required categories:\n\n| Perpetual data | Microsoft diagnostic category |\n|---|---|\n| Directory audit activity | `AuditLogs` |\n| Interactive user sign-ins | `SignInLogs` |\n| Non-interactive user sign-ins | `NonInteractiveUserSignInLogs` |\n| Service-principal sign-ins | `ServicePrincipalSignInLogs` |\n| Managed-identity sign-ins | `ManagedIdentitySignInLogs` |\n| Risky users | `RiskyUsers` |\n| User risk detections | `UserRiskEvents` |\n| Risky service principals | `RiskyServicePrincipals` |\n| Service-principal risk detections | `ServicePrincipalRiskEvents` |\n\nMicrosoft also supports categories such as `ProvisioningLogs` and `MicrosoftGraphActivityLogs`; enable them when those records are in scope. Available categories and licensing vary by tenant.\n\nUse Event Hub as the only ongoing collector for these categories. Running equivalent Microsoft Graph polling in parallel creates overlapping records with different raw schemas. Diagnostic export begins from the point it is enabled and should not be assumed to provide a historical snapshot of current risky identities.\n\nSee [Microsoft Entra logs available for streaming](https://learn.microsoft.com/en-us/entra/identity/monitoring-health/concept-diagnostic-settings-logs-options) and [stream Microsoft Entra logs to Event Hubs](https://learn.microsoft.com/en-us/entra/identity/monitoring-health/howto-stream-logs-to-event-hub).\n\n### Microsoft Defender XDR event streaming\n\nIn the Microsoft Defender portal, configure **Streaming API** to send selected Advanced Hunting tables to the Event Hub. Supported tables include `AlertInfo`, `AlertEvidence`, device, email, identity, URL, and cloud-app event tables.\n\nThese events supplement the Microsoft Graph Security connector. `AlertInfo` and `AlertEvidence` are Advanced Hunting records, not the same objects as Graph `/security/alerts_v2`, and Event Streaming does not provide the same correlated `/security/incidents` resource.\n\nSee [Microsoft Defender XDR Event Streaming](https://learn.microsoft.com/en-us/defender-xdr/streaming-api) and [supported Event Streaming tables](https://learn.microsoft.com/en-us/defender-xdr/supported-event-types).\n\n### Delivery expectations\n\n- Event Hubs and the connector provide at-least-once delivery, not exactly-once delivery.\n- The connector flushes emitted records before updating the partition checkpoint. A crash after a successful flush but before checkpointing can replay the final uncommitted batch.\n- Use a dedicated consumer group for every Perpetual connector instance.\n- Prefer separate Event Hubs when sources require different retention, access, throughput, or dataset names.\n\n---\n\n## Operational notes\n\n- **Delivery semantics:** Events are emitted to Firehose, flushed, then checkpointed per partition. A flush failure does not advance the checkpoint.\n- **Multiple consumers:** Use a dedicated consumer group per downstream consumer to avoid partition stealing.\n- **Connection string rotation:** Update the shared access policy keys in Azure, then update the Perpetual credential.\n\n---\n\n## Reference\n\n- [Event Hubs documentation](https://learn.microsoft.com/en-us/azure/event-hubs/)\n- [Event Hubs consumer groups](https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-features#consumer-groups)\n",
|
|
4
|
+
"setup-docs/bitwarden.md": "Source: https://docs.perpetualsystems.com/setup-docs/bitwarden/\n\n# Bitwarden connector setup\n\nPolls organization event logs from the [Bitwarden Public API](https://bitwarden.com/help/public-api/) (`GET /public/events`).\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Bitwarden plan | Organization with **Public API** access (Teams or Enterprise) |\n| Role | **Organization owner** (to view or rotate the organization API key) |\n| Region | Know whether your org uses the **global** (`api.bitwarden.com`) or **EU** (`api.bitwarden.eu`) stack |\n\nUse an **organization** API key (`client_id` starts with `organization.`). Personal API keys (`user.…`) cannot access the Public API.\n\n---\n\n## 1. Get the organization API key\n\n1. Sign in to the Bitwarden web vault as an organization owner.\n2. Open your organization → **Settings → Organization info**.\n3. Scroll to **API key** and click **View API Key**.\n4. Copy the **client_id** and **client_secret**. Store them securely.\n\n<!-- screenshot: Bitwarden Admin Console — Organization API key -->\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **OAuth 2.0 Client Credentials**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `bitwarden`). |\n| **Allowed URL patterns** | `*.bitwarden.com`, `*.bitwarden.eu` |\n| **Token URL** | `https://identity.bitwarden.com/connect/token` (global) or `https://identity.bitwarden.eu/connect/token` (EU) |\n| **Client ID** | Organization `client_id` from step 1 |\n| **Client Secret** | Organization `client_secret` from step 1 |\n| **Scopes** | `api.organization` |\n\n4. Save the credential. Perpetual refreshes access tokens automatically (tokens expire in about 60 minutes).\n\n\n---\n\n## 3. Create the Bitwarden connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Bitwarden**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **Bitwarden API access:** select the credential from step 2.\n - **Poll interval (minutes):** default `5`.\n - **Region:** `global` or `eu` — must match your Bitwarden stack.\n\n5. Optionally check **Deploy**, then save.\n\n\nFirst run backfills roughly the **last 24 hours** of organization events. Subsequent polls advance in time windows with a short end buffer for API consistency.\n\n---\n\n## Operational notes\n\n- **Event delay:** Bitwarden batches client-side events; the connector ends each window slightly before run time to avoid gaps.\n- **Key rotation:** Rotate the API key in Bitwarden, update the Perpetual credential, then revoke the old secret.\n\n---\n\n## Reference\n\n- [Bitwarden Public API](https://bitwarden.com/help/public-api/)\n- [Organization API key](https://bitwarden.com/help/public-api/#authentication)\n",
|
|
5
|
+
"setup-docs/crowdstrike.md": "Source: https://docs.perpetualsystems.com/setup-docs/crowdstrike/\n\n# CrowdStrike connector setup\n\nPolls detection, audit, and incident events from the [CrowdStrike Falcon Event Streams API](https://developer.crowdstrike.com/api-reference/collections/event-streams/).\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| CrowdStrike Falcon | Administrator access to create API clients |\n| Event Streams API | Enabled for your tenant (contact CrowdStrike support if unavailable) |\n| Cloud region | Know which Falcon cloud hosts your tenant (`us-1`, `us-2`, `eu-1`, `us-gov-1`, `us-gov-2`) |\n\n---\n\n## 1. Create an API client\n\n1. Sign in to the [Falcon console](https://falcon.crowdstrike.com/).\n2. Go to **Support and resources → API clients and keys**.\n3. Under **OAuth2 API clients**, click **Create API client** (or **Add new API client**).\n4. Enter a **Client name** and **Description** (e.g. `Perpetual Event Streams`).\n5. Under **API scopes**, enable **Read** for **Event streams**.\n6. Click **Create** / **Add**.\n7. Copy the **Client ID** and **Client secret** from the confirmation dialog. The secret is shown **only once**.\n\n\n\nNote the **Base URL** shown with your credentials — it indicates which cloud environment to select in Perpetual.\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **OAuth 2.0 Client Credentials**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `crowdstrike`). |\n| **Allowed URL patterns** | `*.crowdstrike.com`, `*.crowdstrike.mil` |\n| **Token URL** | Match your Falcon cloud (see table below) |\n| **Client ID** | Client ID from step 1 |\n| **Client Secret** | Client secret from step 1 |\n\n**Token URL by cloud:**\n\n| Cloud | Token URL |\n|-------|-----------|\n| US-1 | `https://api.crowdstrike.com/oauth2/token` |\n| US-2 | `https://api.us-2.crowdstrike.com/oauth2/token` |\n| EU-1 | `https://api.eu-1.crowdstrike.com/oauth2/token` |\n| US Gov-1 | `https://api.laggar.gcw.crowdstrike.com/oauth2/token` |\n| US Gov-2 | `https://api.us-gov-2.crowdstrike.mil/oauth2/token` |\n\n4. Save the credential. Perpetual refreshes tokens automatically (30-minute lifetime).\n\n---\n\n## 3. Create the CrowdStrike connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **CrowdStrike**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **CrowdStrike API:** select the credential from step 2.\n - **Poll interval (minutes):** default `5`. Event stream reads run each poll until the deadline.\n - **Cloud environment:** match your Falcon tenant (`us1`, `us2`, `eu1`, `usGov1`, `usGov2`).\n\n5. Optionally check **Deploy**, then save.\n\nThe connector discovers all available event stream partitions, reads new events since the last offset, and commits partition offsets after each successful emit.\n\n---\n\n## Operational notes\n\n- **Dedicated client:** Use a dedicated API client for this connector; do not share credentials with unrelated integrations.\n- **MSSP / multi-CID:** If your API client spans multiple CIDs, configure member CID scoping in the credential if your environment supports it.\n- **Feed identity:** Each emitted event includes top-level `dataFeedURL` (the discover feed URL, without resume `offset`). CrowdStrike's `metadata.offset` is unique only within that feed; use `dataFeedURL` with `offset` for a stable event id.\n\n---\n\n## Reference\n\n- [Event Streams API](https://developer.crowdstrike.com/api-reference/collections/event-streams/)\n- [OAuth2 token API](https://developer.crowdstrike.com/api-reference/collections/oauth2/)\n",
|
|
6
|
+
"setup-docs/crowdstrike-spotlight.md": "Source: https://docs.perpetualsystems.com/setup-docs/crowdstrike-spotlight/\n\n# CrowdStrike Spotlight connector setup\n\nPolls vulnerability records from the [CrowdStrike Falcon Spotlight API](https://developer.crowdstrike.com/api-reference/collections/spotlight-vulnerabilities/) (`GET /spotlight/combined/vulnerabilities/v1`), incrementally by `updated_timestamp`.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| CrowdStrike Falcon | **Falcon Spotlight** licensed |\n| API access | Administrator access to create API clients |\n| Cloud region | Know which Falcon cloud hosts your tenant |\n\n---\n\n## 1. Create an API client\n\n1. Sign in to the [Falcon console](https://falcon.crowdstrike.com/).\n2. Go to **Support and resources → API clients and keys**.\n3. Click **Create API client**.\n4. Enter a **Client name** and **Description** (e.g. `Perpetual Spotlight`).\n5. Under **API scopes**, enable **Read** for **Spotlight vulnerabilities**.\n6. Click **Create**.\n7. Copy the **Client ID** and **Client secret**. The secret is shown **only once**.\n\n<!-- screenshot: Falcon — Create API client with Spotlight vulnerabilities Read scope -->\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **OAuth 2.0 Client Credentials**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `crowdstrike_spotlight`). |\n| **Allowed URL patterns** | `*.crowdstrike.com`, `*.crowdstrike.mil` |\n| **Token URL** | Match your Falcon cloud (same endpoints as the CrowdStrike connector) |\n| **Client ID** | Client ID from step 1 |\n| **Client Secret** | Client secret from step 1 |\n\n4. Save the credential.\n\n\n---\n\n## 3. Create the CrowdStrike Spotlight connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **CrowdStrike Spotlight**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **CrowdStrike API:** select the credential from step 2.\n - **Poll interval (minutes):** default `5`.\n - **Cloud environment:** `us1`, `us2`, `eu1`, `usGov1`, or `usGov2`.\n\n5. Optionally check **Deploy**, then save.\n\n\nFirst run queries vulnerabilities with `updated_timestamp` after roughly the **last 24 hours**. Subsequent polls advance from the last committed checkpoint.\n\n---\n\n## Operational notes\n\n- **Assessment lag:** New vulnerabilities appear after endpoint assessment completes; empty polls during quiet periods are normal.\n- **Large fleets:** Pagination may span multiple runs when many vulnerabilities update in one interval.\n- **Separate from Event Streams:** Spotlight uses a different API and scope than the CrowdStrike Event Streams connector — create a dedicated API client.\n\n---\n\n## Reference\n\n- [Spotlight Vulnerabilities API](https://developer.crowdstrike.com/api-reference/collections/spotlight-vulnerabilities/)\n- [OAuth2 token API](https://developer.crowdstrike.com/api-reference/collections/oauth2/)\n",
|
|
7
|
+
"setup-docs/duo-security.md": "Source: https://docs.perpetualsystems.com/setup-docs/duo-security/\n\n# Duo Security connector setup\n\nPolls the [Cisco Duo Admin API](https://duo.com/docs/adminapi) for authentication, telephony, and activity logs, plus optional user inventory snapshots.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Duo access | **Owner**, **Administrator**, or **Application Manager** (to create or view the Admin API application) |\n| Admin API app | Dedicated **Admin API** application in the Duo Admin Panel |\n| Hostname | API hostname for your Duo account (e.g. `api-xxxxxxxx.duosecurity.com`) |\n\nFor **Duo Federal**, use the `*.duofederal.com` hostname instead of `*.duosecurity.com`.\n\n---\n\n## 1. Create an Admin API application\n\n1. Sign in to the [Duo Admin Panel](https://admin.duosecurity.com/).\n2. Go to **Applications → Application Catalog**.\n3. Search for **Admin API** and click **Add**.\n4. Name the application (e.g. `Perpetual Duo`).\n5. On the **Properties** tab, enable:\n - **Grant read resource**\n - **Grant read log**\n - **Grant read info**\n6. Save the application.\n7. On the application details page, copy:\n - **Integration key** (ikey)\n - **Secret key** (skey) — click to reveal; treat like a password\n - **API hostname** (e.g. `api-xxxxxxxx.duosecurity.com`)\n\n<!-- screenshot: Duo Admin Panel — Admin API application keys and hostname -->\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `duo_security`). |\n| **Allowed URL patterns** | `*.duosecurity.com`, `*.duofederal.com` |\n| **Value** | **Secret key** from step 1 |\n\n4. Save the credential.\n\n\nThe **integration key** and **API hostname** are connector settings (step 3), not the credential secret.\n\n---\n\n## 3. Create the Duo Security connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Duo Security**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **Secret key:** select the credential from step 2.\n - **Poll interval (minutes):** default `5` for log streams.\n - **API hostname:** full hostname from step 1 (no `https://` prefix).\n - **Integration key:** ikey from step 1.\n - Enable streams:\n\n| Setting | Default | Admin API path | Notes |\n|---------|---------|----------------|--------|\n| Authentication logs | On | `/admin/v2/logs/authentication` | Login and enrollment events |\n| Telephony logs | On | `/admin/v2/logs/telephony` | Phone and SMS authentication |\n| Activity logs | On | `/admin/v2/logs/activity` | Admin and system activity |\n| User inventory | On | `/admin/v1/users` | Periodic user roster snapshot |\n\nAt least one log stream or user inventory must stay enabled.\n\n5. Optionally check **Deploy**, then save.\n\n\nFirst run backfills roughly the **last 24 hours** for log streams. Duo log APIs have an ingestion delay; the connector accounts for this when choosing time windows.\n\n---\n\n## Operational notes\n\n- **Secret key access:** Only Owner, Administrator, or Application Manager roles can view the secret key.\n- **Federal environments:** Use the `duofederal.com` API hostname and allow that domain in URL patterns.\n- **User inventory:** Runs as a paginated snapshot alongside log polling, not as a real-time stream.\n\n---\n\n## Reference\n\n- [Duo Admin API](https://duo.com/docs/adminapi)\n- [Duo Admin API authentication](https://duo.com/docs/adminapi#authentication)\n",
|
|
8
|
+
"setup-docs/gcp-pubsub.md": "Source: https://docs.perpetualsystems.com/setup-docs/gcp-pubsub/\n\n# Google Cloud Pub/Sub connector setup\n\nConsumes messages from a [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/docs) subscription and emits them to your dataset. This is a **streaming** connector (long-running consumption, not scheduled polling).\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| GCP project | Project containing the Pub/Sub subscription |\n| Subscription | Existing subscription attached to your topic (create the subscription before deploying) |\n| Service account | With permission to **consume** from that subscription |\n| Message source | Publisher writing events to the topic (SIEM forwarder, log router, custom app, etc.) |\n\n---\n\n## 1. Prepare Pub/Sub resources\n\n1. Open the [Google Cloud Console](https://console.cloud.google.com/) and select your project.\n2. Go to **Pub/Sub → Subscriptions**.\n3. Create or identify the **subscription** Perpetual will consume. Note:\n - **Project ID**\n - **Subscription ID** (short name, not the full path)\n4. Confirm messages are arriving (check **Messages** metrics or pull a test message).\n\n<!-- screenshot: GCP Console — Pub/Sub subscription details -->\n\n### Service account and IAM\n\n1. Go to **IAM & Admin → Service accounts → Create service account**.\n2. Name it (e.g. `perpetual-pubsub-consumer`).\n3. Grant the service account **Pub/Sub Subscriber** (`roles/pubsub.subscriber`) on the project, or only on the specific subscription for least privilege.\n4. Create a **JSON key** for the service account (or copy the `private_key` and `client_email` fields).\n5. Record the **service account email**.\n\n<!-- screenshot: GCP IAM — Pub/Sub Subscriber role on subscription -->\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `gcp_pubsub`). |\n| **Allowed URL patterns** | `*.googleapis.com` |\n| **Value** | Service account **private key** PEM (the `private_key` field from the JSON key) |\n\n4. Save the credential.\n\n\n---\n\n## 3. Create the Google Cloud Pub/Sub connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Google Cloud Pub/Sub**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **Service account private key:** select the credential from step 2.\n - **Project ID:** GCP project containing the subscription.\n - **Subscription ID:** subscription name to pull from.\n - **Service account email:** email of the service account (must match the private key).\n - **Max messages per batch** (optional): cap messages per pull (default 10).\n - **Max bytes per batch** (optional): cap total bytes per pull.\n\n5. Check **Deploy** to start the streaming connector after save.\n\n\nThe connector pulls messages, emits raw JSON records (`id`, `data`, `publishTime`), flushes to Firehose, then **acks** messages only after a successful flush.\n\n---\n\n## Operational notes\n\n- **Cross-project subscriptions:** If the subscription lives in a different project than the topic, grant `roles/pubsub.subscriber` in the subscription's project.\n- **At-least-once delivery:** Messages are acked after Firehose flush; failures nack for redelivery.\n- **Lag metric:** Heartbeats report consumer lag based on `publishTime`.\n\n---\n\n## Reference\n\n- [Pub/Sub documentation](https://cloud.google.com/pubsub/docs)\n- [Pub/Sub access control](https://cloud.google.com/pubsub/docs/access-control)\n",
|
|
9
|
+
"setup-docs/google-workspace.md": "Source: https://docs.perpetualsystems.com/setup-docs/google-workspace/\n\n# Google Workspace Audit connector setup\n\nPolls Google Workspace audit activity from the [Admin SDK Reports API](https://developers.google.com/workspace/admin/reports/v1/overview) (`activities.list`) for multiple Workspace applications in one connector.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Google Workspace | Super administrator access to your domain |\n| Google Cloud project | Project with **Admin SDK API** enabled |\n| Service account | With **domain-wide delegation** to a super admin user |\n| Audit logging | Workspace audit logging enabled for the apps you plan to collect |\n\n---\n\n## 1. Create a service account and enable delegation\n\n1. Open the [Google Cloud Console](https://console.cloud.google.com/) and select or create a project.\n2. Go to **APIs & Services → Library**, search for **Admin SDK API**, and **Enable** it.\n3. Go to **APIs & Services → Credentials → Create credentials → Service account**.\n4. Name the account (e.g. `perpetual-workspace-audit`) and finish creation.\n - Google Cloud may prompt for optional **Permissions** (project IAM roles) and **Principals with access**. **Skip both** — this connector does not need GCP project roles. Access comes from domain-wide delegation in Google Admin (below), not from IAM on the Cloud project.\n5. Open the service account → **Keys → Add key → Create new key → JSON**. Store the key securely.\n6. From the JSON key file, note:\n - **`client_id`** (numeric) — used for domain-wide delegation in Google Admin (next section)\n - **`client_email`** and **`private_key`** — used when configuring Perpetual\n\n You do **not** need to open the service account details page for the Client ID; it is already in the JSON as `client_id`.\n\n### Domain-wide delegation\n\n1. In [Google Admin console](https://admin.google.com/), go to **Security → Access and data control → API controls**.\n2. Under **Domain wide delegation**, click **Manage Domain Wide Delegation → Add new**.\n3. Enter the service account **Client ID** (`client_id` from the JSON key).\n4. In **OAuth scopes**, enter:\n\n```\nhttps://www.googleapis.com/auth/admin.reports.audit.readonly\n```\n\n5. Click **Authorize**.\n\n<!-- screenshot: Google Admin — Domain-wide delegation for Admin SDK Reports scope -->\n\nChoose a **Workspace admin email** to impersonate (e.g. `admin@yourcompany.com`). You will enter this as **Delegated admin email** when creating the connector in step 3.\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `google_workspace`). |\n| **Allowed URL patterns** | `*.googleapis.com`, `*.google.com` |\n| **Value** | Service account **private key** PEM from the JSON key (`private_key` field) |\n\n4. Save the credential.\n\nPaste the full PEM block, including `-----BEGIN PRIVATE KEY-----` and `-----END PRIVATE KEY-----`. If the key contains escaped `\\n` sequences (as exported in JSON), paste it as-is — the connector normalizes them.\n\n---\n\n## 3. Create the Google Workspace Audit connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Google Workspace Audit**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **Service account private key:** select the Text credential from step 2.\n - **Service account email:** `client_email` from the same JSON key file (e.g. `perpetual-workspace-audit@project-id.iam.gserviceaccount.com`).\n - **Delegated admin email:** Workspace admin to impersonate via domain-wide delegation (e.g. `admin@yourcompany.com`).\n - **Poll interval (minutes):** default `5`.\n - Enable the Workspace applications you want to monitor (at least one required):\n\n| Setting | API `applicationName` | Notes |\n|---------|----------------------|--------|\n| Admin | `admin` | Admin console activity |\n| Calendar | `calendar` | Calendar audit events |\n| Drive | `drive` | Drive file activity |\n| Login | `login` | Sign-in events |\n| Token | `token` | OAuth token grants |\n| Groups | `groups` | Google Groups changes |\n| Mobile | `mobile` | Mobile device events |\n| Rules | `rules` | DLP rules activity (sensitive) |\n| Keep | `keep` | Google Keep activity |\n| Meet | `meet` | Google Meet activity |\n| Enterprise Groups | `groups_enterprise` | Enterprise Groups |\n| Data Studio | `data_studio` | Looker Studio activity |\n| SAML | `saml` | SAML activity |\n| Chat | `chat` | Google Chat activity (sensitive) |\n\n5. Optionally check **Deploy**, then save.\n\n\nFirst run backfills roughly the **last 24 hours** per enabled application. The Reports API retains audit data for up to **180 days**.\n\n---\n\n## Operational notes\n\n- **Sensitive apps:** `rules` and `chat` streams may include sensitive content metadata; enable only if your retention policy allows it.\n- **Propagation:** Domain-wide delegation can take up to 24 hours to apply across all users.\n- **Multiple domains:** Use a separate service account (or delegated setup) and connector per Google Workspace customer domain.\n\n---\n\n## Reference\n\n- [Reports API overview](https://developers.google.com/workspace/admin/reports/v1/overview)\n- [Reports API scopes](https://developers.google.com/workspace/admin/reports/auth)\n- [Domain-wide delegation](https://developers.google.com/identity/protocols/oauth2/service-account#delegatingauthority)\n",
|
|
10
|
+
"setup-docs/microsoft-defender-vulnerability.md": "Source: https://docs.perpetualsystems.com/setup-docs/microsoft-defender-vulnerability/\n\n# Microsoft Defender Vulnerability Management connector setup\n\nPolls software vulnerability **change** events from the [Microsoft Defender for Endpoint delta export API](https://learn.microsoft.com/en-us/defender-endpoint/api/get-assessment-software-vulnerabilities) (`GET /api/machines/SoftwareVulnerabilityChangesByMachine`). Each record is a per-device vulnerability change with status `New`, `Updated`, or `Fixed`.\n\nThis connector does **not** ingest Defender alerts, incidents, or Advanced Hunting telemetry. Use [Microsoft Graph Security](../microsoft-graph-security/) for alerts/incidents and [Azure Event Hubs](../azure-event-hub/) for Defender XDR event streaming.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Microsoft tenant | Global / commercial, GCC, GCC High, or DoD |\n| Entra administrator | Access to register an application and grant tenant-wide admin consent |\n| Product licenses | Microsoft Defender Vulnerability Management (or Defender for Endpoint plan that includes vulnerability assessment export) |\n| Application details | Directory (tenant) ID, application (client) ID, and client secret |\n\n---\n\n## 1. Register a Microsoft Entra application\n\n1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com/).\n2. Go to **Applications → App registrations → New registration**.\n3. Name the app (for example, `Perpetual Defender Vulnerability Management`).\n4. Choose **Accounts in this organizational directory only**.\n5. Click **Register**. No redirect URI is required.\n6. Copy the **Application (client) ID** and **Directory (tenant) ID** from **Overview**.\n\n### Add Defender for Endpoint application permissions\n\n1. Open **API permissions → Add a permission**.\n2. Choose **APIs my organization uses**, search for **WindowsDefenderATP** (Microsoft Defender for Endpoint), then **Application permissions**.\n3. Add **`Vulnerability.Read.All`** (`Read Threat and Vulnerability Management vulnerability information`).\n4. Click **Grant admin consent for [your organization]**.\n\nDo not add any `ReadWrite` permission. The connector performs only `GET` requests.\n\n### Create a client secret\n\n1. Go to **Certificates & secrets → Client secrets → New client secret**.\n2. Add a description and expiration that match your organization's rotation policy.\n3. Copy the **secret value** immediately. Microsoft displays it only once.\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **OAuth 2.0 Client Credentials**.\n3. Fill in:\n\n| Field | Value |\n|-------|-------|\n| **Name** | Unique identifier using letters, digits, and underscores only (for example, `microsoft_defender_vulnerability`). |\n| **Allowed URL patterns** | Use the value for your Microsoft cloud from the table below. |\n| **Token URL** | Use the URL for your Microsoft cloud and replace `<tenant-id>` with the Directory (tenant) ID from step 1. |\n| **Client ID** | Application (client) ID from step 1. |\n| **Client Secret** | Client secret value from step 1. |\n| **Scopes** | Use the scope for your Microsoft cloud from the table below. |\n\n| Microsoft cloud | Allowed URL patterns | Token URL | Scopes |\n|-----------------|----------------------|-----------|--------|\n| Global / commercial | `*.security.microsoft.com`, `*.securitycenter.microsoft.com`, `*.microsoftonline.com` | `https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token` | `https://api.securitycenter.microsoft.com/.default` |\n| GCC | `*.securitycenter.microsoft.us`, `*.microsoftonline.com` | `https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token` | `https://api-gcc.securitycenter.microsoft.us/.default` |\n| US Government L4 / GCC High | `*.securitycenter.microsoft.us`, `*.microsoftonline.us` | `https://login.microsoftonline.us/<tenant-id>/oauth2/v2.0/token` | `https://api-gov.securitycenter.microsoft.us/.default` |\n| US Government L5 / DoD | `*.securitycenter.microsoft.us`, `*.microsoftonline.us` | `https://login.microsoftonline.us/<tenant-id>/oauth2/v2.0/token` | `https://api-gov.securitycenter.microsoft.us/.default` |\n\n4. Save the credential.\n\nUse the `api.securitycenter.microsoft.com` (or government equivalent) scope even when the data API host is `api.security.microsoft.com`. Some Defender for Endpoint APIs still expect that token audience.\n\nMicrosoft Graph operated by 21Vianet in China is not supported.\n\n---\n\n## 3. Create the Microsoft Defender Vulnerability Management connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Microsoft Defender Vulnerability Management**.\n3. **Connector name:** enter a unique identifier using letters, numbers, and underscores.\n4. **Configure:**\n - **Microsoft Defender for Endpoint API:** select the OAuth credential from step 2.\n - **Poll interval (minutes):** leave the default `5` unless you have a specific reason to change it.\n - **Microsoft cloud:** select the cloud matching the credential and tenant:\n - `global` — Global / commercial\n - `gcc` — US Government GCC\n - `usGovernmentL4` — US Government L4 / GCC High\n - `usGovernmentL5` — US Government L5 / DoD\n\n5. Optionally check **Deploy** to schedule the connector immediately after save.\n6. Save.\n\nThe first run requests vulnerability changes with `sinceTime` roughly the **last 24 hours**. Microsoft generates vulnerability delta batches about every six hours and accepts `sinceTime` at most **14 days** in the past. Subsequent polls advance from the latest `eventTimestamp` seen in a completed query.\n\nBecause polling state is cloud-specific, create a new connector instead of changing **Microsoft cloud** after collection starts.\n\n---\n\n## Operational notes\n\n- **Dataset:** raw change records are emitted to `microsoft.defender.vulnerability.changes`.\n- **Statuses:** each record includes `status` of `New`, `Updated`, or `Fixed`. Fixed events are retained so remediation can be observed downstream.\n- **Overlap:** Microsoft's `sinceTime` window re-includes the six-hour generation bucket that contains the watermark. Delivery is at-least-once; identical change events may appear again after a partial run or watermark overlap.\n- **Not a full inventory snapshot:** this connector uses the delta export API. For a full current assessment export, use Microsoft's full VA export APIs outside this connector.\n- **Rate limits:** Microsoft documents about 30 calls per minute and 1,000 per hour for this API. Large tenants may paginate across multiple connector runs.\n\n---\n\n## Troubleshooting\n\n### `401 Unauthorized` / `403 Forbidden`\n\n- Confirm the credential uses the tenant and login host for the selected cloud.\n- Confirm the scope audience matches the table above (`api.securitycenter.microsoft.com` or the government host), not Microsoft Graph.\n- Confirm `Vulnerability.Read.All` is an **Application** permission with admin consent.\n- Check that the client secret has not expired.\n\n### Empty datasets\n\n- Vulnerability changes only appear after Defender Vulnerability Management assessments produce deltas.\n- Quiet periods between six-hour generation cycles can return empty pages.\n- Confirm the tenant is licensed for vulnerability assessment export.\n\n### `429` or transient `5xx`\n\nThe connector honors `Retry-After` when present and otherwise retries with jittered exponential backoff, up to three attempts when the Lambda deadline permits.\n\n---\n\n## Reference\n\n- [Export software vulnerabilities assessment per device](https://learn.microsoft.com/en-us/defender-endpoint/api/get-assessment-software-vulnerabilities)\n- [Microsoft Defender for Endpoint APIs](https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-list)\n- [Microsoft Defender for Endpoint for US Government customers](https://learn.microsoft.com/en-us/defender-endpoint/gov)\n",
|
|
11
|
+
"setup-docs/microsoft-graph-security.md": "Source: https://docs.perpetualsystems.com/setup-docs/microsoft-graph-security/\n\n# Microsoft Graph Security connector setup\n\nPolls Microsoft Defender alerts and incidents plus Microsoft Secure Score posture from [Microsoft Graph](https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview?view=graph-rest-1.0). The connector is read-only and emits raw Graph objects.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Microsoft tenant | Global / commercial, GCC High, or DoD |\n| Entra administrator | Access to register an application and grant tenant-wide admin consent |\n| Product licenses | Microsoft Defender XDR for incidents; the relevant Defender and Microsoft 365 products for alerts and Secure Score data |\n| Application details | Entra Directory (Tenant) ID, Application (Client) ID, and client secret |\n\nMicrosoft Entra activity, sign-in, and identity-risk logs are intentionally excluded. Route those sources to Event Hubs and configure the [Azure Event Hubs connector](../azure-event-hub/).\n\n---\n\n## 1. Register a Microsoft Entra application\n\n1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com/).\n2. Go to **Applications → App registrations → New registration**.\n3. Name the app (for example, `Perpetual Microsoft Graph Security`).\n4. Choose **Accounts in this organizational directory only**.\n5. Click **Register**. No redirect URI is required.\n6. Copy both values from **Overview**:\n - **Application (Client) ID:** identifies the app registration. Use this value as the Perpetual credential's client ID.\n - **Entra Directory (Tenant) ID:** identifies the Microsoft organization. Use this value in the token URL. Do not use the Application (Client) ID there.\n\n### Add Microsoft Graph application permissions\n\n1. Open **API permissions → Add a permission**.\n2. Choose **Microsoft Graph → Application permissions**. Do not choose delegated permissions.\n3. Add only the permissions required by the streams you plan to enable:\n\n| Perpetual setting | Microsoft Graph API | Application permission | Licensing / availability |\n|-------------------|---------------------|------------------------|--------------------------|\n| **Defender alerts** | `/v1.0/security/alerts_v2` | `SecurityAlert.Read.All` | Requires the relevant Microsoft Defender products to produce alerts. |\n| **Defender incidents** | `/v1.0/security/incidents?$expand=alerts` | `SecurityIncident.Read.All` | Requires Microsoft Defender XDR. Each raw incident includes nested alerts. |\n| **Secure Scores** | `/v1.0/security/secureScores` | `SecurityEvents.Read.All` | Results depend on the Microsoft services licensed and enabled in the tenant. |\n| **Secure Score control profiles** | `/v1.0/security/secureScoreControlProfiles` | `SecurityEvents.Read.All` | Results depend on the Microsoft services licensed and enabled in the tenant. |\n\n4. Click **Grant admin consent for [your organization]**.\n\nDo not add any `ReadWrite` permission. The connector performs only `GET` requests.\n\n### Create a client secret\n\n1. Go to **Certificates & secrets → Client secrets → New client secret**.\n2. Add a description and expiration that match your organization's rotation policy.\n3. Copy the **secret value** immediately. Microsoft displays it only once.\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **OAuth 2.0 Client Credentials**.\n3. Click **Go**.\n4. Fill in:\n\n| Field | Value |\n|-------|-------|\n| **Name** | Unique identifier using letters, digits, and underscores only (for example, `microsoft_graph_security`). |\n| **Allowed URL patterns** | Add each pattern for your Microsoft cloud as a separate entry. Type or paste one pattern, press **Enter**, then add the next pattern. Do not paste a comma-separated list as one entry. |\n| **Token URL** | Copy the complete template for your Microsoft cloud. Replace only `<entra-directory-tenant-id>` with the **Entra Directory (Tenant) ID** from step 1. |\n| **Client ID** | Application (Client) ID from step 1. |\n| **Client Secret** | Client secret value from step 1. |\n| **Scopes** | Add the single exact value for your Microsoft cloud. Do not add spaces, leading or trailing whitespace, commas, or line breaks. |\n\n| Microsoft cloud | Allowed URL pattern entries | Complete token URL template | Exact scope value |\n|-----------------|-----------------------------|-----------------------------|-------------------|\n| Global / commercial | `*.microsoft.com`<br>`*.microsoftonline.com` | `https://login.microsoftonline.com/<entra-directory-tenant-id>/oauth2/v2.0/token` | `https://graph.microsoft.com/.default` |\n| US Government L4 / GCC High | `*.microsoft.us`<br>`*.microsoftonline.us` | `https://login.microsoftonline.us/<entra-directory-tenant-id>/oauth2/v2.0/token` | `https://graph.microsoft.us/.default` |\n| US Government L5 / DoD | `*.microsoft.us`<br>`*.microsoftonline.us` | `https://login.microsoftonline.us/<entra-directory-tenant-id>/oauth2/v2.0/token` | `https://dod-graph.microsoft.us/.default` |\n\n5. Click **Create**. Perpetual tests the token exchange when it saves the credential.\n\nMicrosoft Graph operated by 21Vianet in China is not supported.\n\n---\n\n## 3. Create the Microsoft Graph Security connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Microsoft Graph Security**.\n3. **Connector name:** enter a unique identifier using letters, numbers, and underscores.\n4. **Configure:**\n - **Microsoft Graph API access:** select the OAuth credential from step 2.\n - **Poll interval (minutes):** leave the default `5` unless you have a specific reason to change it.\n - **Microsoft cloud:** select the cloud matching the credential and tenant:\n - `global` — Global / commercial\n - `usGovernmentL4` — US Government L4 / GCC High\n - `usGovernmentL5` — US Government L5 / DoD\n - Enable at least one stream:\n\n| Perpetual setting | Raw dataset | Notes |\n|-------------------|-------------|-------|\n| **Defender alerts** | `microsoft.graph.alerts` | Individual Defender alert objects. |\n| **Defender incidents** | `microsoft.graph.incidents` | Correlated incidents with nested alerts. |\n| **Secure Scores** | `microsoft.graph.secureScores` | Daily Secure Score records. |\n| **Secure Score control profiles** | `microsoft.graph.secureScoreControlProfiles` | Current control-profile snapshots. |\n\n5. Optionally check **Deploy** to schedule the connector immediately after save.\n6. Save.\n\nThe first run backfills roughly the **last 24 hours** for alerts, incidents, and Secure Score. Secure Score control profiles take a complete current-state snapshot.\n\nBecause polling state is cloud-specific, create a new connector instead of changing **Microsoft cloud** after collection starts.\n\nIf both alerts and incidents are enabled, alert content can appear once as an alert record and again inside an expanded incident. This intentional overlap preserves the raw API responses and Microsoft's incident correlation.\n\n---\n\n## Polling behavior\n\n- Recommended schedule: every five minutes.\n- Initial lookback for alerts, incidents, and Secure Score: 24 hours.\n- Alerts and incidents: each completed watermark is re-read with a 15-minute overlap. The connector stores exact `id` plus `lastUpdateDateTime` pairs for that overlap, suppresses an identical or older version, and emits the same ID again when Microsoft reports a newer version.\n- Secure Score: each poll rechecks the previous two days and stores exact score IDs, covering late publication without re-emitting the same daily score.\n- Catch-up: alert and incident watermarks advance by at most one hour per frozen query window; Secure Score advances by at most one day. These bounds keep the exact ID cache limited to a known time range even during a long backfill.\n- Delivery: inclusive time boundaries and at-least-once transport semantics. The state-backed ID cache prevents ordinary overlap and expired-page restart duplicates, but a reset or loss of connector state can replay records.\n- Late-arrival limit: an alert or incident first exposed more than 15 minutes behind the completed watermark is outside the polling overlap. For Microsoft data sources that support Event Hubs, use the Event Hubs ingestion path instead of timestamp polling.\n- Pagination: one page per enabled stream per round so a busy stream cannot starve the others.\n- Incidents: always requested with `$expand=alerts` and emitted as one raw incident object.\n- Secure Score: Microsoft publishes a daily scoring record; the connector treats each record as time-based event data.\n- Secure Score control profiles: full refresh no more than once per UTC day. IDs are retained while a paginated snapshot is active so an expired page restart does not repeat profiles within that snapshot.\n- Disabled streams retain their saved state. Re-enabling a stream resumes its previous position.\n\n## Troubleshooting\n\n### `401 Unauthorized`\n\n- Confirm the credential uses the tenant and login host for the selected cloud.\n- Confirm the `.default` scope uses the selected Graph host, not the Office 365 Management Activity API.\n- Check that the client secret has not expired and that the access token audience matches the selected Graph host.\n\n### `403 Forbidden`\n\n- Compare enabled toggles with the permission matrix and confirm each permission is an **Application** permission.\n- Grant admin consent after changing permissions.\n- Defender alerts and incidents require the underlying Defender products and licenses. Permission consent alone does not produce data.\n\n### Empty datasets\n\n- Confirm the selected feature has produced records within Microsoft's retention period and the connector's time window.\n- Defender alerts and incidents only exist for enabled Defender products.\n- Secure Score content depends on the services enabled and licensed in the tenant.\n\n### `429` or transient `5xx`\n\nThe connector honors `Retry-After` and otherwise retries with jittered exponential backoff, up to three attempts when the Lambda deadline permits. Persistent throttling isolates the affected stream and returns a partial run when another stream made progress.\n\n## Choosing the Microsoft ingestion path\n\nThe Microsoft data surfaces use different APIs and delivery models and can run independently:\n\n- **Microsoft Graph Security** supplies Defender alert and correlated incident objects plus Secure Score posture.\n- **Azure Event Hubs** is the supported path for Microsoft Entra audits, sign-ins, identity-risk logs, and Defender XDR Advanced Hunting event streams. Event Hub records are not byte-for-byte Microsoft Graph objects.\n- **Office 365 Audit** remains necessary for unified audit activity from Exchange, SharePoint, OneDrive, Teams, Purview/DLP, and other Microsoft 365 workloads.\n\nDefender XDR Event Streaming sends Advanced Hunting tables such as `AlertInfo`, `AlertEvidence`, device, email, identity, and cloud-app events. Those tables supplement rather than replace Graph alerts and incidents; Event Streaming does not provide the same correlated incident resource.\n\nThis connector does not include Entra activity or identity risk, Advanced Hunting, remediation or other write operations, threat-intelligence catalogs, Defender inventory, China cloud endpoints, or Microsoft Graph beta APIs.\n\n## Microsoft references\n\n- [Microsoft Graph security API overview](https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview?view=graph-rest-1.0)\n- [Microsoft Secure Score resource](https://learn.microsoft.com/en-us/graph/api/resources/securescore?view=graph-rest-1.0)\n- [Microsoft Entra logs available for streaming](https://learn.microsoft.com/en-us/entra/identity/monitoring-health/concept-diagnostic-settings-logs-options)\n- [Microsoft Defender XDR streaming API](https://learn.microsoft.com/en-us/defender-xdr/streaming-api)\n- [Microsoft Graph national cloud deployments](https://learn.microsoft.com/en-us/graph/deployments)\n- [Microsoft Graph throttling guidance](https://learn.microsoft.com/en-us/graph/throttling)\n",
|
|
12
|
+
"setup-docs/office-365-audit.md": "Source: https://docs.perpetualsystems.com/setup-docs/office-365-audit/\n\n# Microsoft Office 365 Audit connector setup\n\nPolls unified audit logs from the [Office 365 Management Activity API](https://learn.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference) for Exchange, SharePoint, Azure AD, General, and DLP workloads.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Microsoft 365 tenant | Global administrator or equivalent to register apps and grant consent |\n| Unified audit log | Audit logging enabled for the workloads you plan to collect |\n| Entra Directory (Tenant) ID | Directory GUID for the Microsoft 365 organization. This is not the Application (Client) ID. |\n| Region | **Commercial** (`manage.office.com`), **GCC** (`manage-gcc.office.com`), or **GCC High** (`manage.office365.us`) |\n\nThe connector does not support DoD (`manage.protection.apps.mil`).\n\n**One subscription per workload per tenant.** Microsoft allows only one active Management API subscription per content type per tenant. Do not enable the same workload on multiple Perpetual connector instances in the same tenant.\n\n---\n\n## 1. Register an Azure application\n\n1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com/).\n2. Go to **Applications → App registrations → New registration**.\n3. Name the app (e.g. `Perpetual Office 365 Audit`).\n4. Choose **Accounts in this organizational directory only**.\n5. Click **Register** (no redirect URI required).\n6. Copy both values from **Overview**:\n - **Application (Client) ID:** identifies the app registration. Use this value as the Perpetual credential's client ID.\n - **Entra Directory (Tenant) ID:** identifies the Microsoft 365 organization. Use this value in the token URL and connector settings.\n\n<!-- screenshot: Entra app registration — Overview with client and tenant IDs -->\n\n### API permissions\n\n1. Open **API permissions → Add a permission**.\n2. Choose **APIs my organization uses**, search for **Office 365 Management APIs** (not Microsoft Graph).\n3. Add **Application permissions**:\n - `ActivityFeed.Read` — required for all workloads\n - `ActivityFeed.ReadDlp` — required only if enabling the **DLP** workload\n4. Click **Add permissions**.\n5. Click **Grant admin consent for [your organization]**.\n\n<!-- screenshot: Entra API permissions — Office 365 Management APIs with admin consent -->\n\n### Client secret\n\n1. Go to **Certificates & secrets → New client secret**.\n2. Add a description and expiration per your policy.\n3. Copy the **secret value** immediately (shown only once).\n\n---\n\n## 2. Enable audit logging (if needed)\n\n- **Exchange:** Enable mailbox audit logging in Exchange Online (on by default for many tenants).\n- **SharePoint / OneDrive:** Ensure audit logging is enabled in the Microsoft 365 compliance center.\n- **Unified audit log:** Confirm the unified audit log is turned on for your tenant. New tenants may take up to 12 hours before historical content appears.\n\n---\n\n## 3. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **OAuth 2.0 Client Credentials**.\n3. Click **Go**.\n4. Fill in the values for your Microsoft cloud:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `office_365_audit`). |\n| **Allowed URL patterns** | Add each pattern from the table below as a separate entry. Type or paste one pattern, press **Enter**, then add the next pattern. Do not paste a comma-separated list as one entry. |\n| **Token URL** | Copy the complete template from the table below. Replace only `<entra-directory-tenant-id>` with the **Entra Directory (Tenant) ID** from step 1. Do not use the Application (Client) ID. |\n| **Client ID** | Application (Client) ID from step 1 |\n| **Client Secret** | Client secret from step 1 |\n| **Scopes** | Add the single exact value from the table below. Do not add spaces, leading or trailing whitespace, commas, or line breaks. |\n\n| Microsoft cloud | Allowed URL pattern entries | Complete token URL template | Exact scope value |\n|-----------------|-----------------------------|-----------------------------|-------------------|\n| Commercial | `*.office.com`<br>`*.microsoftonline.com` | `https://login.microsoftonline.com/<entra-directory-tenant-id>/oauth2/v2.0/token` | `https://manage.office.com/.default` |\n| GCC | `*.office.com`<br>`*.microsoftonline.com` | `https://login.microsoftonline.com/<entra-directory-tenant-id>/oauth2/v2.0/token` | `https://manage-gcc.office.com/.default` |\n| GCC High | `*.office365.us`<br>`*.microsoftonline.us` | `https://login.microsoftonline.us/<entra-directory-tenant-id>/oauth2/v2.0/token` | `https://manage.office365.us/.default` |\n\n5. Click **Create**. Perpetual tests the token exchange when it saves the credential.\n\n\n---\n\n## 4. Create the Office 365 Audit connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Microsoft Office 365 Audit**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **Office 365 Management API access:** select the credential from step 3.\n - **Poll interval (minutes):** default `5`.\n - **Entra Directory (Tenant) ID:** directory GUID from step 1. Do not enter the Application (Client) ID.\n - **Region:** select `commercial` for Commercial, `gcc` for GCC, or `gccHigh` for GCC High. The region **cannot be changed** after the connector is created.\n - Enable workloads (at least one required):\n\n| Setting | Content type | Notes |\n|---------|--------------|--------|\n| Exchange | `Audit.Exchange` | Mailbox and admin operations |\n| SharePoint | `Audit.SharePoint` | SharePoint and OneDrive file activity |\n| Azure AD | `Audit.AzureActiveDirectory` | Sign-in and directory admin events |\n| General | `Audit.General` | Other workloads (Teams, Power BI, etc.) |\n| DLP | `DLP.All` | Requires `ActivityFeed.ReadDlp` permission |\n\n5. Optionally check **Deploy**, then save.\n\n\nFirst run backfills roughly the **last 24 hours** per enabled workload. The connector starts and renews Management API subscriptions automatically.\n\n---\n\n## Operational notes\n\n- **Duplicate workloads:** If a workload is already subscribed by another tool or connector in the same tenant, disable it on one side before enabling it here.\n- **DLP sensitivity:** DLP events may include sensitive data classifications; restrict access accordingly.\n- **Secret rotation:** Rotate the client secret in Entra, update the Perpetual credential, then remove the old secret.\n\n---\n\n## Reference\n\n- [Get started with Office 365 Management APIs](https://learn.microsoft.com/en-us/office/office-365-management-api/get-started-with-office-365-management-apis)\n- [Management Activity API reference](https://learn.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference)\n",
|
|
13
|
+
"setup-docs/one-password.md": "Source: https://docs.perpetualsystems.com/setup-docs/one-password/\n\n# 1Password connector setup\n\nPolls the [1Password Events API](https://developer.1password.com/docs/events-api/) for sign-in attempts, item usages, and audit events.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| 1Password plan | **Business** or **Enterprise** |\n| Admin access | Account administrator who can create Events Reporting integrations |\n\n---\n\n## 1. Create an Events Reporting integration\n\n1. Sign in to [1Password.com](https://1password.com) as an administrator.\n2. Open **Integrations** in the sidebar. If you already have integrations, open **Directory** first.\n3. Under **Events Reporting**, choose **Other** (or your SIEM vendor if listed).\n4. Enter an integration name (e.g. `Perpetual 1Password`) and click **Add Integration**.\n\n<!-- screenshot: 1Password Events Reporting — Add integration -->\n\n### Issue a bearer token\n\n1. On the integration, click **Add a token** (or issue the first token during setup).\n2. Set a **Token name** (e.g. `Perpetual`).\n3. Choose **Expires After** (many teams use **Never**; shorter expiry requires rotation).\n4. Under **Events to Report**, enable the streams you plan to collect in Perpetual:\n - Sign-in attempts\n - Item usages\n - Audit events\n5. Click **Issue Token**, then **Save in 1Password** to store the token in a vault.\n6. Copy the bearer token value. You will paste it into Perpetual as a Text credential.\n\n<!-- screenshot: 1Password — Issue token with event scopes -->\n\n---\n\n## 2. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `one_password`). |\n| **Allowed URL patterns** | `*.1password.com`, `*.1password.eu`, `*.1password.ca` |\n| **Value** | Bearer token from step 1 |\n\n4. Save the credential.\n\n\n---\n\n## 3. Create the 1Password connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **1Password**.\n3. **Connector name:** unique identifier (letters, numbers, underscores; becomes `connector.<name>`).\n4. **Space:** optional scope for the connector resource.\n5. **Configure:**\n - **1Password API access:** select the credential from step 2.\n - **Poll interval (minutes):** default `5`.\n - **Region:** `us`, `eu`, or `ca` — must match your 1Password account residency.\n - Enable only the streams your token is scoped for:\n\n| Setting | Default | API path | Notes |\n|---------|---------|----------|--------|\n| Sign-in attempts | On | `/api/v2/signinattempts` | Login success/failure, client, location |\n| Item usages | On | `/api/v2/itemusages` | Vault item views, copies, edits |\n| Audit events | On | `/api/v2/auditevents` | Vault, group, user, integration changes |\n\nAt least one stream must stay enabled.\n\n6. Optionally check **Deploy** to schedule the connector immediately after save.\n7. Save.\n\n\nFirst run backfills roughly the **last 24 hours** per enabled stream, then advances cursors on subsequent polls.\n\n---\n\n## Operational notes\n\n- **Token rotation:** Issue a new token in 1Password, update the Perpetual credential, then revoke the old token.\n- **Stream scope:** If a stream is enabled in Perpetual but not on the token, that stream will fail until you issue a new token with the missing event type.\n\n---\n\n## Reference\n\n- [1Password Events API — Get started](https://developer.1password.com/docs/events-api/get-started)\n- [1Password Events API — Authorization](https://developer.1password.com/docs/events-api/authorization)\n- [Events Reporting support guide](https://support.1password.com/events-reporting/)\n",
|
|
14
|
+
"setup-docs/slack-audit.md": "Source: https://docs.perpetualsystems.com/setup-docs/slack-audit/\n\n# Slack Audit connector setup\n\nPolls the [Slack Audit Logs API](https://api.slack.com/admins/audit-logs-call) and, optionally, org-wide team inventory from the Admin API.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Slack plan | **Enterprise Grid** (or Enterprise Select) |\n| Slack app install | **Organization** (org-level app), not workspace-only |\n\n**Commercial Slack only.** This connector calls `slack.com` / `api.slack.com`. [GovSlack](https://slack.com/gov) uses separate endpoints and is not supported yet.\n\nUse the **Slack** connector (workspace install) for messages, access logs, and workspace inventory.\n\n---\n\n## 1. Create a Slack app\n\n1. Open the [Slack API apps dashboard](https://api.slack.com/apps) and sign in.\n2. **Create New App → From scratch**.\n3. Name the app (e.g. `Perpetual Slack Audit`) and pick any workspace in your org.\n4. Click **Create App**.\n\n<!-- screenshot: Slack \"Create New App\" dialog -->\n\n### OAuth scopes\n\n1. **User Token Scopes:** `auditlogs:read`\n2. **Bot Token Scopes:** `users:read` (required for org-level Enterprise Grid apps)\n3. **Features → Org Level Apps → Enable Org-Readiness**\n\nFor **Admin teams list**, also add user scope `admin.teams:read`.\n\n<!-- screenshot: Slack OAuth & Permissions — User Token Scopes and Org Level Apps -->\n\nAudit log access must be approved by an **Owner of the Enterprise organization** during OAuth consent.\n\n---\n\n## 2. Install the app on your organization\n\nFrom **Basic Information**, copy **Client ID** and **Client Secret**.\n\n1. **OAuth & Permissions → Redirect URLs:** add Perpetual’s OAuth redirect URI (from step 3).\n2. **Manage Distribution → Share Your App with Other Workspaces** → activate public distribution (remove hard-coded URLs if prompted).\n3. Open the shareable install link, choose your **organization** (not a single workspace), and allow the app.\n4. Complete OAuth via Perpetual’s **Connect** flow in step 3.\n\n<!-- screenshot: Slack org picker during org-level app install -->\n\n---\n\n## 3. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **OAuth 2.0 Authorization Code**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `slack_audit`). |\n| **Allowed URL patterns** | `*.slack.com` |\n| **Authorization URL** | `https://slack.com/oauth/v2/authorize` |\n| **Token URL** | `https://slack.com/api/oauth.v2.access` |\n| **Client ID / Client Secret** | From Slack **Basic Information** |\n| **User scopes** | `auditlogs:read` (add `admin.teams:read` if enabling Admin teams list) |\n| **Scopes** | Leave empty unless you also need bot scopes |\n\n4. Save the credential. Copy the **Redirect URI** into the Slack app’s **Redirect URLs** if needed.\n5. Click **Connect**, sign in as an **Enterprise org owner**, and approve. Status should show **Connected**.\n\n\n---\n\n## 4. Create the Slack Audit connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Slack Audit**.\n3. **Connector name:** unique identifier (letters, numbers, underscores).\n4. **Configure:**\n - **Slack API access:** select the org-level credential from step 3.\n - **Poll interval (minutes):** default `5` for audit log polling. **Admin teams list** runs at most once per 24 hours.\n - Enable streams:\n\n| Setting | Default | Slack API | Notes |\n|---------|---------|-----------|--------|\n| Audit logs | On | `GET /audit/v1/logs` | Requires `auditlogs:read` and org-level install |\n| Admin teams list | Off | `admin.teams.list` | Requires `admin.teams:read` |\n\nAt least one stream must stay enabled.\n\n5. Optionally check **Deploy**, then save.\n\n\nFirst run backfills roughly the **last 24 hours** of audit events, then advances cursors on subsequent polls.\n\n---\n\n## Reference\n\n- [Slack Audit Logs API](https://api.slack.com/admins/audit-logs-call)\n- [Using the Audit Logs API](https://api.slack.com/admins/audit-logs)\n",
|
|
15
|
+
"setup-docs/slack.md": "Source: https://docs.perpetualsystems.com/setup-docs/slack/\n\n# Slack connector setup\n\nPolls the [Slack Web API](https://api.slack.com/web) for workspace messages, access logs, and daily inventory snapshots.\n\n## What you need first\n\n| Requirement | Details |\n|-------------|---------|\n| Slack plan | Free, Pro, Business+, or Enterprise Grid |\n| Slack app install | **Workspace** install (Install to Workspace) |\n\n**Commercial Slack only.** This connector calls `slack.com` / `api.slack.com`. [GovSlack](https://slack.com/gov) uses separate endpoints and is not supported yet.\n\nFor Enterprise Grid **audit logs**, use the separate **Slack Audit** connector with an org-level Slack app.\n\n---\n\n## 1. Create a Slack app\n\n1. Open the [Slack API apps dashboard](https://api.slack.com/apps) and sign in.\n2. **Create New App → From scratch**.\n3. Name the app (e.g. `Perpetual Slack`) and select the **workspace** you want to monitor.\n4. Click **Create App**.\n\n<!-- screenshot: Slack \"Create New App\" dialog -->\n\n### OAuth scopes\n\nIn the app, go to **OAuth & Permissions → Scopes → User Token Scopes** (not Bot Token Scopes) and add the scopes needed for the streams you will enable.\n\n| Stream(s) in Perpetual | User token scopes |\n|------------------------|-------------------|\n| Messages, Conversations list | `channels:read`, `channels:history` |\n| Access logs | `admin` |\n| Team info | `team:read` |\n| Users list | `users:read`, `users:read.email` |\n| Billable info | `admin` |\n\n**Typical bundle:** \n`admin`, `team:read`, `users:read`, `users:read.email`, `channels:read`, `channels:history`\n\n\n\nSave changes.\n\n---\n\n## 2. Install the Slack app and copy the token\n\n1. **Install App → Install to Workspace** and approve the scopes.\n2. On **OAuth & Permissions**, copy the **User OAuth Token** (`xoxp-…`). You will paste this into Perpetual as a Text credential.\n\n<!-- screenshot: Slack OAuth & Permissions — User OAuth Token after install -->\n\n---\n\n## 3. Perpetual credential\n\n1. Log in to Perpetual. Open **Settings** from the user/org control at the **bottom left** of the sidebar (click your name → **Settings**), then go to **Credentials → New Credential**.\n2. Choose **Text**.\n3. Fill in:\n\n| Field | Value |\n|-------|--------|\n| **Name** | Unique identifier using letters, digits, and underscores only (e.g. `slack`). |\n| **Allowed URL patterns** | `*.slack.com` |\n| **Value** | User OAuth Token from step 2 (`xoxp-…`) |\n\n4. Save the credential.\n\n\n---\n\n## 4. Create the Slack connector\n\n1. Go to **Datasets → Connectors → Create Connector**.\n2. Select **Slack**.\n3. **Connector name:** unique identifier (letters, numbers, underscores; becomes `connector.<name>`).\n4. **Space:** optional scope for the connector resource.\n5. **Configure:**\n - **Slack API access:** select the credential from step 3.\n - **Poll interval (minutes):** default `5`. Controls incremental streams (messages, access logs). Snapshot streams (team info, users list, etc.) run at most once per 24 hours regardless of interval.\n - Enable only the streams you scoped for:\n\n| Setting | Default | Slack API | Notes |\n|---------|---------|-----------|--------|\n| Messages | On | `conversations.list`, `conversations.history`, `conversations.replies` | **Public channels only.** No private channels, DMs, or archived channels. |\n| Access logs | On | `team.accessLogs` | Workspace login events |\n| Team info | On | `team.info` | Daily snapshot |\n| Users list | On | `users.list` | Daily paginated roster |\n| Conversations list | On | `conversations.list` | Daily public channel metadata |\n| Billable info | On | `team.billableInfo` | Daily seat counts |\n\nAt least one stream must stay enabled.\n\n6. Optionally check **Deploy** to schedule the connector immediately after save.\n7. Save.\n\n\nFirst run backfills roughly the **last 24 hours** for time-based streams, then advances cursors on subsequent polls.\n\n---\n\n## Operational notes\n\n- **Rate limits:** Message collection walks every non-archived channel each poll. Large workspaces can exceed [Tier 3 limits](https://api.slack.com/docs/rate-limits) (50+ calls/minute); polls may span multiple invocations. Archive unused channels in Slack.\n- **Multiple workspaces:** Create a separate Slack app, credential, and connector per workspace you monitor.\n\n---\n\n## Reference\n\n- [Slack Web API](https://api.slack.com/web)\n- [Slack API rate limits](https://api.slack.com/docs/rate-limits)\n"
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perpetualsystems/connector-registry",
|
|
3
|
-
"version": "202610.
|
|
3
|
+
"version": "202610.22.1",
|
|
4
4
|
"description": "Built-in connector catalog manifest for Perpetual management plane",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"./build": {
|
|
12
12
|
"types": "./dist/build-entry.d.ts",
|
|
13
13
|
"import": "./dist/build-entry.js"
|
|
14
|
+
},
|
|
15
|
+
"./documentation": {
|
|
16
|
+
"types": "./dist/documentation.d.ts",
|
|
17
|
+
"import": "./dist/documentation.js"
|
|
14
18
|
}
|
|
15
19
|
},
|
|
16
20
|
"main": "./dist/index.js",
|