Hashes were salted with PBKDF2_ENCODER_SECRET, one value shared by every password, so equal passwords produced equal hashes and a leaked table could be attacked all at once.
New hashes use a random 16-byte salt and record their parameters: pbkdf2-sha512$<iterations>$<salt>$<key>.
Existing hashes still verify. NeedsRehash reports them so an application can store a fresh hash at the next successful login. See Upgrading stored hashes.
PBKDF2_ENCODER_ITERATION and PBKDF2_ENCODER_KEY_LENGTH now default to 210000 and 32 instead of panicking when unset.
db/mongo.DatabaseLockMonitor locks a client to named databases: commands for any other database, and $out/$merge into one, are refused before they are sent. See A client locked to one database.
Parity decode: jwt compares a token's claims; decode: "exec:<cmd>" compares a body piped through a command (e.g. pdftotext).
Send the same requests to two services, as the same users, and report every difference that is not explicitly allowed โ for proving a port answers like the API it replaces. See Comparing two services.
Rules for ignored paths, unordered arrays, null vs absent, timestamps compared as instants, and number formatting. Only GET/HEAD are sent unless allowed, and reports redact response values by default.
A command monitor that refuses every command that would change data or schema before it is sent, for running a service against a database it must not change.
MongoAdapter.InsertJSON seeds documents from MongoDB Extended JSON.
The first document "x" has the following JSON of a scenario clears that collection, in the reference database too, before inserting. Data left by an interrupted run or a manual probe no longer fails the next run with a duplicate key. Later seeds of the same collection in the scenario add to it, as before.
One table combines ignored paths and lists compared in any order (| ignore | $.id |, | unordered | $.ranks | student.id |), which the separate ignoring and with lists in any order steps cannot. | ignore header | Content-Type | leaves a response header out of the comparison.
Compares a route that now takes JSON with a reference that took the same JSON as one part of a multipart/form-data body (e.g. a Spring @RequestPart next to a file part). See Comparing two services.
Failing assertions now fail their step: the response status should be and the response should contain an item with used to log through assert and return nil, so the scenario carried on and reported success.
New steps: principals (I am authenticated as), headers and cookies, JSON bodies, JSONPath assertions, Extended JSON seeding, snapshots, and comparison with a reference service. Steps registers application steps; Send and Lookup are exported for them.
Paths makes the feature location configurable; TestFeatures fails the test when a scenario fails.
ginboot.New() reads telemetry.enabled and installs tracing, metrics, request IDs and trace-correlated logging, before any route is registered.
Previously the block was parsed and ignored: telemetry only ran if an application called telemetry.Setup and telemetry.Instrument by hand.
Requires a blank import, which is what compiles the plugin in and lets it register itself:
import _ "github.com/klass-lk/ginboot/telemetry"
Applications that do not import it are unaffected and still do not carry the OpenTelemetry SDK. Configuration that asks for telemetry the binary cannot provide now says so at startup instead of staying silent.
OTEL_EXPORTER_OTLP_ENDPOINT โ or the signal-specific ..._TRACES_/_METRICS_/_LOGS_ENDPOINT โ turns instrumentation on by itself.
This is for deployments that ship a compiled binary and no config file, where ginboot.yml is not there to be read and telemetry.enabled would be false however the repository has it.
OTEL_SDK_DISABLED=true beats both signals, for a service whose environment names a collector it should not talk to.
Sampling was hardcoded to AlwaysSample, which silently overrode OTEL_TRACES_SAMPLER and OTEL_TRACES_SAMPLER_ARG. A service turning the ratio down to shed load stayed at full volume.
Unset, the SDK now defaults to parentbased_always_on: the same volume as before, but an upstream caller's decision not to sample is respected rather than overridden.
Middleware installed a second time doubled every span, log line and metric for the life of the process. An application that both imports the plugin and calls Instrument itself would have done exactly that.
Lambda freezes the execution environment the moment a handler returns, and an export's wall-clock deadline keeps running while it is frozen. A fast handler therefore lost all of its telemetry to context deadline exceeded, not merely some of it.
runtime/lambda now registers as a Lambda internal extension and drains telemetry in the window between the response going out and the environment freezing. Nothing to configure.
Responses are not delayed โ Lambda returns the response before extensions finish โ but the drain is inside the billed invocation. Bound it with GINBOOT_TELEMETRY_FLUSH_TIMEOUT (default 2s) and watch PostRuntimeExtensionsDuration.
HTTP servers are unaffected: the machinery lives in runtime/lambda, is inert unless AWS_LAMBDA_RUNTIME_API is set, and does not register at all when no telemetry is compiled in. A failed registration leaves the function serving exactly as before.
db/mongo.TracingMonitor, db/sql.TracingPlugin (any gorm dialect) and db/dynamodb.WithTracing record every call as a client span under the request that made it: find sessions, select users, GetItem users. MongoConfig.Connect, SQLConfig.ConnectGORM and NewDynamoDBClient install them.
No user data reaches the tracing backend. Command bodies, keys, items, arguments and error messages are never recorded, and a failure carries only its code (DuplicateKey, SQLSTATE 23505, ConditionalCheckFailedException). Parameterised SQL text is opt-in (QueryText).
No added latency to speak of. Export stays in the batch processor's goroutine, and a span that is not kept is neither tracked nor described. Measured per call on an Apple M1: ~0.25 ยตs with telemetry off, ~0.4 ยตs sampled out, ~1.4 ยตs recorded, against a 0.3โ5 ms query. See Database tracing.
Handlers pass *ginboot.Context on as a context.Context, but gin's Value never consulted Request.Context(), so spans started below a handler (database calls) began traces of their own. Value now falls back to the request's context.
Only Value falls back: Done and Deadline stay gin's, so a client hanging up does not cancel work already under way.
Automatically loads .env, .env.local, and .env.development files into process environment variables without needing third-party loader boilerplate in main.go.
Added support for 4 environment variable injection syntaxes inside YAML config files:
Ginboot applications running in debug mode automatically ensure .air.toml is created in the project root watching .go, .yml, .yaml, and .env files for seamless live hot-reloading.