Files
AiSOC/plugins/dropbox
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
..