Repository navigation
Releases
v0.11.10
v0.11.9
v0.11.9
v0.11.8 let an operator grant a private source to people who sign in, on agni serve alone and by subject pattern. A person a grant admitted was still refused the same mount on the datasheet workbench, the compose bundle had no way to set a grant, and a grant couldn't follow a group. v0.11.9 closes all three. It is a patch over v0.11.8. No proto field changes, and the one exported Go change adds a field to service.Caller.
Added
agnidsreads grants, and both servers take--grants-file(PR 1898, issue 1895).--grants-filenames a YAML file holding only anaccesslist in serve.yaml's shape, and an empty list grants nothing.agnidsalso takes--grant.- Give agnids the grants agni serve has, or a person opens a mount on the viewer and is refused it on the workbench.
- On agnids a grant needs
--auth tokensand--connections-key, since agnids checks a caller only through agni serve's connections. - On agni serve,
--grants-fileis refused beside--grantor a serve.yamlaccesslist.
- The enterprise bundle keeps its grants in
access.yaml(PR 1898). The release tarball ships the file granting nothing. Bothagnianddatasheetsmount it read-only and pass--grants-file.AGNI_ACCESS_FILEin.envnames another file. Restart both after an edit.make exercise-enterprise-bundlenow runs the grant step that v0.11.8 skipped. - A grant can name an OIDC group or a GitHub org (PR 1899, issue 1896).
oidc:group:<id>admits a person whose OIDC sign-in listed<id>in the groups claim.github:org:<org>admits a person who was a member of<org>when they signed in with GitHub.- The sign-in records these claims on the person's token, and every check reads them from there with no call to the identity provider or GitHub. agnids reads the same tokens.
- A change reaches a person at their next sign-in. Someone added to a group, or a server restarted with a new
github:org:grant, signs in again to get it. Someone removed from a group keeps the grant until their token expires oragni token revokerevokes it. - A token from
agni token createcarries no claims, so a claim pattern never admits one. - GitHub sign-in asks about each org a
github:org:grant names, through the App, which needs the Members organization permission at Read there. It asks about no other org, so a person--github-allownames asuser:still needs no org check.github:org:*names no org and admits nobody. - An identity provider that leaves the groups claim out, as Entra does past 200 groups, gives the person no groups.
Changed
- agni is on goapplib v0.7.39, which adds
connections.WithViewerClaims. service.Callerhas aClaimsfield, which the auth gate fills from the request's token.
v0.11.8
v0.11.8
A team server under --auth tokens opened a design linked from a private repo only for a caller whose own GitHub connection reads that repo. A person signed in with a local account or through OIDC holds no such connection, so they saw nothing. v0.11.8 lets the operator grant a private source to people by subject. It is a patch over v0.11.7. No exported Go API and no proto field changes shape.
Added
agni serve --grant source=pattern,patternopens a private source to the people it names (PR 1897, issue 1889). The flag repeats.serve.yamltakes the same as anaccesslist of{source, allow}, and a typed--grantwins over the file. A pattern is*for anyone signed in,local:*,oidc:*orgithub:*for anyone of that kind, or one subject such aslocal:carol.- A matching caller reads the source's designs, files and mount with no call to GitHub. Anyone else falls through to their own connection, as before.
- The server checks each grant at startup, and a bad one stops it with an error naming the entry.
--grantwithout--auth tokensis refused, since without--authevery caller reads everything already.- The source matches byte for byte, so copy it from
agni mounts ls. *admits every token fromagni token create, scripts and CI included.- The deploying and running-the-server guides cover it, and
make exercise-enterpriseruns a grant step.
Changed
- agni is on goapplib v0.7.38, which adds
connections.WithSourceGrants.
Not in this release
The compose bundle passes no --grant, and the datasheet workbench agnids builds its table with no grants, so a granted person is refused a mount there (issue 1895). Claim patterns such as oidc:group:<id> and github:org:<org> wait on issue 1896.
v0.11.7
v0.11.7
A hierarchical board pushed to a server read only its top cell, even when its design.yaml set flatten_hierarchy: true. The server's verdicts on such a board were wrong, and the remote output gave no sign of it. v0.11.7 keeps flatten_hierarchy on every stored design. It also stops bootstrap from warning about companions on each start, and lets a checklist item file carry a team's own fields. It is a patch over v0.11.6. No exported Go API changes shape, and one output-only proto field is added.
Fixed
- A stored design keeps its
design.yaml'sflatten_hierarchy(PR 1891, issue 1887). Push, the viewer's upload, add and link now readdesign.yamlthrough one reader inservice/. Before this, four partial parsers each read some keys, and none read this one. A bootstrap design entry also takesflatten_hierarchy, for a board linked with nodesign.yaml.agni check --remoteandagni review --remoteprint the "only its top cell was read" note, as a local run does.agni designs getsays "reads every hierarchical block" for a design that does. - Bootstrap counts linked companions as named (PR 1892, issue 1890). A link of a declared entry follows the companions its
design.yamlnames. Each companion now records that entry in the new output-onlyArtifactSource.companion_of. Bootstrap no longer reports these companions on each start, andprune: truekeeps them. A companion linked by v0.11.5 or v0.11.6 gets the field on the next start, link or sync of its entry. No request can set the field. - A checklist item file may carry the team's own frontmatter fields (PR 1894, issue 1888), such as
owner:orlast_triaged:. The review ignores them. A field that looks like a typo of a known one, such asrul:, still fails and names the field it meant. Items within an area run in the natural order of their ids, so16comes before100.
Not in this release
A sync whose entry didn't move doesn't add companion_of, and agni designs artifacts doesn't print it (issue 1893). Operator source grants (issue 1889) wait on the agni half of the goapplib v0.7.38 bump.
v0.11.6
v0.11.6
A person with a local account could sign in at /signin in a browser, but a terminal had no way in. They had to ask the operator for agni token create. The compose bundle and the Helm chart also had no switch for local accounts. v0.11.6 adds agni login --with local, and turns local accounts on in the bundle and the chart. It is a patch over v0.11.5. No exported Go API and no proto field changes shape.
Added
agni login --remote <url> --with local --user <name> --password-stdinsigns in from a terminal with a local account (PR 1886, issue 1879). It keeps the token the same way the GitHub and OIDC logins keep theirs.POST /signin/localalso takes a JSON body and answers{token, subject, expires}with no cookie. A refusal answers{error}with a 401, a 429 or a 400. The JSON path goes through the same rate limits and the same password check as the form.- The enterprise compose bundle and the Helm chart turn local accounts on (PR 1886). The bundle reads
AGNI_LOCAL_ACCOUNTS, and the chart readslocalAccounts. Both default to off. The deploy guide shows how to add an account in each, throughdocker compose execorkubectl exec.
Changed
- The enterprise exercise signs a local account in from the form and from the CLI in every mode (PR 1886): binary, compose bundle and Helm on kind.
- A browser test drives the local sign-in form into the viewer (PR 1886). A second test confirms that a local user can add, list and use their own GitHub connection with
agni connections add --mine. agni login's errors mention local. A server with no device-flow provider points toagni login --with local, and a bad--withsays "want github, oidc or local".
Not in this release
Password reset by email waits on issue 1884. agni users passwd resets a password today.
v0.11.5
v0.11.5
A team whose hardware repo passes 256 MB could not mount it, though each board fit. A team that can use neither GitHub nor an OIDC provider had no way to sign people in one by one. v0.11.5 mounts a repo past the cap lazily, and adds local accounts with a username and password. A link of a board's declared entry now brings its companions, as a push does. It is a patch over v0.11.4. No exported Go API and no proto field changes shape.
Added
agni serve --auth tokens --local-accountssigns people in with a username and password (PR 1878, issue 1815)./signingains a form, and a good sign-in mints the same agni token a GitHub or OIDC sign-in mints, forlocal:<username>, valid for 30 days.agni users add|ls|rm|passwdmanages the accounts in--store, and only an operator on the server's machine can make one. The store keeps a bcrypt hash. A wrong password and an unknown username get the same 401 and take as long, and the form answers 429 after 5 tries per username or 20 per address in a burst.- A GitHub repo past the mount cap mounts lazily (PR 1881, issue 1877). The server lists the commit's tree and downloads nothing, and a read fetches the folder the file sits in, since a schematic opens its sheets from beside it. A commit under the cap is snapshotted whole, as before.
--mount-max-bytesand--mount-max-filesset the cap, asmount: {max_bytes, max_files}in--configand the chart, and a too-large error names them. make exercise-formatsruns every format's oracle and prints one row per format and corpus file (PR 1874, issue 1714). It shows what read, what was compared and a verdict, gives a row to each format with no oracle, and exits 1 while any row fails or does not read.
Fixed
- Linking the entry a
design.yamldeclares links its companions too (PR 1876, issue 1873). Each companion is linked from the same mount and ref as an artifact of its own, with the iddesigns pushgives it. A bootstraplink:needs only the entry, and a companion added todesign.yamlarrives on the next sync. A link of a folder whosedesign.yamlnames an entry links that entry, where it used to be refused for holdingdesign.yaml. A companion is skipped when the design already holds an artifact of its id or one linked to its path. - User-facing strings lost their last em-dashes (PRs 1874 and 1882, issues 766 and 1875). A datasheet-backed rule message ends with ", per " now.
import-resultswrites a KiCad violation and its item as<violation> (item: <item>), and still reads results imported in the old form. web/src/highlights.tsheld NUL bytes (PR 1874, issue 360). Anul-checkintestall-scannow fails on any tracked text file holding one.
Changed
- goapplib moves to v0.7.37 (PRs 1881 and 1885). It brings lazy GitHub snapshots, credentials looked up only when a mount's driver fetches, and goapplib's two CodeQL fixes. oneauth moves to v0.3.22.
Upgrading
A script that parses a datasheet-backed rule message by its em-dash should read ", per " instead.
v0.11.4
v0.11.4
A team that keeps its project.yaml at the top of the folder holding its boards couldn't link that folder as a pack. The link listed every file under the folder, and the boards pushed it past the mount's 256 MB limit, so a bootstrap packs: entry kept /readyz at 503. v0.11.4 makes a link read what agni packs push reads. It also takes gorilla/websocket to the commit that fixes GO-2026-6278, through servicekit v0.2.6. It is a patch over v0.11.3. One exported Go type changes shape, service.PackImporter, and no proto changes.
Fixed
- A linked pack lists only what its
project.yamlnames (PR 1872, issue 1871). A link listsproject.yaml, then each path its tiers name, and fetches a file only when the pack reads or keeps it. Boards beside it are never listed or fetched, so they count against no size limit. A link may name<folder>/project.yamlas well as the folder. - A sync after a commit that changes none of a pack's files leaves the pack unchanged (PR 1872). A board edited beside a linked pack used to rewrite it on the next push webhook or poll. The pack now records the new commit and reports unchanged.
- GO-2026-6278 is fixed (PR 1872, issue 1868). servicekit v0.2.6 moves
gorilla/websockettov1.5.4-0.20240701034025-d67f41855da4, where a client's mask keys come fromcrypto/rand. No tagged gorilla release has the fix yet.
Changed
service.PackImportertakes a lister in place of the folder's paths (PR 1872). An embedder passing its own importer toPackService.WithImporterswitches toprojects.PackFromFolder.projects.ListFilesturns a list of paths into the lister it takes.
Upgrading
A pack linked before v0.11.4 recorded a read hash over its whole folder. Its first sync after the upgrade reads it as changed and rewrites it once, with the same files.
v0.11.3
v0.11.3
A server stopped while it was writing to its store could leave the write half-done. agni serve stopped its background work when it exited, but it didn't wait for any of it. Say a poll pass or a webhook sync was rewriting a design, the bootstrap was linking one, or a sweep was removing old uploads. Each of them could still be writing when the process ended. v0.11.3 makes the server wait for them. It is a patch over v0.11.2, with no change to an exported Go API or a proto.
Fixed
agni servewaits for its background work before it exits (PR 1870, issues 1867 and 1869). A poll pass, a webhook sync, the bootstrap retries, the token prune, Graph subscription renewals and the uploads and records sweeps each stop at their next read once the server stops, and the server waits until they have. A poll test had flaked on Windows over it, because its temp folder's cleanup found the store still being written.
v0.11.2
v0.11.2
A team running agni in its own network can now declare what a server holds and how it runs, in two files the server reads at every start. agni serve --bootstrap makes the connections, mounts, packs, designs and projects a file names, so a pod that comes back with an empty volume holds its boards again (PR 1852). agni serve --config reads serve's flags from YAML, and the Helm chart passes that file alone (PR 1856). A stored design now reads its folder's design.yaml the way agni check <folder> does, whether it was pushed, added from a mount or linked. It keeps the companions the descriptor declares, reads the entry it names and runs its intent (PRs 1855, 1859, 1863 and 1866). agni designs add can be scripted, since it keeps every board it can and a second run can skip or update (PR 1865).
It is a patch over v0.11.1. No exported Go API and no proto field changes shape, and the protos only gain fields. Coming from v0.10.x, read v0.11.0's notes first, since its Breaking section applies.
Added
agni serve --bootstrap FILEdeclares what a server holds (PR 1852, issue 1808). The file names connections, mounts, packs, designs and projects, and the server makes them at every start. An entry that already matches is left alone, one whose source moved is linked again, and one that fails is logged by name and retried with backoff./readyzanswers 503, naming each failed entry, until every entry applies, and the chart's readiness probe moves to it. A stored design, pack or project the file doesn't name is kept and logged, andprune: truedeletes it. The chart takes abootstrap:value, and the compose bundle takesAGNI_BOOTSTRAP.agni serve --config serve.yamlreads serve's flags from a YAML file (PR 1856, issue 1853). Each key names a flag, and sections nest, sogithub: {client_id: x}sets--github-client-id. A flag on the command line wins over the file. An unknown key, two spellings of one flag or a value the flag refuses stops the server before it listens, naming the key. The chart rendersserve.yamlinto theagni-serveConfigMap with the bootstrap folded in, and its newservevalue adds settings the chart doesn't set itself.agni designs addkeeps what it can (PR 1865, issue 1860).AddDesignsRequestgainsallow_partialandon_exists(fail, skip or update), andAddDesignsResponsegains oneAddResultper proposal, saying whether it was added, updated, unchanged, skipped or refused, and why. The CLI printsrefused <folder> <reason>for each refused board and exits 1 after keeping the rest.--onlynarrows what--yeskeeps, and--skip-existingor--updatelets a second run succeed.- A guide section tries agni on a new install (PR 1850, issue 1805).
guide/deployingwalks a team through copying the public Jetson baseboard into its GitHub, pushing the example project as a pack, and linking and reviewing the board, and says what the review shows.
Fixed
- A stored design keeps the companions its
design.yamldeclares, and reads the entry it names (PR 1863, issue 1858). An ODB++ board and an EDIF schematic export declared together used to lose the schematic ondesigns push, anddesigns addrefused the folder as two designs. The design's record now keeps the declared entry's artifact, so the stored design reads the board as the folder does, rather than the schematic its type order prefers. Linking the declared entry records it the same way. - A linked design keeps its
design.yaml's intent, and a stored design's check runs it (PR 1859, issue 1854).agni check designs/<id> --remotelets the server build the design's catalog, so--rulenames go as written.--tagon a stored design under--remoteis refused, as under--pack. agni designs addkeeps the intent a board'sdesign.yamldeclares (PR 1866, issue 1864).--updatestores a changed intent though no file the design holds changed, and an intent that doesn't parse refuses the board.- A refused board's reason names a missing file by its mount URI (PR 1866). It used to show the folder the mount serves from on the server.
- A link of a declared KiCad root sheet takes its child sheets and project (PR 1855, issue 1851), the files a push of the folder takes. The Review panel offers the checklists of the pack a design is viewed under.
- A project whose
project.yamldoesn't list itsprofiles/orparams/folder says so (PR 1862, issue 1861).check,review,serveandpacks pusheach print one note naming the folders and the lines to add, where the project used to run without those tiers silently.
v0.11.1
v0.11.1
v0.11.0's tag built the agni image but failed before it published the rest. In the agnids image, agnids exited at start, since it tried to create its --store folder /var/lib/agni/meta as a user that can't write there. The release's Helm check also never started, since kind couldn't load the multi-platform agni image. So ghcr.io/panyam/agnids:v0.11.0 never got its tag, the chart never published, and the v0.11.0 GitHub Release stayed a draft. v0.11.1 fixes both. It is a patch over v0.11.0, with no change to an existing Go API. Coming from v0.10.x, read v0.11.0's notes first, since its Breaking section applies.
Fixed
- agnids starts over a store folder it can't create (PR 1848, issue 1847). agnids only reads agni serve's
--store, so it no longer makes the folder, and a folder that isn't there yet reads as empty until agni serve makes it.storeurl.ReadOnly()opens a file:// store that way. The agnids image starts again, andhack/image_smoke.sh agnidspasses.
CI and the release
- The release's kind cluster pulls the published agni image from GHCR (PR 1848) instead of loading a multi-platform image it can't import.
- images-agnids also runs on changes under
internal/,mountset/andservice/(PR 1848). It had failed on every push since PR 1822, and nobody watched it. - CI's scan job reads the whole history, as
make secretsdoes on a laptop (PR 1849, issue 1846)..gitleaks.tomlallows the wire fixture's old page tokens, which history still holds.