Skip to content

OpsKnight 2.2.2

Latest

Choose a tag to compare

@Dushyant-rahangdale Dushyant-rahangdale released this 21 Nov 11:11
8431c0b

OpsKnight v2.2.2 is the first published release of the 2.2 line. Its headline is a native AI assistant (MCP) server: Claude, Cursor, ChatGPT and other MCP clients can work with your incidents, on-call and services under each person's own permissions, with human approval for every change. It also adds SCIM group roles, guided single sign-on setup and exact Analytics, along with a redesigned interface and 194 bug fixes.

Note

2.2.0 and 2.2.1 were tagged but never published: their release builds failed in CI before publishing (out of memory, then a stalled emulated arm64 build). 2.2.2 contains everything in 2.2.0 and 2.2.1, with release images now built natively for amd64 and arm64.


🚀 Added & Highlights

1. 🤖 AI Assistants (MCP Server)

  • Native MCP Server: Connect any MCP client to <App URL>/mcp with per-person OAuth sign-in (PKCE, automatic client registration). Assistants see only what the signed-in person can see.
  • Curated Tools & Prompts: Incident, on-call, service, automation, runbook, report and status-page tools, plus guided prompts such as "what did I miss" (oncall_catch_up), "my shifts" (oncall_my_shifts) and "what changed on this service" (service_get_changes).
  • Human-Approved Changes: Configuration changes and runbook runs requested by an assistant are prepared, reviewed by a person in OpsKnight, and only then committed. Every step is audited.
  • Device Sign-In: OAuth device authorization (RFC 8628) for CLIs, SSH sessions and headless servers. Off by default.
  • Operability: Request IDs on every response, MCP metrics and alert rules, a monitoring page, and an MCP_FORCE_DISABLED emergency stop.

2. 🔐 Single Sign-On & SCIM Group Roles

  • Guided SSO Setup: Four steps (Connect provider, Who can sign in, Roles & teams, Test & activate) with per-provider checklists, one-click save-and-test, and an activation preview of whose role and teams change.
  • Role Rules v2 & Group-to-Team Rules: Case-insensitive values, nested claim paths, a default role, and team rules that only ever remove memberships they created.
  • Clear Sign-In Errors: Specific messages with a reference ID tied to the server log instead of "Access denied", and administrator test diagnostics that name the cause.
  • SCIM Group Roles: Map a provisioned group to Admin, Responder, Auditor or User through a preview-and-apply workflow. Opt-in, and it never removes the last active administrator.

3. 📊 Exact Analytics

  • One Exact Metrics Module: Every Analytics figure is now computed from all incidents instead of a sample for large tenants, and after-hours figures respect the business time zone.

4. 🎨 Interface & Reliability

  • Redesigned Interface: Dark mode in every browser, laptop-friendly layouts, redesigned settings pages, and consistent list pages for Incidents, Services and Users.
  • 194 Bug Fixes: Includes all 13 critical findings from a deep audit, for example integration keys created in the UI now authenticate, and escalation, notification and on-call fixes.
  • Security: Next.js 16.4.6 for seven upstream advisories. Outgoing service webhooks require HTTPS by default.
  • Per-Service Automation Rules: Automation settings restore the diagnostic preview opt-in, cleanup retry and readiness policy.

5. 📦 Release Engineering

  • Native Multi-Arch Images: amd64 and arm64 images build on native runners, each with an SBOM and provenance, merged into one multi-architecture image.
  • Agent Image: The JavaScript bundle is built once on the build host; only the runtime layer is per-architecture.

📦 Upgrading to v2.2.2

Warning

Always create a full backup of your PostgreSQL database before upgrading.
Upgrading from 2.1.x applies 68 database migrations, including backfills and one CREATE INDEX CONCURRENTLY on Incident. Allow a maintenance window and read the Upgrade to 2.2 guide first.
If running PgBouncer or connection poolers, ensure DIRECT_DATABASE_URL points directly to PostgreSQL port 5432 so migrations run successfully.

Behaviour changes to know:

  • Analytics numbers change on purpose: large installations see exact figures instead of sampled ones.
  • SCIM role mapping is opt-in; no SCIM account changes role until an administrator applies a group mapping.
  • Outgoing service webhooks require HTTPS. Installs that already use http:// webhooks have the allowance turned on automatically.
  • A snooze without an end time now ends after 60 minutes.

Docker / Compose

# 1. Pull the certified v2.2.2 release image
docker pull ghcr.io/opsknight-labs/opsknight:2.2.2

# 2. Restart the stack
docker compose down && docker compose up -d

Kubernetes / Helm

# 1. Update repository
helm repo update

# 2. Upgrade release with v2.2.2 image tag
helm upgrade opsknight opsknight/opsknight \
  --set image.tag=2.2.2 \
  --reuse-values

Docker Swarm

# 1. Pull release image across nodes
docker pull ghcr.io/opsknight-labs/opsknight:2.2.2

# 2. Deploy updated stack
OPSKNIGHT_IMAGE=ghcr.io/opsknight-labs/opsknight:2.2.2 ./deploy/swarm/scripts/deploy.sh

Post-Upgrade Verification Checklist

  1. Verify Health Center: Open Administration → Health Center and confirm all database, worker, and scheduler indicators report green.
  2. Synthetic Incident Test: Send a test event to /api/events and confirm it is accepted (202 with a receiptId) and opens an incident.
  3. Lifecycle Confirmation: Acknowledge and resolve the incident to verify state transitions, notifications and audit log entries.
  4. MCP Connection: Connect an MCP client to <App URL>/mcp, sign in, and run Check connection from Settings → Integrations → MCP.
  5. Single Sign-On: If SSO is enabled, sign in through your identity provider and confirm roles and teams are as expected.
  6. Runbook Agent Check: Verify connected agents in Settings → Runbooks → Agents report healthy heartbeats.

Known Limitations

  • The Analytics cache is per process: Refresh clears only the replica that served the request.
  • Next.js drops a route handler's Content-Length header, so export downloads show no size or progress (they remain verifiable through X-Content-SHA256).
  • High-throughput event ingestion is not yet certified. Optional Secrets Store CSI support is included but not certified.

Full Changelog · Documentation · Upgrade Guide · MCP Guide

Release certification

  • Release image index digest: sha256:3eeae037ce1e92615cf7945ded2026310d0f90871463cfdf0187c16ae4eedf4d
  • PgBouncer image digest: sha256:2b9137133d5698f7316308542446c23cd4e9754b081fa33b478684cec253c1bf
  • Agent image digest: sha256:11685deb9f7e4cc6dd3bdaaedec56316328af67a54c0bbd3f14e90fafd6aee7a