Skip to content

Releases

v0.13.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 10:43
v0.13.0
eb3762f

Added

  • entrypoint, tmpfs, shmSize and devices under container, for the compose fields the manifest could not express. A device goes through allow-host-paths the way a path mount does (#175, #211).
  • stopTimeout on a workload, how long an instance is given to stop before it is killed. Both runtimes honour it (#175, #211).
  • An observe_partial outcome on takt_reconcile_passes_total, for a pass that some driver did not answer (#163, #213).
  • --wait on workload apply and score apply, which blocks until the workload has settled on the manifest, and --timeout on workload apply to bound it. A wait that runs out exits non-zero naming the workload's state (#173, #216).

Changed

  • takt_health_check_duration_seconds no longer carries a workload label and takt_image_pull_duration_seconds no longer carries an image label. Both grew a series per bucket for every workload or image the server had seen (#174, #212).
  • An empty list in the UI names the CLI command that creates the resource, so a reader does not go looking for a button the UI does not have (#178, #218).

Fixed

  • The access view ran a token's workload and version together in its source column (#211).
  • A Docker daemon that could not be reached stopped every workload converging, exec workloads included. A pass now leaves only that runtime's workloads alone until it answers (#163, #213).
  • The driver event stream was watched again every second for as long as the daemon was unreachable, with a failed pass each time (#163, #213).
  • A followed services list drained every backend on a runtime that did not answer a read. It now keeps what it last saw of them until the runtime answers (#163, #213).

Commits: v0.12.0...v0.13.0

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 11 Oct 22:21
v0.12.0
3fb950a

Added

  • behind-tls under [http], for a reverse proxy that terminates TLS in front of a plain HTTP listener. With it set the session cookie is marked Secure and every response carries Strict-Transport-Security, which before only an https OIDC redirect-url switched on (#157, #190).
  • takt token list and the credentials table in the UI name the workload a token was minted for, with the instance that holds it or the version that shares it. Before, a workload token showed only its principal, so the manifest that asked for it was found by reading every manifest (#158, #209).
  • client-secret-file under [auth.oidc], a file holding the OIDC client secret as an alternative to client-secret. The file must be readable only by the user running the server, as tls-key must (#157, #190).

Changed

  • A policy apply, a token create and a token delete log the caller's principal and token id as the actor, so the server's log says who changed access and not only that it changed (#158, #209).
  • takt workload restart replaces the instances one at a time, each after the last replacement has settled, the way a specification change does. Before, it stopped every instance and then started them all, which was an outage on every restart of a workload with a count above one (#164, #208).
  • takt dev loadtest refuses to run unless --address names the server on the command line. It no longer reads TAKT_ADDRESS or the config file, so a shell logged into a production server cannot load it by accident (#172, #189).
  • The server holds a lock on lock under the data directory while it runs. A second server pointed at the same directory stops with data directory is in use by another takt server instead of running a second reconciler over the same daemon (#167, #195).
  • A data directory or keyring directory that already exists with group or other bits set stops the server, the way a readable key file does. The packaged unit creates the directory 0700, so only a directory made by hand is affected. The server also warns when it runs as root (#167, #195).
  • A not-ready /api/v1/system/ready reports database: not answering or driver <name>: not answering instead of the error itself, which carried the database path and the daemon's socket to an anonymous caller. The error is in the server's log (#170, #196).

Fixed

  • An exec workload could not rename or link a file between two directories inside its own working directory or a volume. The kernel refused it with "Invalid cross-device link", and mv hid that by copying instead (#168, #210).
  • An exec workload mounting a volume whose first start failed before its process ran, as one whose command is not on PATH does, could not start again at that version until its specification changed (#168, #210).
  • Stopping an exec workload on a host without a delegated cgroup left behind any process that outlived the command or ignored the stop, and it kept the workload's ports from the next attempt. The whole process group is now killed once the command has gone (#168, #210).
  • An exec workload redirecting to /dev/stdout or /dev/stderr was refused with "Permission denied" (#168, #210).
  • takt serve /etc/takt.toml kept every exec workload from all of /etc, because the confinement denied the configuration file's directory. It now denies the file (#168, #210).
  • An exec workload on a host running systemd-resolved lost /etc/resolv.conf the first time resolved rewrote it. /run/systemd/resolve is now readable, and the operating guide says what a workload sees of a file added to /etc after it started (#168, #210).
  • An exec manifest applied on a host whose kernel cannot confine was accepted and then failed on every paced start. workload apply and a dry run now refuse it, as they already did for resource limits the host cannot enforce (#168, #210).
  • A failure to confine an exec workload named a path under the data directory in the API error (#168, #210).
  • A workload with a count above one lost the mounted files and the shared token of its previous version as soon as the first replacement started, while the other instances still read them. Both now go once no instance of the previous version remains (#164, #208).
  • A workload with dynamic ports gave them up on every failed start, including a misspelt image tag or a registry that was down, so its first instance's address moved on every paced attempt and every workload reading it was replaced each time. The ports now move only when something else on the host is listening on one of them (#160, #207).
  • A scheduled occurrence whose start failed was tried again on every pass, as fast as the daemon answered, because the occurrence stayed due and nothing paced it. The start is now paced by the restart backoff the way any other is (#160, #207).
  • An exec workload's confinement left only the keyring, the configuration directory, the TLS key and the OIDC secret file out of what it granted, so a data directory under /opt, /usr, /etc or an exec.allow-paths entry was granted entry by entry, database and every other workload's mounted values included. The data directory and the docker config-file are now kept from every exec workload wherever they sit, and an allow-paths entry at or beneath the data directory is refused at startup (#155, #204).
  • A mounted value was emptied and then written on every rewrite, so a program that rereads the file on its own clock, such as prometheus with credentials_file, could read an empty file. The file was also unreadable to a container running as another user for the moment its mode was widened, and a crash in that moment left it so. The file is now written over its old bytes and kept readable throughout (#171, #198).
  • A mounted token's rotation revoked the old credential before the new one was written and the workload signalled, so every request in between was refused. The old token now stays valid for one minute after the rotation (#171, #198).
  • A database whose current key the keyring did not hold stopped the server even when no secret was sealed under it, which is the state takt admin restore left an archive taken without --include-keys in on a node holding no secrets. The server now generates a fresh key in that case and says so in the log. With secrets sealed under the missing key it still refuses, and the error names the keyring (#167, #195).
  • A new key file was flushed to disk before the database pointed at it, but its directory entry was not, so a crash in between could leave a database naming a key with no file behind it. The keyring directory is now synced too (#167, #195).
  • A schedule read the time it counted from in whatever location that time carried. The stored apply time is UTC, so 0 2 * * * fired at 02:00 UTC on its first occurrence and at 02:00 server time afterwards, and takt workload get reported the UTC time as the next run before the first. The expression is now read in the server's local time throughout, as the manifest reference says (#161, #192).
  • A stopped scheduled workload ran the occurrence it missed the moment it was started again, because the run that suspension stopped still counted as the last run. The schedule now counts from the start, so the workload waits for its next occurrence (#161, #192).
  • An image whose VOLUME directive names a path no takt volume covers, which postgres, mysql and redis do by default, left an anonymous volume behind on every attempt, a...
Read more

v0.11.1

Choose a tag to compare

@github-actions github-actions released this 04 Oct 22:21
v0.11.1
69374d4

Fixed

  • The UI's reference graph and a workload's reference cards left out what a variable mounted with expand: true names in its value. A workload that expanded ${workload:prometheus:http} out of a mounted variable showed an edge to the variable alone. Both now list each reference inside the value as well, one level deep as the server records it, marked with the variable it came from (#150, #151).
  • A workload replaced onto an image still being pulled read as stopped, or as failed when the stop ended its process non-zero, for as long as the pull took (#149, #152).

Commits: v0.11.0...v0.11.1

v0.11.0

Choose a tag to compare

@github-actions github-actions released this 04 Oct 14:30
v0.11.0
02fa4a4

Added

  • A health check may name a command instead of http or tcp, for a workload that publishes no port. The command runs where the workload runs: on the exec runtime confined and limited as the process is, with its environment, and on the container runtime inside the container. Exit status zero passes, and the error a failing check reports carries the exit status and the end of the command's output (#136, #148).
  • max-header-values under [http] bounds how many header values a request may carry, one hundred by default. A request carrying more is refused before a handler sees it (#147, #148).
  • digest-interval under [docker] has the server ask the registry, on that interval, what each pull: always workload's tag resolves to. One behind its tag records an imageDrifted event, says so in workload get and the UI, and sets the takt_workload_image_drifted gauge. Nothing is replaced until an apply or a restart. A new pull: follow policy is always with the server moving the hash itself when the tag moves, so the instances are replaced (#132, #145).
  • A workload reading another's address through ${workload:name:port} has its first start held until the instance it resolves to passes its health check, where the referenced workload declares one, so a reader applied beside a slow dependency is pending rather than restarting on the backoff. The wait is bounded by reconcile.readiness-wait, five minutes by default (#135, #139).
  • A mount naming a variable may say expand: true, which replaces the ${var:}, ${secret:} and ${workload:} references inside the variable's value before the file is written, so a workload configured by a file follows a moved port, a rotated secret or an edited variable the way one reading env does. With a signal, the file is rewritten and the workload signalled rather than replaced (#131, #140).
  • An allow-host-paths entry ending in :ro grants the prefix for reading only, so a path mount beneath it is accepted only when it says readOnly: true. The most specific prefix decides, which lets /:ro open the whole host to a workload that observes it without opening it for writing (#134, #137).
  • The server removes the images no workload names and no container uses, an hour after they became unreferenced. prune and prune-delay under [docker] turn it off or change the delay (#133, #138).

Fixed

  • A scheduled workload read as stopped between occurrences, which describes a workload its restart policy will restart, and under on-failure the same workload read as completed. A run that ended cleanly now reads as completed until its next occurrence whatever the restart policy says (#129, #130).

Commits: v0.10.0...v0.11.0

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 26 Sep 23:29
v0.10.0
ad0877d

Added

  • A score bundles the manifests, variables and secrets of one deployment, rendered from a values file with Go templates and applied in dependency order. takt score render, show, apply, list and delete are the verbs. Everything a score applies carries a score and a score.release label, and apply --prune and delete work from them. The server is unchanged. See Scores (#112, #124).

Fixed

  • A reconciliation pass waited on every instance it stopped, so one instance sitting out its grace period held every other workload's restart, replacement and deletion for as long as the grace period took. A pass now spawns that work and moves on, and the pass duration metric no longer carries it (#125, #127).
  • On a window narrower than the two-column layout, a long value in a detail card widened every card in its row past the page. A workload's command was the value most likely to do it. The value now ends in an ellipsis and the cards keep to the page (#128).

Commits: v0.9.0...v0.10.0

v0.9.0

Choose a tag to compare

@davidsbond davidsbond released this 24 Sep 09:14
a77a791

Added

  • Every write can name the version it expects to be replacing, the way an acl apply already could. takt workload get prints the resource's tag as ETag, takt workload apply --if-match carries it back, and takt refuses the apply when the resource has moved on since. Volume and service apply, secret and variable set, and acl apply take the same flag (#89).
  • takt workload events --since reads only the events a workload was last seen at after the given time, which a poller uses to pick up where it left off (#89, #114).
  • A workload's logs block caps what its output may grow to, naming the size it is rotated at and how many files are kept. A container's is applied by the Docker daemon, and an exec workload's by takt against the file the process writes (#87).

Changed

  • An exec workload no longer inherits the groups the server's user is in. The packaged install puts that user in the docker group, and a workload holding it could run a privileged container. The unit now grants CAP_SETGID for the drop. A server started without it, as a user in any group beyond its primary, refuses exec workloads and says so at startup. A workload already running when the server is upgraded keeps its groups until it is next started (#73).
  • The server warns at startup when authentication is off and a workload shares the host's network, since such a workload reaches the API with every permission (#73).
  • Breaking: the policy's ETag is a count of the applies that changed it, "0" before any apply, rather than a hash of the document. A tag read before upgrading no longer matches. takt acl get prints the document under Spec beside the tag, so capturing it into a file is now takt acl get | jq .Spec (#89).
  • Every operation requiring a role documents the 401 and 403 it can answer with, where most of them named neither (#89, #114).
  • Every response carries a content security policy, refuses framing and type sniffing, and insists on TLS when reached over it. A browser page's origin is accepted only from localhost or a loopback address, where any address literal was accepted before. The session cookie is marked Secure behind a proxy terminating TLS when the OIDC redirect-url is https, and the OIDC state cookie is cleared as the login completes (#77, #105).
  • The server warns at startup when authentication is enabled and takt acl init has not run (#78, #104).
  • allow-host-paths is checked again each time an instance starts, not only when the manifest is applied. A stored workload whose path no longer sits under a prefix fails to start and says so in its events (#74, #95).
  • The package makes /etc/takt/config.toml readable by root and the takt user only (#85, #94).

Fixed

  • Following the logs of an instance that had not started reported that it had ended and was waiting for a replacement (#41, #119).
  • A specification change to a workload running several instances replaced them all within a second, since every replacement's own start woke the next pass. The next instance now waits until the last replacement has stayed up for ten seconds and passed its health check (#80, #107).
  • An exec workload could read the server's own configuration, which may hold an OIDC client secret, and a TLS key kept under /etc, since the confinement granted /etc whole. The configuration's directory, the TLS key and the keyring are now refused (#75, #106).
  • A backup left on disk by a server that died mid-backup is removed at the next startup, and expired tokens are swept at startup rather than an hour later. A scheduled run retried after a failure records a run start rather than an instance start (#88, #103).
  • Stopping the server while a client held a followed log or a service stream open waited thirty seconds and then exited with an error. The server now ends open responses as it shuts down, and a second interrupt ends the process at once (#82, #99).
  • An exec workload naming a memory limit smaller than the process takt starts it through could be killed before its command ran, and then read as running (#101, #102).
  • A symbolic link beneath an allowed host path carried a path mount wherever it pointed. Links are now followed on both sides before the path is compared to the prefixes (#74, #95).
  • An apply that raced a delete of the same workload could report success and then have its row removed by the teardown, and a delete that raced an apply referencing it could leave that reference dangling. Both checks now run inside the transaction that writes (#84, #100).
  • An env key holding = set a variable other than the one the manifest named, and a value holding a NUL byte failed the start rather than the apply. The manifest now refuses both (#86, #96).
  • A container image docker would refuse was reported when the container was created rather than when the manifest was applied (#86, #96).
  • A pinned host port that something outside takt already listened on was accepted at apply and failed the start (#86, #96).
  • A driver's event stream ending, as it does when the Docker daemon restarts, left the server converging on the interval alone until it was restarted. The stream is now watched again (#81, #97).
  • An instance failing its health check under restart.policy: on-failure was never replaced, and its verdict flapped on every pass. Under never the verdict flapped the same way. A workload declaring a check under on-failure also had the check forgotten on every pass while healthy (#79, #98).
  • The packaged unit refused to start on a host without the Docker socket, which a server running only exec workloads has no need of (#85, #94).
  • A health check's http path could name a host of its own, and the server probed that host rather than the instance. The manifest now refuses a path that does not start with / (#76, #93).
  • The first restart of a failed instance waited twice the manifest's restart.delay (#83, #92).

Removed

  • The idToken form of POST /api/v1/auth, and the Go client's Login method that sent it. The CLI and the UI log in through the code and token exchanges, and a raw identity token carried no nonce binding it to either (#78, #120).

Commits: v0.8.0...v0.9.0

v0.8.0

Choose a tag to compare

@github-actions github-actions released this 17 Sep 21:42
v0.8.0
8a829b0

Added

  • GET /api/v1/node and takt node get report the machine the server runs on. The report covers the hostname, kernel, processors, memory, load and the disk under the data and volumes directories. It also sums the limits every running instance is held to (#66).
  • The web UI lands on a node page showing what the machine has and how much of it takt has allocated. The workloads list moves to /workloads (#66).
  • GET /api/v1/services?follow=true keeps the response open. It writes the matching services again, as newline-delimited JSON, each time their backends change. The Go client gains StreamServices (#63).
  • A changelog, which the release notes are now written from (#70).

Changed

  • Every exec workload runs in a cgroup of its own, so one naming no resources reports usage too. A host without a delegated subtree still runs such a workload, without a reading, and says so at startup. Stopping an exec workload now reaches a child that made its own session (#49, #68).
  • A health verdict changing wakes the reconciler. It replaces an instance that fails its check sooner, and counts a passing one as a backend at once (#63).
  • Listing services observes the host once rather than once per service (#61).

Fixed

  • A processor figure below a hundredth of a core read 0 in the instance table and on every tick of the CPU chart's axis (#67).
  • Stopping an exec workload could fail with "no such device" when its process ended just as the stop reached its cgroup (#69).

Commits: v0.7.0...v0.8.0

v0.7.0

Choose a tag to compare

@davidsbond davidsbond released this 16 Sep 09:30

Changelog

v0.6.0

Choose a tag to compare

@davidsbond davidsbond released this 12 Sep 16:33

Changelog

v0.5.1

Choose a tag to compare

@davidsbond davidsbond released this 10 Sep 21:42

Changelog