Skip to content

Keelson v0.18.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 08:11
· 10 commits to main since this release
  • Share a Keelson run from a clone with your local network. Started on every interface (--host 0.0.0.0 or KEELSON_HOST=0.0.0.0), Keelson now prints the addresses other machines on the network open, under Network, instead of only localhost. In development, npm run dev -- --host does the same for the API and the page with hot reload (add --mock for mock data, or an address after --host to share on that one only). The default is still this machine only. It is plain HTTP: use it on a network you trust, or put a proxy with TLS in front.
  • GitLab is the seventh platform, on gitlab.com or your own instance. Add a top-level group with the address you open GitLab at and an access token that has only the read_api scope (a group access token with the Owner role fits best); Keelson sends nothing but GET requests to that address's /api/v4. It checks whether the group requires two-factor authentication, how many owners it has, and whether projects can be shared with outside groups; default branches that developers can push to without a merge request, that take force pushes, where an approval survives new commits or the author can approve, and where maintainers push past merge requests; webhooks over plain HTTP or without certificate verification; deploy keys that can push, and deploy tokens that can write and never expire. Projects in subgroups are included, and all of them are on the Repositories page. CI/CD variables are never read, because GitLab's API returns their values. GitLab tokens expire: the Accounts page shows the date.
  • GitLab dependencies, CI includes and images. With Syft, Grype and Grant installed, each project gets a software bill of materials from its manifest and lock files (never the code), on the Dependencies page with GitHub's and Gitea's, and the same findings: exploited, vulnerable and malicious packages, missing lock files and strong copyleft licenses. Where GitHub's check is on third-party actions, GitLab's is on what a pipeline includes from outside the group: another project's file by a branch or tag, a CI/CD component at a moving version, or a file at a web address, all of which run with the project's CI/CD variables. Container registry images are listed on the Images page with the project that builds them and where they run; images in public projects are scanned with Trivy, and ones in private or internal projects are listed only, because GitLab's registry would need the access token itself.
  • GitLab joins the checks that span platforms. A DNS record on Cloudflare, Route 53 or Alibaba Cloud DNS that points at GitLab Pages when no Pages site in the entity's groups uses that hostname (XP-028, XP-034, XP-033). On AWS and Alibaba Cloud, a role that GitLab CI in any project can assume (AID-016, LID-016), one that trusts GitLab groups outside the entity (XP-029, XP-031), and one that anyone who can push to a project can assume, because its trust allows any branch or a default branch developers push to directly (XP-030, XP-032). These work for gitlab.com and for your own instance, once one of its groups is connected. Sonar and a finding's "In your infrastructure" know GitLab Pages domains too.
  • Gitea is the sixth platform, for the repositories you host yourself. Add an organization with the address you open your Gitea at and an access token that has read scopes only (organization, repository and user); Keelson sends nothing but GET requests to that address's /api/v1, and never follows a redirect. It checks members who sign in without two-factor authentication (rated higher for owners; this needs a site administrator's token with the admin read scope, and is skipped without it), how many people own the organization, teams other than the owners that administer every repository, people outside the organization who can push to or administer a repository, deploy keys that can push, default branches that take pushes without a pull request, rules that allow force pushes, let an approval survive new commits or let administrators merge past them, webhooks that deliver over plain HTTP, private repositories a push mirror sends to another server, and public repositories the instance hands to anyone without a sign-in, which Keelson confirms with one request that carries no token. Its repositories are on the Repositories page beside GitHub's. A webhook keeps only the scheme and host of its address, never its secret or authorization header, and a push mirror only the host it pushes to. Forgejo serves the same API. Container packages and Gitea Actions' own settings aren't read yet.
  • Dependencies of Gitea repositories. With Syft, Grype and Grant installed where Keelson runs, a Gitea scan keeps a software bill of materials for each repository, as a GitHub scan does: it lists the default branch's files, fetches only manifest and lock files, workflows (from .gitea/workflows and .github/workflows) and Dockerfiles, never the code, and makes an SBOM again only when one of them changes. Findings are the same six as GitHub's, under Gitea's IDs (TED-001 to TED-006): a dependency attackers are exploiting, one with a critical or high vulnerability, a known malicious package, workflows that run third-party actions by a tag, a project without a lock file, and a strong copyleft license. Gitea repositories and their packages are on the Dependencies page with GitHub's, and each has its own page with its projects, packages and SBOM download. A repository the instance mirrors from elsewhere isn't read.
  • A Gitea that only answers inside your network works through Networks. Choose a network for Gitea on the Networks page: a proxy into the office network or VPN, and your own authority's certificate when the instance uses one. A network's Test now also asks each Gitea instance a connected organization is on.
  • Scan a platform through your VPN or zero trust network. A new Networks page (under Manage, for admins) holds the ways Keelson's requests can leave: a proxy into Netskope, Cloudflare WARP, Zscaler, an OpenVPN or WireGuard tunnel, Tailscale or anything else that offers an HTTP or SOCKS5 proxy, and the root certificate to trust when the network inspects TLS. Each platform is then set to a network, to this machine's own connection, or to the default, so a GitHub organization with an IP allow list, an AWS account tied to a source address or a registry with an access list is scanned from an address it accepts while everything else goes out as before. A platform's network carries its scans, adding its accounts and pulling its container images; the default also carries what Keelson reads for itself (vulnerability catalogs, scanners' databases, update checks, alerts). The form shows how to give Keelson a route into each kind of network and fills in its usual address. Keelson doesn't run a VPN client itself: a tunnel would carry every platform's requests, and needs privileges the image doesn't have. See docs/networks.md.
  • Test a network before you rely on it. Test sends one request to each platform through a network, without a credential, and shows which answered, how fast, and the address requests come out at, which is the one to add to a platform's allow list. It works on settings you haven't saved yet. Before every scan through a network Keelson asks the platform one thing the same way: when the proxy is down, refuses the sign-in, or a certificate isn't trusted because the network's own is missing, the scan stops at once and says so in plain words, instead of finishing with every source unread.
  • A network's secrets stay put. A proxy's password is kept with your platform credentials, outside the database, and no page, API answer, log line or error shows it. A network's certificate is trusted only for requests through that network, never for the rest of Keelson, and a private key pasted by mistake is refused. Only admins see or change networks.

Install: docker pull ghcr.io/r4reetik/keelson:0.18.0. Upgrading? See docs/upgrading.md.