Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 08:17
· 68 commits to main since this release

The first release on npm (npx gridcity).

Upcoming, fixes and investigation

  • Upcoming panel (U): certificates and domains that expire (RDAP via IANA's directory),
    disks that will fill up (trend since the last cleanup), and backups that are late, missing or too
    small (a file pattern over SSH or a bucket prefix). Alerts 30, 7 and 1 days ahead.
  • Vulnerable packages: every server's packages checked against OSV.dev every 12 hours; one
    finding per server with the fixable ones first, scored by CVSS 3.1.
  • One-click fixes from findings: block an attacker (Fail2ban, CrowdSec or iptables), lock an
    account, block public access on a bucket. Each shows the exact command, needs a second click,
    runs through sudo -n, is audited and re-checked at once.
  • Runbooks for findings, and three new read-only ones: recent logins and failures, accounts
    with power, CrowdSec and Fail2ban status.
  • What happened: the incident timeline around any moment (status, findings, commands, AI
    actions, changes, alerts), from a finding or time travel.
  • Log search (L) across every server's journal, /var/log files and container logs at once.
  • Containers and Kubernetes: crash loops, OOM kills, unhealthy containers and pods in
    trouble become findings; the HUD shows CPU, memory and restarts per container.
  • Cloud costs (C): month to date, forecast, top services and 30 days per AWS account, with
    alerts on spikes; off until turned on (Cost Explorer charges per request).
  • Fix: a probe flapping around "degraded" no longer sends an alert every minute (10-minute
    window).

Security: see who is attacking what

  • Attacks and exposures on the buildings: a pulsing red ring around anything under a high or
    critical attack, an amber ring for medium ones, a shield in the toolbar with the count, and a
    Security panel (S) with every finding worst first: what was seen, the attacker's address, how
    many times, whether it is blocked, and what to do. A security section in each building's HUD,
    attack bars in time travel, and security_findings for AI agents.
  • Readable from across the city: an attack strikes down the building from the roof and a ring
    spreads from its base; "Show building" flies there and lights the building up for a moment.
  • SSH server is the first choice in the Connect dialog.
  • Built-in checks over the existing SSH connection, read-only and with nothing to install: SSH
    brute force, a login right after failed attempts (a guessed password), logins from new addresses,
    a second root account, new accounts, new open ports and refused sudo. The first check learns what
    is normal; Mark as expected teaches it more.
  • CrowdSec and Fail2ban: what they caught appears on the building; the same attacker seen by
    several detectors is one finding, "blocked" only when something enforces it (a CrowdSec ban
    without a bouncer is reported as not blocked). Reading them through sudo -n for just those
    two commands.
  • Exposures: public buckets (policy or ACL), buckets without a public access block, RDS
    databases open to the internet (public and a security group open to 0.0.0.0/0), Redis and
    MongoDB that need no password.
  • Alerts: high and critical findings go to every channel with "Attacks" on, and an "Over:"
    message follows when they end, even across restarts. Every channel now retries a delivery that
    failed for a moment (server error, rate limit, timeout).
  • Attack lab (compose.security-lab.yaml, node scripts/security-lab.mjs): a Debian SSH
    server with CrowdSec and Fail2ban and two attackers on a private network, running real brute
    force, password guessing, backdoor accounts and a new port, plus exposures on LocalStack and Moto.
  • Licensing: CrowdSec, Fail2ban and the rest are used only through their own commands and APIs; no
    code of theirs is included.

Alerts that reach you with the app closed

  • Browser notifications by Web Push: turn them on once per browser and alerts arrive as
    Windows, macOS or Android notifications even with the GRIDCITY tab closed. Offline alerts stay on
    screen; clicking one opens the city.
  • Alert channels: email over any SMTP server, Slack, Discord, Mattermost, Google Chat,
    Telegram, Microsoft Teams, ntfy, Pushover, Gotify, and Apprise for 100+ more. Each channel picks
    offline, degraded and recovered, can be tested before saving, paused or removed, and shows when it
    last delivered and its last error. Settings are encrypted in the vault; secrets never come back.
  • The old single webhook moves into the channel list; ALERT_WEBHOOK_URL shows as a read-only
    channel.
  • Fix: a "back online" alert that came within a minute of the offline alert was dropped, leaving
    people to believe the service was still down. A recovery now always closes a sent alert.
  • The app has an icon (browser tab and notifications).

Easier to find your way

  • A toolbar at the top right opens Connect, the Doctor, time travel, history, runbooks, the audit
    log, the AI agent and Settings with one click (the keys still work), with tooltips naming each
    shortcut. Opening a panel there closes the other side panels instead of stacking them.
  • A bell shows whether alerts reach anyone while the app is closed; an amber dot means none do.
  • Next to the project name, a fleet pulse counts what is online, degraded, offline and unknown;
    click it to open the Doctor.
  • Building names stay readable in crowded districts: outlined, never hidden behind the building in
    front, and long names shortened in the middle.

Manage: every database, Redis and bucket becomes a workspace

  • Focus a building and press M (or Ctrl+K → Manage …). Read-only until you click
    Allow changes…; read-only is enforced by the server and the database itself (read-only or
    rolled-back transactions, read-only SQLite files, Redis's own write flags), and every change is
    written to the audit log.
  • One SQL manager for PostgreSQL, MySQL/MariaDB, SQL Server and SQLite: schema tree, rows with
    paging, sort and search, inline editing, insert and delete by primary key (never more than one
    row), structure, relationships both ways, DDL, and a query editor with schema completion,
    Explain and history. Results stop at 1000 rows without loading the rest.
  • Redis: SCAN-based key browser with an editor per type, TTL and rename, a console that asks
    before dangerous commands, timed MONITOR recording, slow log, command stats, clients, INFO.
  • MongoDB: find with Extended JSON filters, edit, insert and delete documents, aggregation,
    indexes, running operations.
  • Object storage (S3, Spaces, MinIO, R2, LocalStack): browse, upload with progress and drag
    and drop, download, delete, copy and move, tags, previews, bucket policy, CORS, versioning, ACL,
    encryption, usage per folder.
  • compose.tools.yaml: Adminer, CloudBeaver and Redis Commander next to GRIDCITY, for deep
    administration (localhost only, nothing to configure).

Fixes found while testing against LocalStack, Moto and real databases

  • AWS RDS and load balancers accept an API endpoint (VPC endpoints, LocalStack, Moto).
  • A load balancer without target groups is no longer shown as degraded.
  • MongoDB and SQL Server no longer report their own background work as slow queries.
  • TCP probes read banners of binary protocols (MySQL greets with "8.4.13 …", not "J").
  • The Doctor explains HTTP status/body mismatches, TCP banner mismatches and "signed in, but
    nothing to watch", and a proven fix that sets a setting without a form field (Mongo
    authSource) now applies.
  • A server restart behind a proxy no longer shows "Session expired"; the agent socket stops
    retrying a dead session.
  • The empty-city card no longer covers databases and buckets, and offers to connect one.
  • Forms keep what you typed when you click outside them; the test result scrolls into view; the
    Docker "localhost" hint appears only when the app runs in a container.
  • The command palette ranks actions above loosely matching runbooks.