Repository navigation
Releases
Releases · dsb-labs/takt
v0.13.0
Added
entrypoint,tmpfs,shmSizeanddevicesundercontainer, for the compose fields the manifest could not express. A device goes throughallow-host-pathsthe way a path mount does (#175, #211).stopTimeouton a workload, how long an instance is given to stop before it is killed. Both runtimes honour it (#175, #211).- An
observe_partialoutcome ontakt_reconcile_passes_total, for a pass that some driver did not answer (#163, #213). --waitonworkload applyandscore apply, which blocks until the workload has settled on the manifest, and--timeoutonworkload applyto bound it. A wait that runs out exits non-zero naming the workload's state (#173, #216).
Changed
takt_health_check_duration_secondsno longer carries aworkloadlabel andtakt_image_pull_duration_secondsno longer carries animagelabel. 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,
execworkloads 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
Added
behind-tlsunder[http], for a reverse proxy that terminates TLS in front of a plain HTTP listener. With it set the session cookie is markedSecureand every response carriesStrict-Transport-Security, which before only anhttpsOIDCredirect-urlswitched on (#157, #190).takt token listand 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-fileunder[auth.oidc], a file holding the OIDC client secret as an alternative toclient-secret. The file must be readable only by the user running the server, astls-keymust (#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 restartreplaces 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 acountabove one (#164, #208).takt dev loadtestrefuses to run unless--addressnames the server on the command line. It no longer readsTAKT_ADDRESSor the config file, so a shell logged into a production server cannot load it by accident (#172, #189).- The server holds a lock on
lockunder the data directory while it runs. A second server pointed at the same directory stops withdata directory is in use by another takt serverinstead 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/readyreportsdatabase: not answeringordriver <name>: not answeringinstead 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
execworkload 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", andmvhid that by copying instead (#168, #210). - An
execworkload mounting a volume whose first start failed before its process ran, as one whose command is not onPATHdoes, could not start again at that version until its specification changed (#168, #210). - Stopping an
execworkload 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
execworkload redirecting to/dev/stdoutor/dev/stderrwas refused with "Permission denied" (#168, #210). takt serve /etc/takt.tomlkept everyexecworkload from all of/etc, because the confinement denied the configuration file's directory. It now denies the file (#168, #210).- An
execworkload on a host runningsystemd-resolvedlost/etc/resolv.confthe first time resolved rewrote it./run/systemd/resolveis now readable, and the operating guide says what a workload sees of a file added to/etcafter it started (#168, #210). - An
execmanifest applied on a host whose kernel cannot confine was accepted and then failed on every paced start.workload applyand a dry run now refuse it, as they already did for resource limits the host cannot enforce (#168, #210). - A failure to confine an
execworkload named a path under the data directory in the API error (#168, #210). - A workload with a
countabove 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
execworkload'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,/etcor anexec.allow-pathsentry was granted entry by entry, database and every other workload's mounted values included. The data directory and the dockerconfig-fileare now kept from everyexecworkload wherever they sit, and anallow-pathsentry 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 restoreleft an archive taken without--include-keysin 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, andtakt workload getreported 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
VOLUMEdirective names a path no takt volume covers, which postgres, mysql and redis do by default, left an anonymous volume behind on every attempt, a...
v0.11.1
Fixed
- The UI's reference graph and a workload's reference cards left out what a variable mounted with
expand: truenames 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 asfailedwhen 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
Added
- A health check may name a
commandinstead ofhttportcp, for a workload that publishes no port. The command runs where the workload runs: on theexecruntime confined and limited as the process is, with its environment, and on thecontainerruntime 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-valuesunder[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-intervalunder[docker]has the server ask the registry, on that interval, what eachpull: alwaysworkload's tag resolves to. One behind its tag records animageDriftedevent, says so inworkload getand the UI, and sets thetakt_workload_image_driftedgauge. Nothing is replaced until an apply or a restart. A newpull: followpolicy isalwayswith 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 ispendingrather than restarting on the backoff. The wait is bounded byreconcile.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 readingenvdoes. With asignal, the file is rewritten and the workload signalled rather than replaced (#131, #140). - An
allow-host-pathsentry ending in:rogrants the prefix for reading only, so a path mount beneath it is accepted only when it saysreadOnly: true. The most specific prefix decides, which lets/:roopen 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.
pruneandprune-delayunder[docker]turn it off or change the delay (#133, #138).
Fixed
- A scheduled workload read as
stoppedbetween occurrences, which describes a workload its restart policy will restart, and underon-failurethe same workload read ascompleted. A run that ended cleanly now reads ascompleteduntil its next occurrence whatever the restart policy says (#129, #130).
Commits: v0.10.0...v0.11.0
v0.10.0
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,listanddeleteare the verbs. Everything a score applies carries ascoreand ascore.releaselabel, andapply --pruneanddeletework 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
Added
- Every write can name the version it expects to be replacing, the way an
acl applyalready could.takt workload getprints the resource's tag asETag,takt workload apply --if-matchcarries it back, and takt refuses the apply when the resource has moved on since. Volume and service apply, secret and variable set, andacl applytake the same flag (#89). takt workload events --sincereads 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
logsblock 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
execworkload no longer inherits the groups the server's user is in. The packaged install puts that user in thedockergroup, and a workload holding it could run a privileged container. The unit now grantsCAP_SETGIDfor the drop. A server started without it, as a user in any group beyond its primary, refusesexecworkloads 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
ETagis 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 getprints the document underSpecbeside the tag, so capturing it into a file is nowtakt 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
localhostor a loopback address, where any address literal was accepted before. The session cookie is markedSecurebehind a proxy terminating TLS when the OIDCredirect-urlishttps, 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 inithas not run (#78, #104). allow-host-pathsis 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.tomlreadable by root and thetaktuser 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
execworkload 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/etcwhole. 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
execworkload 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
envkey 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
imagedocker 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-failurewas never replaced, and its verdict flapped on every pass. Underneverthe verdict flapped the same way. A workload declaring a check underon-failurealso 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
execworkloads has no need of (#85, #94). - A health check's
httppath 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
idTokenform ofPOST /api/v1/auth, and the Go client'sLoginmethod 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
Added
GET /api/v1/nodeandtakt node getreport 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=truekeeps the response open. It writes the matching services again, as newline-delimited JSON, each time their backends change. The Go client gainsStreamServices(#63).- A changelog, which the release notes are now written from (#70).
Changed
- Every
execworkload runs in a cgroup of its own, so one naming noresourcesreports usage too. A host without a delegated subtree still runs such a workload, without a reading, and says so at startup. Stopping anexecworkload 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
0in the instance table and on every tick of the CPU chart's axis (#67). - Stopping an
execworkload 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
Changelog
- 30d917c: build(deps-dev): bump eslint-plugin-vue from 10.10.0 to 10.11.0 in /internal/ui/app in the ui group (#40) (@dependabot[bot])
- 81e168b: build(deps): bump the go group with 3 updates (#39) (@dependabot[bot])
- ccf37ba: internal/ui/app/src/api: stop deletes awaiting their invalidation (#46) (@davidsbond)
- 77b26a7: internal/ui/app: redirect to login when the session expires mid-view (#45) (@davidsbond)
- 31fdfe3: internal/server/driver: add the usage type (@davidsbond)
- cd5589f: internal/server/driver/docker: report container usage (@davidsbond)
- fe4a92a: internal/server/driver/exec: report cgroup usage (@davidsbond)
- 8215447: internal/server: give the service its own instance type (@davidsbond)
- b1c5f0a: internal/server/service: report usage when getting a workload (@davidsbond)
- 85c8be8: internal/server/service: move the workload type in with the others (@davidsbond)
- 518ef1b: api,internal: carry instance usage on the wire (@davidsbond)
- d2b8d4c: pkg/client: carry instance usage (@davidsbond)
- be8c65f: internal/ui/app: show instance usage against limits (@davidsbond)
- 9e3e1a7: internal/ui/app: graph memory and cpu usage over time (@davidsbond)
- 2adf7d1: docs: describe resource usage reporting (@davidsbond)
- 85bb592: internal/ui/app: fit the usage charts to their axis (@davidsbond)
- 9745b95: internal/ui/app: hold usage history outside the view (@davidsbond)
- 9b6bee3: internal/ui/app: read logs for one instance (@davidsbond)
- 8e25176: internal/ui/app: give an instance a page of its own (@davidsbond)
- 2eea100: internal/ui/app: draw the readings as they were taken (@davidsbond)
- ec38e11: internal/ui/app: hold the instance columns still (@davidsbond)
- 71c8819: internal/ui/app: name the workload in an instance heading (@davidsbond)
- 4f1b3ad: internal/ui/app: keep a long command to one line (@davidsbond)
- 144309a: internal/ui/app: draw every usage line in one colour (@davidsbond)
- 9cfc969: internal/ui/app: import modules through an alias (@davidsbond)
- 6126e54: internal/ui/app: sort the source root into two directories (@davidsbond)
- 61715f2: internal/ui/app: read ansi escapes into styled runs (@davidsbond)
- 6bfd760: internal/ui/app: draw the colours a workload writes (@davidsbond)
- db2f7cb: internal/server: store workload events (@davidsbond)
- e9a3ad3: internal/server/event: render the sentence an operator reads (@davidsbond)
- 3657184: cmd: move the long help of five commands into usage.txt (@davidsbond)
- 26a9cf5: api, pkg/client: publish the events recorded against a workload (@davidsbond)
- 4ec9b91: docs: describe the events recorded against a workload (@davidsbond)
- e0c5999: internal/server/event: word event messages for a person (@davidsbond)
- 6d8d70a: internal/ui: sort the events table by count or last seen (@davidsbond)
- 0226538: internal/server/reconciler: record what a pass observed (@davidsbond)
- 8d9a2b9: internal/server/event: drop the reasons nothing records (@davidsbond)
- fbff620: internal/server/reconciler: record a reference that will not resolve (@davidsbond)
- 7bd389a: internal/server/service: record what an operator asked for (@davidsbond)
- f60d86f: internal/server/service: cover what a request records (@davidsbond)
- 1af46bd: internal/server/reconciler: cover what a pass records (@davidsbond)
- 0d2a8e2: internal/e2e: assert on the events a workload records (@davidsbond)
- a965a85: internal/server/event: shorten the hash a message names (@davidsbond)
- 3ca4e4e: build(deps): bump the ui group in /internal/ui/app with 2 updates (#59) (@dependabot[bot])
- ecb92a8: internal/server/event: name what a replacement and an apply concern (@davidsbond)
- c2746c8: internal/server/reconciler: record a failed check as the check's doing (@davidsbond)
- dc0e72e: internal/server/reconciler: record one event for a scheduled run (@davidsbond)
- 0f9050d: internal/server/{event,reconciler}: record a paced start once (@davidsbond)
- 8fd69f7: internal/server/reconciler: forget a discarded slot's edges (@davidsbond)
- 70ba2bf: internal/server/service: record an address change only when it moved (@davidsbond)
- 805c4f5: internal/server/service: name the version an apply moved to (@davidsbond)
- 2098637: api,pkg/client: publish the reasons a replacement and an apply carry (@davidsbond)
- 464a88a: internal/ui/app: feed the usage history from the workload page (@davidsbond)
- e5dade4: internal/server/event: keep fifty events by default (@davidsbond)
- 6804629: docs: state the new default event cap (@davidsbond)
v0.6.0
Changelog
- 4c69a16: pkg/manifest: add the token reference and volume (@davidsbond)
- c163ab0: internal/server/database: bind a token to a workload (@davidsbond)
- 22e17b3: internal/server/service: mint and revoke workload tokens (@davidsbond)
- 1f7487d: internal/server/{mount,server}: deliver and rotate token mounts (@davidsbond)
- 3854e96: internal/server/{resolve,reconciler}: mint the token an env references (@davidsbond)
- edcf242: internal/server/reconciler: revoke workload tokens with the lifecycle (@davidsbond)
- 79fa883: api,internal/{wire,server/spechash}: carry the token on the wire (@davidsbond)
- 674c623: internal/e2e: cover workload identity (@davidsbond)
- 272bfd3: internal/ui/app: recognise token references (@davidsbond)
- 9afe1d4: docs: describe workload identity (@davidsbond)
- 6c5933a: internal/ui/app: drop the access view's introduction (@davidsbond)
- 0a3d0b3: internal/ui/app: sort the credentials table (@davidsbond)
- fd4e36d: internal/server/driver/docker: inspect health on the detail path only (@davidsbond)
- 57a6508: internal/server/driver/docker: remember an ended container's inspect (@davidsbond)
- 5971b3e: internal/server/driver/exec: stop re-reading unchanged state files (@davidsbond)
- a6086ac: main,pkg/cli: carry the resolved settings in the command context (@davidsbond)
- f3adeb1: cmd/auth/login: log in without presenting the stored token (@davidsbond)
- be57f34: cmd/auth/login: save the connection beside the minted token (@davidsbond)
- 8748716: main,cmd/auth,pkg/{cli,client}: let the settings own their round trip (@davidsbond)
- 2a239b5: cmd: embed each command's long usage text from a usage.txt (@davidsbond)
- 23706b8: docs: say who restarts the server after a package upgrade (@davidsbond)
- 23b89f6: docs: make the by-hand install produce a unit that starts (@davidsbond)
- 016fa72: docs: bring the configuration page back in line with the code (@davidsbond)
- 4350981: docs: correct the acl page's anonymous surface and role table (@davidsbond)
- c7258c7: docs: match the cli reference to what the commands do (@davidsbond)
- eedbe3a: docs: correct the manifest reference against validation and drivers (@davidsbond)
- f791a28: docs: correct the operating page's grants, cgroups and token life (@davidsbond)
- b2caf1f: docs: correct the design page on tokens and the anonymous surface (@davidsbond)
- a4ce692: docs: say how far a failed start's port move reaches (@davidsbond)
- 40a70dd: docs: correct what a secret list reports (@davidsbond)
- 56828a3: CONTRIBUTING: catch up with the toolchain, scenarios and layout (@davidsbond)
- 7e3290a: internal/server: stop config comments claiming the API has no auth (@davidsbond)
- 29a01d9: internal/server/service: correct the nextRun doc comment (@davidsbond)
- 7b41ebb: cmd/token/list: include workload tokens in the help text (@davidsbond)
v0.5.1
Changelog
- e49c057: internal/server/middleware: keep http.route on the metrics (@davidsbond)