Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 36 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,49 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## [Unreleased]

### Upgrade notes
- **The heavy image's Socket Python CLI changes its exit codes.** It moves from
2.12.0 to 2.13.2, and 2.13.0 exits `2` for invalid flags (was `1`), `130` for
Ctrl+C (was `2`), and applies `--disable-blocking` and
`--exit-code-on-api-error` to missing tokens and other setup failures.
`--strict-blocking` now also fails on existing blocking alerts. Check any
pipeline step that runs `socketcli` from the heavy image and matches on an
exit code; see the CLI's
[upgrade guidance](https://github.com/SocketDev/socket-python-cli#upgrading-to-2130).
- **Socket Tier 1 rejects four options in `socket_additional_params` that it
used to ignore.** Socket npm CLI 1.19.0 makes `socket scan reach` fail on
`--ignore-unresolved`, `--exclude-configs`, `--include-configs` and
`--verbose`, because each could swallow the scan target. Remove them from
`socket_additional_params`, or Tier 1 fails.
- **The heavy image's Socket Python CLI changes its exit codes and blocks on
more findings.** It moves from 2.12.0 to 2.16.0. Check any pipeline step that
runs `socketcli` from the heavy image and matches on an exit code or uses
`--strict-blocking`; see the CLI's
[upgrade guidance](https://github.com/SocketDev/socket-python-cli#upgrading-from-212-or-earlier).
Socket Basics does not run `socketcli` itself, so its own exit codes are
unchanged.
- 2.13.0 exits `2` for invalid flags (was `1`), `130` for Ctrl+C (was `2`),
and applies `--disable-blocking` and `--exit-code-on-api-error` to missing
tokens and other setup failures.
- 2.14.0 makes `--strict-blocking` fail on every blocking finding on the
branch, including existing ones, each advisory on a package, and code-only
or reopened pull requests, so a pipeline that passed on 2.13 can start to
fail. To preview, run once with `--strict-blocking --disable-blocking`.
Without `--scm`, `--strict-blocking` also needs the `full-scans:list` and
`repo:list` token scopes.
- 2.14.0 exits `3` when a scan comparison has missing or invalid package
lists.

### Added
- Socket Tier 1, and `socketcli` in the heavy image, can download the Coana
reachability engine on networks that cannot reach `storage.googleapis.com`:
set `SOCKET_COANA_MIRROR_URL` to an https mirror of Socket's download bucket,
such as an Artifactory remote repository. See
[Network access for Tier 1](docs/parameters.md#network-access-for-tier-1).

### Changed
- The images ship Node.js 24 (LTS, supported until April 2028) instead of
Node.js 22.
- Bundled tools: Socket npm CLI 1.15.0 -> 1.16.0, Socket Python CLI 2.12.0 ->
2.13.2; TruffleHog 3.99.8 -> 3.100.1 in the socket-basics and heavy images
- Bundled tools: Socket npm CLI 1.15.0 -> 1.19.0, Socket Python CLI 2.12.0 ->
2.16.0; TruffleHog 3.99.8 -> 3.100.1 in the socket-basics and heavy images
(#142).
- Socket Tier 1 runs the Coana reachability engine 15.15.2 instead of 15.15.0.
Socket npm CLI 1.16.0 and Socket Python CLI 2.13.2 both pin it.
- Socket Python SDK (`socketdev`) 3.6.2 -> 3.6.3, which Socket Python CLI
2.13.2 pins exactly. Source installs now require `socketdev>=3.6.3`.
- Socket Tier 1 runs the Coana reachability engine 15.15.12 instead of 15.15.0.
Socket npm CLI 1.19.0 and Socket Python CLI 2.16.0 both pin it.
- Socket Python SDK (`socketdev`) 3.6.2 -> 3.6.4, which Socket Python CLI
2.16.0 pins exactly. 3.6.4 keeps each advisory on a package as its own alert
instead of merging advisories of the same severity into one. Source installs
now require `socketdev>=3.6.4`.

## [3.5.0] - 2026-11-13

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Dependabot to read, so they keep an ARG pin and are bumped by hand. These
# stay overridable: docker build --build-arg OPENGREP_VERSION=v1.33.1 .
ARG OPENGREP_VERSION=v1.33.1
ARG SOCKET_NPM_CLI_VERSION=1.16.0
ARG SOCKET_NPM_CLI_VERSION=1.19.0
#
# 3. Socket-built Trivy, rebuilt from unmodified upstream source and published
# by Socket's own release pipeline. Deliberately kept out of Dependabot's
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.heavy
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# installed by a script or package manager keep an ARG pin and are bumped by
# hand. See the note at the top of ./Dockerfile for why.
ARG OPENGREP_VERSION=v1.33.1
ARG SOCKET_NPM_CLI_VERSION=1.16.0
ARG SOCKET_PYTHON_CLI_VERSION=2.13.2
ARG SOCKET_NPM_CLI_VERSION=1.19.0
ARG SOCKET_PYTHON_CLI_VERSION=2.16.0
# Socket-built Trivy, pinned by digest — see the note in ./Dockerfile.
ARG TRIVY_IMAGE=ghcr.io/socketdev/trivy:0.76.1@sha256:883da3593a60e311b2ed87c3a55241051b27bba15ffc3ce041ae570cd0f00915

Expand Down
4 changes: 2 additions & 2 deletions app_tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
# docker build --build-arg OPENGREP_VERSION=v1.33.1 -f app_tests/Dockerfile app_tests
ARG GOSEC_VERSION=v2.30.0
ARG OPENGREP_VERSION=v1.33.1
ARG SOCKET_NPM_CLI_VERSION=1.16.0
ARG SOCKET_PYTHON_CLI_VERSION=2.13.2
ARG SOCKET_NPM_CLI_VERSION=1.19.0
ARG SOCKET_PYTHON_CLI_VERSION=2.16.0
#
# Socket-built Trivy, pinned by digest and deliberately kept out of Dependabot's
# reach; updated by Socket's trivy-dist release process. See the root
Expand Down
2 changes: 1 addition & 1 deletion docs/local-install-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ script or package manager are build args and can be overridden:
```bash
docker build \
--build-arg OPENGREP_VERSION=v1.33.1 \
--build-arg SOCKET_NPM_CLI_VERSION=1.16.0 \
--build-arg SOCKET_NPM_CLI_VERSION=1.19.0 \
-t socket-basics:3.5.0 .
```

Expand Down
6 changes: 6 additions & 0 deletions docs/parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,12 @@ not fail the overall scan, so check the log rather than the exit code.
(`~/.cache/socket/coana` by default). A fresh container downloads it on every
run unless that directory is persisted. With a warm cache, Tier 1 does not
contact `storage.googleapis.com` at all.
- **If `storage.googleapis.com` is blocked**, set `SOCKET_COANA_MIRROR_URL` to
an https mirror of Socket's download bucket, such as an Artifactory remote
repository, and pass it to the container (`-e SOCKET_COANA_MIRROR_URL=...`).
Tier 1 then downloads the engine from the mirror. It needs Socket npm CLI
1.19.0 or later, and Socket Python CLI 2.15.10 or later for `socketcli` in
the heavy image.
- `SOCKET_CLI_COANA_LAUNCHER` has no effect.
`SOCKET_CLI_COANA_LOCAL_PATH` still runs a local copy of the engine instead.
- `--reach-version` in `socket_additional_params` can only select engine
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
"light-s3-client~=0.0.30",
"PyYAML>=6.0.0",
"tomli; python_version < '3.11'",
"socketdev>=3.6.3",
"socketdev>=3.6.4",
"jsonschema>=4.25.1",
# requests' CA bundle; 2026.10.19 drops the roots behind the compromised
# eMudhra intermediates. Covers source installs (`pip install -e .`).
Expand Down
Loading