Skip to content

v0.5.0 — Goodnight Check

Choose a tag to compare

@Nikolasel Nikolasel released this 24 Oct 14:43
· 40 commits to main since this release
Immutable release. Only release title and notes can be modified.
e6f852c

Goodnight Check v0.5.0

Goodnight Check is the new name of NSC. v0.5.0 is the first release under the new name and the first without -beta. Every v0.4.x-beta installation upgrades to it in place, with no migration script.

What changed

The new name

  • The product is now Goodnight Check, or Check for short. The app, the notification mails, the exports and the documentation use the new name.
  • The repository is now goodnightsec/gn-check. GitHub redirects the old URL, but clones should update their remote: git remote set-url origin https://github.com/goodnightsec/gn-check.git.
  • The product page is now www.goodnightsec.com/check/. The old host redirects there.
  • The images are now ghcr.io/goodnightsec/gn-check-backend and ghcr.io/goodnightsec/gn-check-scanner. Because v0.5.0 has no pre-release suffix, it is published as 0.5.0, 0.5, latest and sha-<short>.
  • The sample OIDC client in .env.example and the development Keycloak realm is now gn-check-backend, and the realm's display name is "Goodnight Check". Installations that configure their own Keycloak or OIDC client keep their client. For the bundled development Compose stack, see step 5 under How to upgrade.
  • Some identifiers keep the old short name nsc on purpose, because renaming them would break installations, clients or stored data: the /var/lib/nsc data directory, the Keycloak realm nsc, the *.nsc-bundle.* file names, the nsc_ token prefix, the session cookies, the X-NSC-Export-* headers, the export fields and the browser storage keys. The default bucket stays nuclei-raw. Nothing in an installation needs renaming.
  • Supported versions: v0.5.0 and newer (SECURITY.md). The beta versions get no more security fixes.

Admins can switch the upstream template source

  • Admins can change the repository and ref that the template catalog is synced from, under Templates → Sync → Change source: the Stable channel (latest, the highest stable release tag), Preview (the main branch), or a custom ref (a tag, branch or commit). Another https:// repository, such as a private mirror, works too. Credentials in the repository URL are stored but never shown.
  • Before saving, a dry run shows how many templates would be added, changed, restored and removed, which template sets would lose members, and the scan policies and schedules that use those sets.
  • Saving checks the candidate against the fetched repository first. It refuses an unreachable repository, an unknown ref, or a catalog whose template IDs would shadow a custom template. Then it starts a sync right away.
  • Switching keeps template IDs, set memberships, exclusions and history. A template that returns upstream is restored. An empty repository disables upstream sync. Custom templates and the distribution to scanner nodes keep working.
  • The source is stored in the database (migration 0006). TEMPLATE_SYNC_REPO and TEMPLATE_SYNC_REF only seed it once, at the first start. After that the stored value wins, and a different environment value only logs a note. Settings → Environment configuration marks both variables as seed-only. TEMPLATE_SYNC_INTERVAL and TEMPLATE_SYNC_DIR stay environment settings. See Configuration.
  • The sync history shows the source each run read, how many templates it restored, and where the source was switched.
  • Templates that the current source no longer serves are marked unavailable in the template details and the set editor. Template sets show how many of their members are unavailable. Scans that use such a set are refused until those templates return or the selection is updated.
  • API: new admin endpoints PUT /api/templates/sync/config and POST /api/templates/sync/preview, both audited. There are new fields on GET /api/templates/sync, on the sync runs and on template sets (unavailable_members). See the API reference.

Other changes

  • If a page fails to render, the app shows an error panel for that page instead of failing as a whole. Navigating to another page clears it.
  • Dependency updates, among them go-git, minio-go and go-mail. As hardening, go-git 5.19.3 keeps credentials from being sent to another host on a redirect and redacts passwords in URLs from error messages.
  • SECURITY.md adds security@goodnightsec.com as a second way to report a vulnerability privately and states the response times. Code of conduct reports go to info@goodnightsec.com.
  • Contributions are accepted under AGPL-3.0-or-later and need a DCO sign-off on every commit (Contributing).

What users notice

  • The look. The app header shows the Goodnight Check lockup. The login screen and the mobile navigation show the GoodnightSec mark, which is also the new favicon. The page title, the login screen and Settings say Goodnight Check.
  • Notification mails. The header bar shows the Goodnight Check lockup as an inline image, with "Goodnight Check" as alt text. The mail still loads nothing from the network. The subject now starts with [Goodnight Check] instead of [NSC], so update any mail filters that match the old prefix.
  • Scan bundles. New exports carry the format marker goodnightsec/gn-check/scan-bundle. Bundles exported from a v0.4.x-beta release still import.
  • What keeps working. Sessions, service-account tokens, export clients and UI settings keep working after the upgrade.

How to upgrade

From v0.4.x-beta, in place, as described in Upgrading from NSC:

  1. Point both services at the new images, ghcr.io/goodnightsec/gn-check-backend:0.5.0 and ghcr.io/goodnightsec/gn-check-scanner:0.5.0.
  2. Upgrade the backend and the scanner together.
  3. Keep the database, the bucket and the environment as they are. At its first start, the backend applies migration 0006 and seeds the template source from TEMPLATE_SYNC_REPO and TEMPLATE_SYNC_REF. After that, change the source under Templates → Sync, not in the environment.
  4. With the Docker Compose stack from this repository, keep your Compose project name. The project is now named gn-check, and Compose names volumes after the project. Without this step, Postgres, Garage and the template cache start with new, empty volumes. docker volume ls shows your current name as the prefix of <name>_pgdata. Before upgrading, set COMPOSE_PROJECT_NAME=<name> in .env, which every later command picks up. docker compose -p <name> works too, but only if you pass it on every command. Alternatively, with the stack down, copy each volume (pgdata, garagemeta, garagedata, templatecache) into its new gn-check_* volume, for example docker run --rm -v <name>_pgdata:/from -v gn-check_pgdata:/to alpine cp -a /from/. /to/. See Deployment.
  5. With the bundled development Compose stack, recreate Keycloak: docker compose up -d --force-recreate keycloak. The backend there now uses the client gn-check-backend, and the existing Keycloak container still holds the old client. Recreating it re-imports the development realm with the client gn-check-backend, demo users included; other changes made in that development Keycloak are reset. Installations that configure their own Keycloak or OIDC client keep their client and need no change.
  6. Update the remote of your clones to https://github.com/goodnightsec/gn-check.git.

On a deployment with a read-only root file system, keep the system temp directory (/tmp) writable. A dry run against a different template repository clones that repository there.

After v0.5.0 has migrated the database, a v0.4.x-beta backend refuses to start on it, as with any database migrated by a newer release.

Known limitations

  • Databases from the alpha versions (before v0.4.0-beta) still can't be upgraded, as since v0.4.0-beta. The upgrade path is from v0.4.x-beta. v0.5.0 still refuses to start on an alpha database, but it no longer has a message of its own for one: it reports unsupported migration versions.
  • A v0.4.x-beta release can't import a scan bundle exported by v0.5.0, because it doesn't know the new format marker.
  • Templates on the Preview channel may need a newer Nuclei engine than the one pinned in the scanner image.
  • Switching to a different repository replaces the backend's clone cache, so the first sync after the switch does a full clone again.
  • The scanner image bundles Nuclei 3.11.1 and naabu 2.6.1, the newest upstream releases; v0.4.7-beta shipped the same versions. Image scanners such as Trivy report known vulnerabilities in them whose fixes are not yet in a Nuclei or naabu release:
    • naabu, built with Go 1.24.0: one critical, CVE-2025-68121 in the Go standard library, and 45 high, in the Go standard library and in golang.org/x/crypto, golang.org/x/net, golang.org/x/text and github.com/klauspost/compress.
    • Nuclei, built with Go 1.26.5: 25 high, in the Go standard library and in github.com/getkin/kin-openapi, github.com/go-git/go-git/v5, google.golang.org/grpc, golang.org/x/crypto, golang.org/x/net, golang.org/x/mod and golang.org/x/text.

Security fixes

  • golang.org/x/crypto 0.57.0 fixes CVE-2026-56855 and CVE-2026-78662, a denial of service in the SSH client. Check was affected only when TEMPLATE_SYNC_REPO used an ssh:// URL.
  • v0.5.0 is built with Go 1.27.3, which fixes these vulnerabilities in the Go standard library. The build of v0.4.7-beta, made with an earlier Go, was affected by them:
    • GO-2026-6603 / CVE-2026-78659: HTTP/2 server in net/http, memory exhaustion through a Trailer header that declares many fields.
    • GO-2026-6610 / CVE-2026-78660: HTTP/2 client in net/http accepts responses with malformed framing headers, which a reverse proxy can pass on to HTTP/1 clients.
    • GO-2026-6611 / CVE-2026-78669: HTTP/2 in net/http, excessive CPU use through many small SETTINGS frames.
    • GO-2026-6612 / CVE-2026-78663: HTTP/2 server in net/http, bypass of the connection-level flow control limit.
    • GO-2026-6617 / CVE-2026-97032: HTTP/2 server in net/http, crash through concurrent changes to the header table size.
    • GO-2026-6809 / CVE-2026-111943: crypto/x509, Certificate.Verify accepts known intermediate certificates that are no longer trusted.