Release Notes
Release notes for the v3.x line, newest release first. Every release in this line is on this page.
Coming from v2? v3.0.0 breaks integrations - its section below has the migration guide. Nothing after it does.
🛡️ The Service Module has no public documentation. Changes to it are listed on this page like anything else, but no migration steps are given for them. A breaking change to it does not force a major version: a minor release can break it, a patch will not. If you self-host with the Service Module enabled, read every minor release before upgrading. See the Service Module page.
v3.2.0
Released 22 November 2026 - release on GitHub
⚙️ Core Changes
- The command line now beats environment variables and config files. Before, a config file beat it, so
--OpenTelemetry:Otlp:Enabled=truelost to afalseinOpenTelemetry.json. Environment variables still beat every config file.
🧪 Diagnostics Module
- Each OpenTelemetry signal can be turned off on its own for OTLP.
Otlp.Metrics,Otlp.TracingandOtlp.Loggingare new keys, eachtrueby default, so an existing config sends the same as before. A signal turned off is not exported over OTLP at all. Azure Monitor ignores these keys and still gets all three. With all three off, OTLP sends nothing and a warning is logged at startup. See Open Telemetry. - With any of the three off, the per-signal
OTEL_EXPORTER_OTLP_<SIGNAL>_*environment variables are not read. The signals still on share the one endpoint fromOtlp.EndpointorOTEL_EXPORTER_OTLP_ENDPOINT. With all three on they work as before. ServiceInstanceIdis nownullby default, so each start gets its own unique id. It shipped as"1", which made every running copy look like the same one. If a dashboard or alert filters on"1", change it, or setServiceInstanceIdyourself to keep one id across restarts.- The
AdditionalAttributesunderMetrics,TracingandLoggingare deprecated. They still work, and a warning is logged at startup when one has values. Move the values to the top-levelAdditionalAttributes, which applies to every signal. They will be removed in 4.0.0. - Packing spans are now sent in production. The
Binacle.Nettrace source was only listed in the Development config, so other environments never sent the pack and fit spans. It is now always on, andTracing.AdditionalSourcesis only for extra sources. - The resource now carries
host.nameandprocess.pid. Before, only log records carried the machine name and process id, so traces and metrics had no host at all. A value set inAdditionalAttributesstill wins. - The resource now carries
deployment.environment.name, the host environment in lowercase, such asproduction. Dashboards can now split production from development.OTEL_RESOURCE_ATTRIBUTESandAdditionalAttributesstill win over it. - The
Binacle.NetandBinacle.Net.DiagnosticsModulemeters and theBinacle.Nettrace source now carry the Binacle version. OpenTelemetry sends it with every batch, so a backend can tell which release produced a series. OTEL_RESOURCE_ATTRIBUTESandOTEL_SERVICE_NAMEnow work. They were read, but lost to the values Binacle sets, sohost.name,process.pid, the instance id and the service name could not be changed through them. They now win over Binacle’s defaults and overServiceInstanceId. The top-levelAdditionalAttributesstill wins over them. With Azure Monitor,OTEL_SERVICE_NAMEalso changes the role name.- Health-check requests no longer appear in traces or in the HTTP request metrics. Each probe made a span and counted as a request, which buried real traffic under probes. The health checks themselves are unchanged.
- Health checks can now be opened with a key as well as by address. Set
AccessKeyinHealthChecks.json, orHealthChecks__AccessKeyin the environment, and send it in theX-Health-Keyheader. A probe whose address changes, such as one on a home connection, then gets in from anywhere. WithRestrictedIPsset too, either one lets a request in. A wrong key is refused even from an allowed address. With a key set andRestrictedIPsempty, only the key gets in. With no key set the header is ignored, so an existing config behaves as before. The key must be at least 32 printable ASCII characters with no spaces, or startup fails. Send it over HTTPS only. See Health Checks. - Binacle now sends its own metrics. On the
Binacle.Netmeter,binacle.packing.operation.durationis the time spent packing, in seconds.binacle.packing.operation.itemsis the number of items in an operation, counting quantity.binacle.packing.resultscounts the results returned, by algorithm and status, so it shows which algorithm wins when none is given and how often items do not fit. - With packing logs on, the
Binacle.Net.DiagnosticsModulemeter addsbinacle.packing_log.processed, which counts every entry: written, dropped because the queue was full, lost because the write failed, or not written because the packing log had stopped. After too many failed writes in a row the packing log stops and takes no more entries.binacle.packing_log.queue.sizeshows how full the queue is, andbinacle.packing_log.queue.capacityits limit whenChannelLimitis set. Before, a full queue or a failing disk lost entries without any sign. - The packing spans now carry the request and the result. Each operation span is tagged with fit or pack, the mode, the algorithm asked for, the bin and item counts, and for a single result its algorithm and status. A failed operation marks its span as an error and records the exception.
- The packing spans are renamed, and the endpoint spans are gone. The operation span is now named for the
operation and the mode, such as
pack single_bin, instead ofSingle Bin Operation.Create Responseis nowcreate response, andSend Channel Requestis nowqueue packing_log. The per-endpoint spans, such asPack Custom Bin: v4, are removed: the HTTP request span already carries the route. The operation’s log line uses the new name too. - The
Binacle.Libspans are renamed and tagged.Process Bins: LoopandProcess Bins: Parallelare nowprocess bins, and the same forprocess algorithmsandprocess multi_algorithm_bins.Build Operation Resultis nowbuild result. Each processor span carriesbinacle.lib.processor,looporparallel, andbinacle.packing.operation,fitorpack. Eachbuild resultspan carries the result’s algorithm and status. They are still sent only whenTracing.AdditionalSourceslistsBinacle.Lib, as the Development config does. - Binacle’s own metric, attribute and span names are experimental in 3.x. That covers every
binacle.*metric and attribute, the span names on theBinacle.NetandBinacle.Libsources, and theBinacle.Net,Binacle.Net.DiagnosticsModuleandBinacle.Libmeter and source names. A minor release may change one, and the release notes will say so. The built-in names, such ashttp.server.request.duration, follow OpenTelemetry and .NET. - The per-operation log line, such as
pack single_bin completed in 12.3ms, is now Debug instead of Information. The span andbinacle.packing.operation.durationalready carry the same time, and at Information every request also sent one log record over OTLP. It no longer shows in the console, the log file or OTLP at the default level. To see it again, setSerilog:MinimumLevel:Override:Binacle.Net.TelemetrytoDebug.OperationDurationMsstays in milliseconds. - Log records sent over OpenTelemetry now carry the finished message as their body. Before, the body was the
template, such as
pack single_bin completed in {OperationDurationMs}ms, with the value only in an attribute. Text values appear in quotes, as Serilog renders them, such asNow listening on: "https://localhost:7194". The attributes and the trace id are unchanged. Otlp.Endpointis now checked at startup. With OTLP on, it must be an absolutehttporhttpsURL, such ashttp://localhost:4317. Before, nothing checked it, and a value that is not a URL threw a rawUriFormatException. A badOtlp.Protocolnext to an endpoint also threw a raw exception before its own check ran. Both now stop startup with a clear message naming the key.
🔌 Service Module
- With Postgres, database calls now appear in traces and metrics. Each command gets a span with its SQL text,
and no password. Npgsql’s own metrics, such as
db.client.operation.durationand the connection pool ones, are sent too. Nothing changes with OpenTelemetry off. SQLite and Azure Storage send nothing new.
🏗️ Internal Work
- The OpenTelemetry packages inside the image moved from 1.18 to 1.21.
- Minor and patch updates to the other NuGet packages inside the image: Scalar 2.21.0, Swagger UI 10.3.1, FluentValidation 12.2.0, Azure.Data.Tables 12.13.0, Microsoft.OpenApi 2.13.1 and the bundled SQLite build 2.1.14.
- Test and build dependencies updated: code coverage 18.12.0, Grpc.Tools 2.85.0 and the time provider testing package 10.11.0.
v3.1.1
Released 16 November 2026 - release on GitHub
🧪 Diagnostics Module
Otlp.Protocolaccepts"http/protobuf", the value the documentation gives. Only"httpProtobuf"was accepted, so a config copied from the docs failed validation at startup."httpProtobuf"still works.
🏗️ Internal Work
- Patch updates to the NuGet packages inside the image. ASP.NET Core and Microsoft.Extensions 10.0.15,
Microsoft.Data.Sqlite 10.0.15, Dapper 2.1.89 and Scalar 2.17.14. The
Microsoft.OpenApiand bundled SQLite pins moved up to what those packages now require. - Build and test dependencies updated: the GitHub Actions, the npm dev tools (including a critical
handlebarsadvisory) and the Ruby gems behind the sites. - The site jobs in CI run on Ubuntu 24.04.
ubuntu-latestmoved to 26.04, which has no build of the Ruby version the sites use.
v3.1.0
Released 8 October 2026 - release on GitHub
🔎 Overview
- The demo now calls V4. Both the demo site and the UI module inside the image moved off V3.
- The demo gained the
Bestalgorithm, which was never reachable from V3, and now shows which algorithm won. - V3 endpoints are unchanged and remain stable. V4 remains experimental.
- A major tag,
3, is published beside3.1and3.1.0. It follows every minor and patch in the 3 line. - The documentation site keeps one folder per major line, and the current line is served at the site root. A minor release no longer moves every documentation URL.
- The ServiceModule’s routes can be called from a browser. A
ServiceApiCORS policy covers the token and admin routes, configured beside the existingCoreApione. Nothing is allowed until you list an origin.
🎨 UI Module
- The packing demo calls
pack/compare-binson V4, where it calledpack/by-customon V3. It still packs every bin you give it and still lets you click between the results - the endpoint with the same shape, on the newer version. Nothing about the page’s behaviour changed with it. - The algorithm list gained
Best. It runs more than one heuristic and returns whichever packed best, and it exists only on V4, so the demo could not offer it before. It is listed as Try all, keep the best, to keep it apart from Best Fit Decreasing, which is one specific heuristic. - Each result now says which algorithm actually ran, shown only when you asked for
Best- with a single heuristic selected it would repeat the dropdown a line below itself. The row splits its columns rather than growing taller. - The demo no longer builds its own HTTP calls. It goes through the new client package, which owns the request and response shapes.
- A rate-limited request now says so. Hitting the demo too often used to show a message about a response that could not be parsed. It now tells you that you have been rate limited and to wait a moment before trying again.
- A result that could not fit everything now says what was left out. An info button on the result row opens a small panel listing the items that did not fit and how many of each. It opens on hover, on tap and from the keyboard, and it floats over the row rather than making it taller.
- The Get results button can no longer stick. It came back only once something had drawn the packed bin, so a page showing the form without the 3D view could leave it disabled. It now comes back as soon as the answer arrives.
- The instance page no longer calls the API to list its presets. It renders them with the rest of the page, so the
list still appears behind a proxy, an auth layer or a CORS rule - which is usually when you are looking at that page.
A change to
Presets.jsonshows up there after a restart. - The demo site shows unpacked items too. The tooltip that landed on the packing page inside the image is now on the public demo as well.
- The packing page shows the request it just made. After a run, a
Requestbutton on the results opens a panel on the right with the call as onecurlline against the instance serving the page - method, path and the JSON body - with a Copy button where the browser allows it. Paste it into a terminal and it answers. The public demo site does not have it, because the only host it could print is one nobody calls from their own code. Try all, keep the bestis now first in the algorithm list and selected when the page opens. It is the reason the demo moved to V4, so it is what you see first.- A new worked example opens the page: two bins, one item set, two different winners. First Fit Decreasing fills the
first bin where Best Fit Decreasing cannot, and Best Fit Decreasing fills the second where First Fit cannot, so the
first thing the page shows is why
Try all, keep the bestexists. The twenty earlier examples are still there under Randomize. - The ViPaq Decoder offers five sample strings. A Samples button opens a panel of known-good strings, each with a Copy button. Paste one into the decoder to see what a decoded pack looks like before you have a response of your own. Each is a packed result from one of the demo’s own worked examples.
🔌 Service Module
- The token and admin routes carry a CORS policy of their own,
ServiceApi. Until now only the packing routes had one, so a browser page could log in against this module only through a proxy. The origins go under aServiceApikey - inConfig_Files/ServiceModule/Cors.json, or besideCoreApiin the oneCors.json, since both feed the same section. Absent means closed, as before. - Deleting a subscription and creating a new one for the same account no longer answers 409 on Azure Table Storage. The account update ran as a merge, which skips a null, so the removed subscription id stayed on the row. It now replaces the row. SQLite and Postgres were not affected.
🏗️ Internal Work
- Added
binacle-net-client, a private TypeScript client for the v4 API. Hand-written, with no generator and no runtime dependencies. It carries its own committed copy of the v4 OpenAPI document, and a test validates the hand-written types against that copy - so a contract change in the API fails a test rather than reaching a page. It coverspack/compare-binsto start with. Nothing is published; this remains an internal package, and the OpenAPI documents are still what an integrator generates their own client from. - Restructured
binacle-net-uiinto apps, components and shared code. It was three flat folders, and 19 of the 25 files inutils/turned out to be the visualizer’s own internals sitting where any file could import them. The visualizer now owns them and offers an app its component and one contract type. No behaviour changed - the same 348 tests passed before and after, with no assertion edited. - The committed OpenAPI copies are now kept in step as one set.
just openapi check-site-copiesbecamejust openapi check-all-copies, and a newjust openapi sync-all-copieswrites every copy. The check runs on every pull request and on release, as it did before. Nothing calls the sync - a person runs it and commits what it writes. - Added an integration test for CORS. Nothing asserted
Access-Control-Allow-Originbefore. A preflight from an allowed origin now has a test that fails the way the 2026-09-01 break did, and a second proves that with noCors.jsonpresent no origin is allowed at all. - A prerelease never reaches Docker Hub. A beta is built, signed and smoke tested on GHCR, gets its git tag and a
GitHub release marked prerelease, and stops there.
binacle/binacle-netnow only ever receives a released version, and nothing sits beside a release waiting to be deleted. - A prerelease can be dispatched from the
release/branch named after it.release/v3-1-0may dispatch3.1.0-beta.*and no other version; a release still runs frommainonly. The betas of a version come from its branch, so a change to the workflow is proved by a beta before it reachesmain. - The release logs into Docker Hub with the run’s own identity token. No long-lived registry token is stored for the job that pushes the image; the token is minted per run and expires with it. The Docker Hub page is the one job that still uses a stored token, because the page is written through a different API.
- One fewer third-party action runs in the job that holds the registry credential. Copying the image between registries is a registry call, not a build, and the runner already carries the tool it needs - so the job no longer sets up a builder first.
- No job holds a git credential after checkout. The one tag CI pushed, the site deploy marker, is now created
through the GitHub API, so every checkout runs with
persist-credentials: false. - The three site deploy workflows are one, with the site chosen at dispatch. Deploys are still by hand.
- Sonar waits for its own result through the scanner’s quality gate flag instead of a polling loop, and a workflow-only pull request no longer builds all three documentation sites.
- Sonar analysis now runs on every pull request that can carry the token, in parallel with the existing checks rather than only by hand. It reports and does not block a merge; a pull request from a fork or from Dependabot skips it rather than failing.
- CORS moved into the Kernel. One
Corssection, one entry per policy name; the core and each module add their own file and name the policy they need, and the Kernel binds the section once, builds the policies from it and validates the registered keys on start. Neither owner holds an options class or a validator any more. - The ServiceModule’s OpenAPI document can be exported.
just openapi generate-servicebuilds with the module on into its own folder, because that run also changes the v3 and v4 documents, and the copy recipes gained a line for it. - Added
binacle-net-service-clientandsites/admin, both experimental and local only. A hand-written TypeScript client for the token and admin routes, kept honest by the same contract test as the v4 client, and a small Jekyll page that uses it against a local instance. Neither is built, published or deployed by anything. - Added an
Instanceslice to the Kernel holding what a running instance reports about itself. The feature list moved into it and its values became a small closed set of types, so the presets the instance loaded can sit beside the switched-on features without being mistaken for one. The instance page’s javascript is gone with it.
📚 Versioned Docs
Work on the documentation site. Nothing here changes the image you pull.
- One folder per major line, the current line at the root.
docs.binacle.net/quick-start/is the current page; older lines live under/version/2.1.1/and/version/1.3.0/. A minor release adds to the current folder instead of opening a new one, so URLs stop moving. - Every old URL redirects.
/version/v3.0.x/...,/version/v2.1.x/...,/version/v2.0.x/...,/version/v1.3.x/...and/version/latest/all land on the page that replaced them. - The
v2.0.xandv2.1.xfolders are onev2.x, carrying the whole v2 line, with a note where 2.1.0 added something. - Configuration Basics folded into Configuration, CORS got its own page, and the Integration Guide left the docs.
v3.0.0
Released 1 September 2026 - release on GitHub
🔎 Overview
- V2 endpoints were removed.
- V4 endpoints were introduced as experimental.
- V3 endpoints remain stable and unchanged, and are the recommended version.
- ViPaq was rebuilt with a smaller, simpler format. Strings from earlier versions no longer decode.
- ViPaq left experimental status - the format is stable as of this release.
- Algorithms were unified - fitting and packing now share one implementation.
- Packing Logs configuration was flattened, with breaking changes for existing integrations.
- Forwarded headers are now supported, so the real caller is resolved when running behind a proxy or CDN.
- Health check IP restrictions are matched differently, with breaking changes for existing allow-lists.
- The demo UI was rebuilt, its page addresses changed, and it gained a page describing the instance you are on.
- The image creates
/app/dataand gives it to the app user, so a volume mounted there is writable. - The image is signed, and carries an SBOM and build provenance, so you can verify what you pull.
- The image is about a third smaller - it uses the .NET runtime from its base image instead of bundling a second copy.
- The project was restructured, separating the API, library, and ViPaq into their own roots.
- Versioned documentation now covers every minor line, so older images keep their docs.
- The project moved to the
binacle-labsorganization. Links redirect; the signing identity does not. - Licensing is now stated per part. The samples, the build tooling, the Ruby gems and the ViPaq and compact notation libraries are permissive, so they can be copied without taking on the code licence. The documentation moved from CC BY-SA 4.0 to CC BY 4.0, which drops the ShareAlike condition on quoting it.
- The code licence changed from GPL-3.0 to AGPL-3.0. Run the image as it ships and there is nothing to do.
Change it and run it as a service for other people, and you publish what you changed. The permissive parts
stay permissive. Versions up to and including
3.0.0-beta.6remain under GPL-3.0, and that text is kept atLICENSE.GPL-3.0/.
⚙️ Core Changes
- Removal of all V2 endpoints.
- Added 16 experimental V4 endpoints, covering everything V3 does.
- V4 splits a request into three shapes. One bin, one answer -
fit/bin,pack/bin, and their{preset}/{bin}variants. - Many bins, one answer -
pack/smallest-bin,pack/smallest-bin/{preset},fit/smallest-bin, andfit/smallest-bin/{preset}return the smallest bin that works;pack/best-binandpack/best-bin/{preset}return the bin the items fill the most. - Many bins, every answer -
fit/compare-bins,pack/compare-bins, and their{preset}variants return one result per bin, in the order the bins were sent. - Presets can be listed with
presetsor fetched one at a time withpresets/{preset}. - V4 is experimental and can change at any time. V3 remains stable and is the recommended version. See Version 4.
- V3 endpoints are unchanged and remain stable, apart from the ViPaq payload.
- A non-string
algorithmvalue now answers 422 rather than 400."algorithm": 1,trueor a list used to come back asInvalid JSON Formatwith no field named. It now comes back as a validation error naming the field - the same answer a misspelled name such as"FFDD"has always given. Both statuses were already declared on these endpoints, so the contract has not moved; what changed is which one you get. - ViPaq is no longer experimental. The format is settled as of this release, where it carried an
experimental warning through v2.1.1. A future format change takes a new
Versioncode rather than altering the current one, so an older decoder rejects a newer string outright instead of misreading it. See ViPaq Protocol. - Added forwarded headers support, configured in
Config_Files/ForwardedHeaders.json. Disabled by default. See Forwarded Headers. - When enabled, the caller’s address and scheme are resolved from
X-Forwarded-ForandX-Forwarded-Protobefore anything reads them, so rate limiting and health check IP restrictions see the real caller rather than the proxy. - Trust is explicit - a proxy on loopback or a private network is trusted by default, anything else must be named. The app refuses to start if nothing is trusted, because that would make every caller’s header believable.
- A different header can be read instead, for CDNs that send one -
CF-Connecting-IP,X-Real-IP,X-Azure-ClientIP. ASPNETCORE_FORWARDEDHEADERS_ENABLEDis ignored. It switches the underlying middleware on with no proxy verification, which lets any caller choose their own address.TrustedProxiesentries are read exactly as written, the same rule as health checkRestrictedIPs.010.10.10.10used to be read as octal and trust8.10.10.10, and172.17.1used to mean172.17.0.1; both now fail startup validation rather than trusting a host you did not name.- Added a
/_debugendpoint, off by default, enabled withDEBUG_ENDPOINT=True. It echoes the caller’s own request - connection address and headers - for working out what a proxy is sending. - A startup warning when a forwarding header arrives and does not take effect, either because the feature is off or because the trust list does not name your proxy. Logged once. Without it both states are silent and the app quietly reads the proxy as the caller.
- No
Strict-Transport-Securityheader is sent. TheUseHstscall arrived with the demo UI’s template and only ever ran when that UI was on. The image terminates no TLS, so the proxy or CDN in front of it is the only thing that knows whether HSTS is safe to pin, and a browser honours it until it expires. - The image now creates
/app/dataand gives it to the app user. A volume mounted there is writable with no extra setup. Previously docker created the mount point as root, the app does not run as root, and packing logs and the SQLite database could not be written to a fresh named volume. - The image ships
libgssapi-krb5-2, so Npgsql stops printingCannot load library libgssapi_krb5.so.2at every start. Nothing was broken - the app authenticates with a password, not Kerberos - but the message read like a fatal error. - The image carries OCI labels - title, description, source, url, documentation, vendor, licence and base image - plus version, revision and created per build.
- The description at the top of every API document changed. The same one-line summary now appears in Swagger
UI, Scalar and the image’s
descriptionlabel. -
The image is signed, and ships an SBOM and build provenance. Signing is keyless, so there is no public key to fetch - the signature is checked against the workflow that produced it - and it covers the digest, so it holds for every tag pointing at that image:
cosign verify binacle/binacle-net:3.0.0 \ --certificate-identity-regexp '^https://github\.com/binacle-labs/Binacle\.Net/\.github/workflows/release-docker-image\.yml@refs/heads/main$' \ --certificate-oidc-issuer https://token.actions.githubusercontent.comThe SPDX SBOM and SLSA provenance travel inside the image index;
docker buildx imagetools inspect binacle/binacle-net:3.0.0lists them. See Verifying a Release. - The project moved to the
binacle-labsorganization, and the signing identity moved with it. The command above names the new organization. GitHub redirects a moved repository’s links, but a certificate identity is written into the signature and does not redirect - a stale one fails the check rather than warning. - The image is smaller - 100 to 110 MB, where the same image built the old way was 150 to 160 MB. The app is
published framework-dependent, so it runs on the .NET runtime already in the
aspnet:10.0base image instead of carrying a second copy of it. Nothing about running the container changes. - One environment variable was removed -
BINACLEAPI_CONNECTION_STRING. The UI module used it to point the demo at another API host. The rebuilt module reads no configuration and always calls the API it is served from, so the variable is now ignored rather than rejected.Config_Files/UiModule/ConnectionStrings.jsonwent with it, and the image no longer ships aUiModuleconfig folder. - Every other environment variable is unchanged.
🧪 Diagnostics Module
- Packing Logs configuration was flattened -
Path,FileName,DateFormat, andChannelLimitnow sit directly underPackingLogs. See Packing Logs. - Removed the fitting configuration block, now that fitting and packing share one log.
- Implementations depending on the old nested shape must be updated, or startup validation will fail.
- The default log path changed from
data/pack-logs/packing/todata/pack-logs/. - Packing log entries now include a
Timestampfield. - Added
RetentionDaystoPackingLogs. When set, packing log files older than that many days are deleted once a day, and each deletion is logged. Off by default (null) - files are kept until you remove them yourself. Only files matching the configuredFileNamepattern in the configuredPathare touched, and only at the top level. /_healthnow reports what the instance is running. ItsSystementry carried onlyProcessors. It now also carriesVersion,Environment,StartedAtandUptime, plusFeatures- the names of everything switched on, such asHealthChecks,UIModuleorSwaggerUI- andReservedPaths, the path prefixes that never answer with a web page.Processorsis unchanged, so an existing parser keeps working; the new keys are there to check that a configuration arrived the way you meant it to.- Health check
RestrictedIPsnow uses CIDR notation correctly. The value after/was previously read as an address mask, so192.168.1.0/24covered nearly the whole IPv4 range instead of 256 addresses. Existing CIDR entries are now much narrower than they were. See Health Checks. - Health check
RestrictedIPsnow matches IPv4 callers in containers. Addresses arriving in IPv4-mapped IPv6 form are unmapped before comparison, which they previously were not - no IPv4 entry could match. - Removed the
start-endrange form fromRestrictedIPs. Entries such as192.168.1.0-192.168.1.255now fail startup validation. Use CIDR instead. RestrictedIPsentries are now read exactly as written. An IPv4 address must be four plain decimal parts with no leading zeros, and an IPv6 address must be in its short, lowercase form.010.10.10.10used to be read as octal and admit8.10.10.10;10.1used to mean10.0.0.1;167772161meant the same. All of these now fail startup validation instead of quietly admitting a host you did not name.192.168.1.1/24still means the whole192.168.1.0/24- that is what CIDR notation means - but the startup log now says so.
🔌 Service Module
- No migration steps are given for Service Module changes - see the note at the top of this page. Changes before v3.0.0 were not listed at all.
- Breaking. The auth token rate limit no longer reads
X-Forwarded-For. It partitions on the connection’s remote address. Before this, varying the header reset your own login throttle. Behind a proxy withForwardedHeadersoff, which is the shipped default, every caller now shares one bucket. - Breaking. An unrecognised enum value in an admin request body is rejected with 422. It used to be dropped
silently, so a
PATCHcarrying a badStatusorRolereturned 204 and applied the rest of the body. - Breaking. SQLite date columns are written in a new format - UTC, invariant culture. Rows written by an earlier version under a non-invariant culture will not read back.
- Three new admin endpoints.
GET /api/admin/accountsandGET /api/admin/subscriptions, both paged, andGET /api/admin/account/{id}/subscription. - The
Locationheader on subscription create now resolves. It pointed at a route that never existed. - Startup configuration errors say what a valid value looks like. One error per setting instead of up to three, naming the accepted formats and echoing what was supplied. No configuration that started before stops starting.
- SQLite connections open with WAL journalling and a 5 second busy timeout. WAL is persistent in the
database file and adds
-waland-shmfiles beside it. - The bundled SQLite native library is pinned past GHSA-2m69-gcr7-jv3q, a memory-corruption advisory. SQLite backend only.
- Rate limiting attaches by convention, so the v4 endpoints are rate limited too.
🎨 UI Module
- The demo UI was rebuilt. It was Blazor with an interactive server render mode; it is now Razor Pages, with everything interactive running in the browser. No SignalR circuit and no WebSocket, so the demo works behind a proxy or CDN that does not forward one.
- The page addresses changed -
/PackingDemois now/packing,/ProtocolDecoderis now/vipaq, and/Erroris now/error/{errorCode?}. Old links no longer resolve. - The demo’s static files moved under
/_content/Binacle.Net.UIModule/./favicon.ico,/css/main.css,/js/,/vendor/and/assets/no longer answer at the root. - API paths never answer with the demo’s error page. A miss under
/api,/openapi,/swagger,/scalar,/_health,/_debugor/_contentreturns the bare status or the JSON the endpoint wrote. Only/api,/swaggerand/scalarwere exempt before, so a miss on/openapior a diagnostics path answered a caller with a web page. - The Protocol Decoder is now the ViPaq Decoder. Same tool. It reads the new ViPaq format only, and strings from earlier versions are rejected. See ViPaq Protocol.
- A new page,
/instance. The version and environment this container is running, which features are switched on and where each one answers, and the presets it loaded - so you can see whether your configuration arrived the way you meant it to. It also links to GitHub Discussions. - The footer is one line - copyright, version, licence, GitHub and Docker Hub. The Swagger UI and Scalar links that used to be footer badges are on the instance page, which also says whether each one is switched on.
- Nothing on a page is fetched from the internet. The footer’s
img.shields.iobadges are gone, and the stylesheet, the icon font, the logos and the 3D library are all served from the image. An air-gapped install renders the same as any other. - The Packing Demo carries 20 worked examples instead of one, and its two randomize buttons are now one. The same example always loads, so a link to the page shows everyone the same thing; Randomize moves to a different one. Each was checked against all three algorithms, and each is a set where the bins genuinely disagree - which is the comparison the page exists to show.
- Add bin copies the bin above it, and Add item is sized to the bins you already have. Both used to roll a fresh random box, which could add an item no bin on the page could hold.
- The Packing Demo and ViPaq Decoder descriptions were rewritten. What each tool does is unchanged.
- Validation errors from the API are listed again. The dialog built its message list wrong and always came up empty, so a rejected request opened a dialog with nothing in it.
- A decoded bin with a zero side reads
0%rather thanNaN%in the ViPaq Decoder. The bin comes out of a string a visitor pastes in, so a zero side is reachable. - The error page names the problem - a separate line for 404, 403 and 500 instead of one sentence for all of
them - and links back to the home page. It also answers with the status it names. Opening it directly used
to answer
200, so a monitor pointed at that address was told the instance was fine. - The demo follows your machine’s light or dark setting on a first visit. It used to start in light mode
whatever the machine was set to. The switcher in the header still overrides it, and the choice is still kept
in the same
themecookie, so anyone who already picked one keeps it. - The theme now sticks on an instance served over plain http. The
themecookie was always writtenSecure, which a browser drops off https, so the demo reset to the default on every page load. It is markedSecureonly where the page is served over https. - The module reads no configuration at all.
UI_MODULE=Trueis the whole setup - see Core Changes for the variable that went, and UI Module for the page.
📈 Algorithms
- Fitting and packing now share one algorithm. Fitting stops early on the first item that does not fit.
- Packing results are unchanged - the shared algorithm is the previous packing implementation.
- The separate fitting algorithm family was retired.
🏗️ Internal Work
- Patched two high-severity advisories in transitive dependencies -
Microsoft.OpenApiand the bundled SQLite native library. - Extracted Binacle.Geometry into its own library.
- Took
FluxResultsin-tree. The result and union types the API returns are now part of the repository rather than a NuGet package. No behaviour changed. - Reworked the packing log pipeline, moving the generic parts into the Kernel.
- Every part of the repository now names its own licence. A
LICENSEfile now sits beside every part that has its own,NOTICEbecame the full map, and the image’sorg.opencontainers.image.licenseslabel lists all four. The ten Ruby gems declared MIT with no licence text anywhere, which they now ship, and the image now carriesNOTICEand the licence text itself rather than only a label.
Everything below is work on the repository. None of it reaches the image.
- Restructured the repository - the API, library, ViPaq, and shared test data now live in their own roots. No route, contract or configuration moved with it, which is why it is listed here rather than as a change above.
- Added benchmark suites for algorithms, bin processing, result selection, and ViPaq.
- Added cross-language ViPaq interop tests between C# and TypeScript.
- Rebuilt the release pipeline. A release is dispatched with a version. It builds the image once, smoke tests it in a staging registry, copies the tested digest to Docker Hub, and creates the git tag and the GitHub release last - so what is published is bit for bit what passed, a failure anywhere leaves Docker Hub untouched, and no tag exists for a release that did not finish. The release body is the changelog, extracted by the workflow.
- Renamed two top-level folders -
config/is nowtooling/, and build output goes toartifacts/instead ofbuild/. - Added
CONTRIBUTING.mdand a pull request template. Issues, bug reports and documentation corrections are welcome and the file names them first. Code contributions are not being taken while the contribution terms are written, and the file says that will change. - Every GitHub Action is pinned to a commit SHA, kept current by Dependabot.
📚 Versioned Docs
- Documentation is now versioned per minor line -
v1.3.x,v2.0.x,v2.1.x,v3.0.x- so any image can be matched to its docs. - Backfilled the
v2.0.xandv2.1.xdocumentation, which was previously missing. - The
latestdocumentation now redirects to the current version, so existing links keep working.
🛠️ Migration Guide
To upgrade to v3.0.0, follow these steps:
- Remove all V2 usage
- Any calls to V2 endpoints must be removed or migrated.
- Replace
/api/v2/presets,/api/v2/fit/by-custom,/api/v2/fit/by-preset/{preset},/api/v2/pack/by-custom, and/api/v2/pack/by-preset/{preset}with their V3 equivalents.
- Switch to V3 endpoints
- V3 requires an algorithm to be selected, where V2 used a fixed one, and drops V2’s other parameters.
- See the v2.x documentation for the old contract, and Version 3 for the new one.
- Regenerate all ViPaq strings
- The format was rebuilt and is not backwards compatible.
- Strings from earlier versions no longer decode, and there is no fallback reader.
- Re-run the packing request to get a new one. Any stored string - a saved link or a bookmarked result - is stale.
- This applies to V3 responses as well, even though V3 is otherwise unchanged.
- Do not mix versions
- Images before v3.0.0 produce the old ViPaq format; v3.0.0 onward produces and reads only the new one.
- An encoder and a decoder on different sides of this release will not interoperate.
- Update Packing Logs configuration
- Move
Path,FileName,DateFormat, andChannelLimitout of the nestedPackingblock, directly underPackingLogs, and delete theFittingblock. - Left in the old shape with
Enabled: true, startup validation now fails. - Repoint log collection from
data/pack-logs/packing/todata/pack-logs/. The oldpacking/andfitting/directories are safe to remove.
- Move
- Review health check
RestrictedIPs- Replace any
start-endentries with CIDR -192.168.1.0-192.168.1.255becomes192.168.1.0/24. Left as they are, startup validation now fails. - Re-check any CIDR entry. It now covers what it says, which is far less than before - confirm the addresses you expect are still inside it, or you will lock yourself out.
- A range that does not line up with a CIDR boundary must be split into several entries, or widened to the enclosing subnet.
- Drop any leading zeros -
010.10.10.10becomes10.10.10.10, and note it used to admit8.10.10.10, so check that host was not the one you meant. Write IPv6 entries in the short lowercase form:2001:0DB8::1becomes2001:db8::1. - If Binacle.Net runs behind a proxy, load balancer or CDN, enable Forwarded Headers as well. Without it the list is compared against the proxy’s address and can never match your monitoring system.
- Replace any
- Drop
BINACLEAPI_CONNECTION_STRING- Delete it from any compose file, Kubernetes manifest or environment file. It is ignored, not rejected, so nothing fails to start and nothing warns.
- Only affects you if you set it. Pointing the shipped demo at a different API host is no longer possible; the demo calls the API it is served from.
- Any
Config_Files/UiModule/directory you mounted or edited can be removed. The image no longer reads it. - Bookmarks to
/PackingDemoor/ProtocolDecoderneed updating to/packingand/vipaq.
- Update any pinned
cosign verifycommand- The repository moved to the
binacle-labsorganization and the certificate identity moved with it. ReplaceChrisMavrommatiswithbinacle-labsin--certificate-identity-regexp. - Only affects you if you verify signatures in a script or a pipeline. A stale identity fails the check, it does not warn - so it reads as a tampered image rather than an out-of-date command.
- See Verifying a Release for the full command.
- The repository moved to the