Releases: AndrianBdn/oddk
Release list
ODDK v0.1.85
Fixed
- Backups and snapshots larger than 5 GiB can upload to S3. Large archives
upload in parts, with retries per part and cleanup on failure or cancellation.
Uploads stream from disk with two concurrent parts. - Local retention protects large snapshots that have no offsite copy. The
previous exception for archives above 5 GiB is removed. Migration previews no
longer warn about the old upload cap.
Action: Upgrade ODDK and restart its daemon. Allow s3:AbortMultipartUpload
on the archive prefix in the bucket's upload policy. Configure an S3 lifecycle
rule to abort incomplete multipart uploads left by crashes or failed cleanup.
For SSE-KMS buckets, the upload identity also needs kms:Decrypt alongside
kms:GenerateDataKey on the encryption key. No database migration is required.
ODDK v0.1.84
Fixed
- Deleting a database user no longer risks deleting objects created during
ownership reassignment. Each database's reassignment and privilege cleanup
now run in a transaction that refuses object deletion. If concurrent DDL would
cause data loss, the command preserves the object and the role and asks you to
stop the application's DDL before retrying. Cleanup already completed in other
databases is not rolled back. - Container rollback uses the previous image's immutable ID. If an update
or image switch moves a tag to a broken image, rollback restores the image the
old container actually used instead of retrying the broken tag. The previous
image is checked before the existing container is removed. - Adding a database user is atomic. Role creation, grants, and optional
ownership transfer now share one transaction. A failed grant or ownership
change no longer leaves a partially configured user or changed database owner
behind without returning the generated password. add-db-user --ownerhandles stored procedures and aggregates, as well as
functions. Ownership statements explicitly name the public schema, so a
customizedsearch_pathcannot redirect them.
Changed
- Parameter-file decoding is shared by the CLI and API; both still accept a
bare array or the object emitted byparameters get --json. S3-location
parsing is shared by backup and snapshot operations and rejects locations
with an empty bucket or object key. - Removed the E2E runner's unused
-vand-parallelflags.
Action: Upgrade ODDK and restart its daemon before managing database users
or changing instance images. No database migration is required.
ODDK v0.1.83
Added
oddk instance applynow resizes and re-ports an instance, not only its
parameter group.--cpu,--ramand--portcan be given in any
combination with--parameter-group; flags you do not pass keep their
current value. The change goes through the same path as a group change: the
container is recreated (a brief restart, the data volume untouched), what can
be refused is refused before the running container is touched — more CPU or
RAM than the host has, a port another instance holds or something already
answers on, a group whose shared memory will not fit the new RAM — and a
container that comes up but never reaches readiness is rolled back to the
previous shape. Because parameter groups resolve against the instance's RAM,
a resize re-derivesshared_buffersand friends automatically. Until now CPU,
RAM and port were fixed atcreatefor the life of the instance, which was
the biggest gap against the "local RDS" positioning.
PUT /api/rdbms/{name}/configaccepts the new fields (cpuCores,ramMb,
port, all optional); a body with onlyparameterGroupbehaves as before.
Security
- Built with Go 1.27.1 (v0.1.82 was built with 1.26.5). A
govulncheckof
the previous binary reported six standard-library vulnerabilities as
reachable: quadratic path resolution innet/url, unbounded post-handshake
messages incrypto/tls, two innet/http(the unencrypted HTTP/2 check
ignoringReadHeaderTimeout, and Punycode label handling), and missing
recursion guards inencoding/xmlandencoding/asn1. Exposure was limited
by design — the daemon listens on loopback and only talks to Docker over its
socket, to S3, and to the notification endpoints you configured — but fixing
all six costs one line.golang.org/x/textmoves to 0.39.0 for the same
reason (an infinite loop on invalid input).
Changed
- The Docker client library is now
github.com/moby/moby/client, the
client Docker Engine 29 ships, replacinggithub.com/docker/docker. That
module stopped receiving releases at 28.5 and carries two Moby
plugin-authorization advisories with no fix on its import path. ODDK never
ran the affected code — it only talks to the daemon over its socket — but a
vulnerability report that can never go green is one nobody reads. Nothing
changes for a deployment: the same API calls are made, and the client still
negotiates the API version with whatever Docker Engine is installed. - Every direct dependency is on its current release. The notable jumps: the
SQLite driver (modernc.org/sqlite1.38 → 1.58), the CLI framework
(urfave/cli3.4 → 3.11), the AWS SDK's S3 client (1.97 → 1.110),pgx
5.9 → 5.10 andklauspost/compress1.18 → 1.20. No behaviour change is
intended. Ifoddkmisbehaves after this upgrade in a way these notes do not
explain, the SQLite driver bump is the first suspect.
Fixed
- An authentication failure is recognised by its SQLSTATE, not by the English
text of the server's message. PostgreSQL localizes server messages through
lc_messages, which any parameter group can set, so on a cluster running
with a non-English locale the probe behindoddk instance statusand the
checklist reportedPostgreSQL connectivity issue (other)where it should
have saidPostgreSQL authentication failed, andadd-db-useron a missing
database returned a generic error instead of the 404 with thecreate-db
hint. S3 "no such object" and Docker "no such container" answers are now
recognised by their typed errors as well. Nothing changes where the messages
were English. oddk snapshot applyrefuses a truncated--logicalarchive before it
replaces anything. A logical archive missing itsdatabases.jsonor
globals.sqlwas discovered only while rebuilding the instance, which is
afteroddk.dbandmaster.keyhad been installed — an apply that could
not simply be retried. The physical format already had this check in
preflight; the logical one now does too, and bothapplyand
restore-instancebuild a cluster through one shared function, so the two
cannot drift apart on this again.oddk backup remove-remoteandoddk snapshot remove-remoteno longer fail
with a bareEOFwhen the S3 delete stalls past the daemon's 30-second
response deadline; the removal completed on the daemon either way. The rule
behind this and thedelete-db-userfix below is now enforced by a test, so
a new long-running handler cannot ship without it.oddk instance delete-db-userno longer fails with a bareEOFon a large
database.REASSIGN OWNED BYlocks every object the user owns in one
transaction and could outlive the daemon's 30-second response deadline; the
operation then completed on the daemon while the CLI reported a connection
error, leaving you to check whether the user was actually gone. The handler
now clears the deadline like every other long-running operation.install.shno longer tells the owner of a legacy/home/oddkinstall to
run a relocation script that was retired in v0.1.45. It says what has to
move instead.
ODDK v0.1.82
Fixed
- An instance left in
errorno longer displays asstopped.oddk list,
oddk instance statusand the per-instance header inoddk checklistderive
what they show from the container, which is what makes a database somebody
stopped out of band readstoppedrather thanrunning. But it also
overwroteerror— the one status that is never cleared on its own — so an
operation that failed and whose rollback failed left the row sayingerror
while every list command saidstopped, the word for an instance stopped on
purpose. The sameoddk checklistrun printedinstance_error:<name>and a
failing health line two lines away from the header contradicting them, and
nothing cleared the row, so it read that way indefinitely. Health checks and
notifications were always driven by the stored value and were unaffected.
Changed
-
oddk instance major-upgradenow pulls the target image itself if it is
missing, likecreate,switchandupdatealready did, instead of
stopping at the confirmation prompt to send you away for a separate
oddk pull. The pull happens after you confirm, so a cancelled upgrade
fetches nothing, and an upgrade that cannot happen on version grounds — a
downgrade, or the major the instance already runs — is still refused
instantly, without fetching anything.One message changed with it: a
--target-versionwhose image exists in no
registry now fails naming the image that could not be resolved, rather than
reporting it missing locally and advising a pull that would have failed the
same way.
ODDK v0.1.81
Changed
-
An instance's postgres password is no longer written into its container's
Docker configuration. Docker keepsConfig.Envfor a container's whole
lifetime and hands it to anything that can read container metadata, so the
credential was reachable throughdocker inspect, a backup of
/var/lib/docker, or an observability agent holding a read-only
docker.sockmount. A new cluster is now initialised with a throwaway
password and the real one is set over SQL once it is ready, so what remains
visible authenticates nothing. Recreating a container (instance apply,
switch,update) passes no password at all.This is hygiene, not a closed exposure: anyone who can read that metadata can
alsodocker exec <container> psql -U postgres, which the cluster answers
over its local socket without a password. No action is required.Containers created before this release keep their old value until their next
recreate — clearing it sooner would mean restarting the database purely to
tidy metadata.oddk instance update <name>will do it if you want it gone
now, at the cost of a brief restart. -
A recreate that meets an unexpectedly empty data volume now refuses to start
instead of initialising a fresh empty cluster in place of your data.