Files
AiSOC/plugins/datadog/plugin.yaml
T
Beenu AroraandBeenu Arora 5b8a510193 feat(connectors): T4 wave-3 marketplace scaffolding + harden 6 connectors (v8.0) (#333)
* feat(connectors): land T4 wave-3 marketplace scaffolding + harden 6 connectors (v8.0)

Closes the v8.0 north-star plan gap for T4 wave-3: the seven connector
*classes* (abnormal_security, box, datadog, dropbox, lacework, oci,
sublime_security) were already shipped, but the surrounding bits the
plan demands ("green CI + auto-generated docs + visible in
/marketplace") were missing for six of seven.

What lands here

- plugins/<connector>/plugin.yaml x 6 - config_schema mirroring each
  connector's ConnectorSchema, secrets marked, /marketplace-renderable.
  Lacework already had one; matched its conventions.
- apps/docs/docs/connectors/<connector>.md x 6 - full setup walkthroughs
  (auth flow, severity ladder, capabilities, polling, troubleshooting).
  Severity tables match the code byte-for-byte (verified against each
  module's HIGH_RISK_* / SEVERITY_* dicts).
- services/connectors/tests/test_wave3_connectors.py - 39 tests across
  the seven connectors covering: schema sanity (required fields,
  secrets marked, category set), capabilities tuple, normalize()
  severity ladder for each tier, test_connection() happy path, and
  fetch_alerts() error swallowing (HTTP 5xx + network exceptions).

Bug fixes uncovered by the test suite

- abnormal_security.fetch_alerts now swallows httpx.HTTPError /
  httpx.InvalidURL on the per-request boundary; previously a DNS or
  TLS hiccup would crash the polling loop.
- datadog._fetch_logs / _fetch_events: same defensive treatment.
- box, dropbox, sublime_security, oci: same per-request try/except
  wrapping the GET/POST so a network blip stops paginating cleanly
  rather than crashing.

Test results

  cd services/connectors && poetry run pytest tests/
  633 passed in 2.99s   # including the new 39

Plan reference

  plans/aisoc_v8.0_north_star_plan_1dee8c63.plan.md  ->  T4 wave-3
  ("the last 5-6 connectors", P1, S-M effort)

* chore(marketplace): rebuild index.json after wave-3 connector plugins

CI run 28283993657 failed with:

    marketplace/index.json is stale. Run: pnpm marketplace:build

We added seven new wave-3 plugin manifests (`abnormal_security`,
`box`, `datadog`, `dropbox`, `oci`, plus the already-shipped
`sublime_security`) but never regenerated the index. Running
`python3 scripts/build_marketplace.py` updates the on-disk index
and its public mirror.

Stats delta:

    plugins: 56 → 63
    total:   7116 → 7123

Verified by re-running `python3 scripts/build_marketplace.py --check`
locally (now reports `up to date (7123 items)`). All six newly
registered plugins appear under `type=plugin` with `tier=stable`.

No code change; only the generated index file and its public copy
under `apps/web/public/marketplace/index.json`.

---------

Co-authored-by: Beenu Arora <beenu@MacBook-Pro.local>
2026-06-27 14:25:16 +05:30

48 lines
1.7 KiB
YAML

id: datadog
name: Datadog Connector (Logs + APM)
version: "1.0.0"
plugin_type: connector
tier: stable
description: >
Datadog observability connector. Streams from the Logs Search v2 API
(/api/v2/logs/events/search) or the Events v1 API (/api/v1/events,
APM monitor alerts + custom events) depending on the selected stream.
Normalises results to the AiSOC alert shape with severity derived
from log status or monitor alert_type. For Cloud SIEM Security
Signals use the separate datadog_cloud_siem connector.
author: AiSOC Core Team
tags: [siem, logs, datadog, apm, observability]
homepage: https://github.com/beenuar/AiSOC/tree/main/services/connectors/app/connectors/datadog.py
license: MIT
min_aisoc_version: "4.0.0"
config_schema:
type: object
required: [site, api_key, application_key]
properties:
site:
type: string
description: >
Datadog regional site code. One of us1 (datadoghq.com),
us3 (us3.datadoghq.com), us5 (us5.datadoghq.com),
eu1 (datadoghq.eu), ap1 (ap1.datadoghq.com),
us1-fed (ddog-gov.com).
mode:
type: string
description: >
Stream selector. One of "logs" (Logs Search v2) or "events"
(Events v1 — APM monitor alerts + custom events). Defaults
to "logs".
query:
type: string
description: >
Datadog query string applied to the search. Defaults to "*".
Use this to filter to a service / env / status (e.g. "service:nginx status:error").
api_key:
type: string
description: Datadog API key (Org Settings → API Keys).
secret: true
application_key:
type: string
description: Datadog Application key (Personal Settings → Application Keys).
secret: true