Skip to content

Releases

ObjectFS v0.17.1

Choose a tag to compare

@github-actions github-actions released this 20 Sep 19:31
99f0812

The 0.17.0 release built and never published, for the second time in three releases, and again because
a gate was wrong rather than an artifact.

0.17.0 has no downloadable binaries. It is a valid module version — go get github.com/scttfrdmn/[email protected] resolves and always will — but there is no release page and no
tarball, deb or rpm carrying it. Everything 0.17.0 added is in 0.17.1; this is the release to install.

Fixed

  • release.yml's asset inventory reported a correct tarball as broken. The step that checks every
    published asset failed with "dist/objectfs-linux-amd64.tar.gz does not contain a file named
    objectfs-linux-amd64", and then printed objectfs-linux-amd64 on the following line as part of its
    own diagnostic. The archive was right.

    tar -tzf "$tgz" | grep -qx "objectfs-$platform" || fail    # under `set -o pipefail`

    grep -q exits at its first match. If tar still has a member name to write it is killed by SIGPIPE,
    and pipefail promotes that to a failed pipeline because the match succeeded. What decides it is
    whether any member follows the one that matched — not buffering, which was the first guess and was
    wrong. Measured against a two-member archive whose first member is 25MB: matching the first name exits
    141, matching the last name exits 0. Through 0.16.0 these tarballs held exactly one member, so nothing
    followed the match and tar was already finished; 0.17.0 was the first tag where mount.objectfs (#533)
    came after it.

    ci.yml had the same line and was green throughout, for the mirror-image reason: it matches
    mount.objectfs, which tar lists last. Reordering the archive members would have started it failing on
    a correct tarball. Both now read the listing once and match it with a herestring, which has no writer
    process to signal. That is also why no pull request could have caught this: one fact, checked in two
    places, written two different ways, and the copy that only ever runs on a tag was the wrong one.

  • The release job now asserts the mount helper in both directions — present in the three Linux
    tarballs, absent from the two darwin ones. #533 added the helper and allow_different_binary_count: true to permit the asymmetry, and that setting makes every other asymmetry equally legal, so a
    helper that stopped being built, or started being built for a platform with no
    /sbin/mount.$TYPE protocol, would have been silence rather than a build failure.


Verify a download. The authenticated path first, because the quick one below it is
only an integrity check: a per-asset .sha256 is served from the same release as the
asset it describes, so it detects a corrupt download and proves nothing about origin.

# 1. authenticity: the checksum list is signed by this repository's release workflow,
#    keylessly, so there is no public key to fetch and trust out of band.
cosign verify-blob \
  --bundle checksums.txt.cosign.bundle \
  --certificate-identity 'https://github.com/scttfrdmn/objectfs/.github/workflows/release.yml@refs/tags/v0.17.1' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  checksums.txt

# 2. integrity: your download against that now-trusted list.
sha256sum --ignore-missing -c checksums.txt

Without cosign, an integrity-only check (no authenticity guarantee). A per-asset
.sha256 holds a bare digest with no filename, which sha256sum -c cannot read, so
the filename is supplied here:

printf '%s  %s\n' "$(cat objectfs-<platform>.tar.gz.sha256)" objectfs-<platform>.tar.gz \
  | sha256sum -c

Container image: ghcr.io/scttfrdmn/objectfs:0.17.1

Full changelog: https://github.com/scttfrdmn/objectfs/blob/v0.17.1/CHANGELOG.md

ObjectFS v0.16.0

Choose a tag to compare

@github-actions github-actions released this 18 Sep 22:52
6673bbf

Fan-out reads, fstab mounts, and a gate that can see what it is gating.

The read path stops paying for its own optimism: a range read of a compressed object now probes the
fan-out with one chunk instead of committing a full wave, so discovering that an object is not
seekable costs one chunk rather than most of the object.

An ObjectFS filesystem can now be mounted the way every other filesystem on the machine is. The Linux
packages ship mount.objectfs and link it at /sbin/mount.objectfs, which is the path mount(8)
compiles in and resolves an unknown -t objectfs to — so both mount -t objectfs s3://bucket /mnt and
an /etc/fstab line work, and the packaging job now proves it by installing the deb and running
mount -t objectfs against real util-linux rather than asserting the file exists.

The rest is the gate, which turned out to have been checking less than it claimed in four separate
ways. A pull request based on anything other than main ran no jobs at all and read as green
because the checks never existed rather than because they passed. G115 was excluded from the linter, so
twelve integer-conversion alerts nobody could see were hiding four real defects — one of which could
record a tar entry's file mode as a different, entirely plausible mode. The coverage job's
internal/fuse floor was being decided by runner load. And no job in any workflow declared
timeout-minutes, so a hung one held the required checks for six hours. Each of those is now enforced
by a test that walks the tree rather than by a list of the cases someone had already thought of.

Fixed

  • A tar entry could state one file mode and have a different, entirely plausible one recorded.
    BuildIndexFromBytes narrowed tar.Header.Mode (an int64 read from a 12-byte field of an archive
    this process did not write) to the uint32 an ArchiveEntry records. So mode 0x1_0000_0644
    narrowed to 0644 and -1 to 0777 with every special bit, with nothing downstream able to tell
    the difference. Go's own archive/tar writes and reads back both of those values in its default and
    GNU formats — measured, not assumed — so producing such an archive takes no special tooling.

    An entry whose mode cannot be recorded as what it says now stops the index with a new
    ErrMalformedEntry rather than being recorded as something else. The bound is representability and
    deliberately not the permission mask: a tar mode field legitimately carries file-type bits, and
    Apache Commons Compress writes 0100644 for a regular file, so masking would reject archives from a
    mainstream producer. (#525)

  • The predictive cache named four of its six model weights after unprintable control characters, and
    training wrote keys prediction never read.
    The fallback in getFeatureName was "feature_" + string(rune(index)), which builds the Unicode codepoint numbered index — so feature 6 was named
    "feature_\x06", not "feature_6". Worse, the named-feature list existed twice, once in
    getFeatureName and once inline in PredictionModel.predict, and the two disagreed past index 5.
    updateModel wrote a weight under one spelling and predict looked one up under another; a map
    lookup that misses is not an error, so the feature silently contributed nothing to the prediction and
    training on it had no effect at all.

    One featureName function now serves both sides, so they agree by construction, and the fallback
    formats the index as decimal text. (#525)

  • An empty connection pool panicked instead of returning an error.
    recovery.ConnectionPool.GetConnection computed its round-robin index as
    nextIndex.Add(1) % uint32(len(cp.managers)), and NewConnectionPool accepts size 0 without
    complaint — a pool size read from configuration is how that happens. The first GetConnection then
    died with an integer divide by zero, in the package whose entire subject is surviving failures. It
    now returns an ErrCodeConnectionPool error that says the pool holds no connections, which is a
    different diagnosis from the "no healthy connections available" the retry loop reports. (#525)

  • A multipart upload of a file past roughly 1.25 TiB asked S3 for part numbers it rejects.
    CalculateOptimalChunkSize's size ladder tops out at eight times the configured base chunk, so with
    the 16 MiB default the largest part is 128 MiB and 10,000 parts cover 1.25 TiB — but the base is
    configuration, and at a 5 MiB base the ceiling binds at 400 GiB. Past it, every part number above
    10,000 is rejected individually, after the first 10,000 have been transferred, billed, and left in
    the bucket for an abort to clean up. The chunk size now grows to keep the part count inside S3's
    ceiling, which is what S3 wants for an object that size anyway, and is capped at the 5 GiB maximum
    part. Fixed in the pure function rather than at its one call site, so the invariant holds for
    anything that computes a part count from it — today's in-memory path cannot reach 1.25 TiB, but a
    streaming one would. (#525)

  • A pull request based on anything other than main ran no CI at all. ci.yml and
    security.yml both filtered their pull_request trigger on branches: [main], so a stacked pull
    request — one whose base is another feature branch — started none of their jobs: not test, not
    lint, not coverage, not Security Scan, not one of the twelve build-tags/cross-build cells.
    Nothing failed, which is what made it invisible. The checks never existed, so gh pr checks
    returned a single row, dependabot skipping, and the pull request read as green because nothing
    was red. #511 was reviewed in that state.

    The window also closes at precisely the moment it stops being useful: GitHub retargets a stacked
    pull request to main when its parent merges, so CI first runs after review has already happened
    against zero signal.

    security.yml was not named in the report but had the same filter, and it matters more there —
    Security Scan is a required status check on main, so the trigger being filtered out meant a
    check that is supposed to be able to block a merge could not report at all. The push trigger keeps
    its branches: [main] in both files; that filter is a different question with a correct answer,
    which is to stop a feature-branch push from duplicating the pull request's own run.
    (#512)

  • The coverage gate flaked on internal/fuse, failing unrelated pull requests. Two runs of the
    job on the same commit measured the package at 71.84% and 72.54% against a floor of 72, so a
    0.5-point margin was being decided by how loaded the runner was; one Dependabot bump that does not
    import the package at all failed on it.

    The two profiles differ by exactly eight statements, and all eight are one arm: fetch serving a
    read from a GET already in flight, the slice it takes from that leader, and coveringLocked's
    returning branch. A follower only exists when a second read for a contained range arrives while the
    first GET is still outstanding — which an idle machine arranges by accident and a loaded runner does
    not — so the arm was covered by luck rather than by a test.

    Those statements are owned by tests now, which removes the swing and also covers six statements
    that had never been executed on any run. The floor stays at 72 deliberately: ratcheting it to the
    new measurement would spend the margin the work was done to create. (#438)

  • A hung CI job could hold a pull request's required checks for six hours. No job in any of the
    five workflows declared timeout-minutes, so every one of them inherited GitHub's default of 360
    minutes. Nothing here takes anything like that — the whole gate is under five minutes of wall clock
    and the longest job anywhere is a 15-minute two-platform docker build — so a job that reaches the
    default has not run long, it has hung: a test deadlocked on a channel, an apt-get waiting on a
    prompt that will never come, a curl to a host that stopped answering. cancel-in-progress does
    not rescue it, because a new push cancels the run rather than the wait and then starts its own
    six-hour clock.

    All 23 eligible jobs now carry a bound sized from observed runtime — a generous multiple of each
    job's worst measured run with a floor of 10 minutes, so a hang fails in minutes and a slow runner
    never fails at all. The 24th, release.yml's gate, cannot have one: Actions rejects
    timeout-minutes on a job that calls a reusable workflow, and rejects it by failing the entire file
    before any job starts. It is bounded by the jobs inside the workflow it calls.

    TestEveryWorkflowJobHasATimeout walks .github/workflows rather than naming files, so a workflow
    added later cannot arrive without one, and it bounds the value at 60 minutes as well as requiring
    it: timeout-minutes: 360 would satisfy a presence check while bounding nothing. (#531)

Added

  • An /etc/fstab mount helper, so an ObjectFS filesystem can be mounted the way every other
    filesystem on the machine is.
    The Linux packages now ship mount.objectfs and link it at
    /sbin/mount.objectfs, which makes both of these work:

    mount -t objectfs s3://bucket /mnt/objectfs -o _netdev,config=/etc/objectfs/config.yaml
    s3://bucket  /mnt/objectfs  objectfs  _netdev,config=/etc/objectfs/config.yaml  0 0
    

    mount(8) resolves a filesystem type it does not know by exec'ing /sbin/mount.TYPE. That path is
    compiled into util-linux — not searched for on PATH, with no configuration for it — so the filename
    is the registration, and there was previously nothing there: an fstab entry failed with unknown filesystem type 'objectfs' and no other information. The binary is packaged to
    /usr/bin/mount.objectfs, because nfpm has one bindir per package and /usr/bin is where
    objectfs must be; scripts/postinstall.sh creates th...

Read more

ObjectFS v0.15.1

Choose a tag to compare

@github-actions github-actions released this 17 Sep 17:38
cfebbb1

The 0.15.0 release built and never published.

Everything up to the last step went green: the 40-job gate, five tarballs, three debs, three rpms with
their checksum siblings, the Docker image pushed, the release binary scanned. Then the step that
checksums every asset and signs the list exited on sha256sum: objectfs-0.15.0-1.aarch64.rpm.sha256: no properly formatted checksum lines found, and no release page was ever created.

The cause is a format assumption that was written down as fact. GoReleaser's checksum: split: true
writes a bare digest — 64 lowercase hex characters, no filename, no trailing newline, 64 bytes
exactly — and sha256sum -c cannot read that at all; it needs a <hash> <name> line and fails the
whole file. The workflow ran sha256sum -c "$asset.sha256" over all eleven, under a comment asserting
"the <hash> <name> form that both this file and the per-asset siblings are written in". Review had
nothing to catch: the code agreed with its own documentation. scripts/install.sh had it right the
whole time, by comparing the digest directly rather than shelling out to check mode, which is also why
this was invisible until a real publish.

The v0.15.0 tag stays where it is. proxy.golang.org had already cached it by the time the failure
was diagnosed, so its hash is in the checksum database permanently; moving the tag would make go get
fail for every consumer forever, and GlobalFS pins this module. So v0.15.0 remains a valid module
version whose code is exactly this code, and 0.15.1 is the first tag of it that publishes assets. The
0.15.0 entry above describes what shipped; nothing in it changed.

Fixed

  • The release could not publish. release.yml's checksum-and-sign step no longer uses
    sha256sum -c on a per-asset .sha256. It reads the digest with tr -d '[:space:]' — chosen over
    awk '{print $1}' so that a <hash> <name> sibling, which a future GoReleaser or split: false
    would write, is rejected loudly rather than silently absorbed — then asserts the shape (lowercase
    hex, nothing else) and the length (64, because a truncated digest still compares equal to itself)
    before comparing it against checksums.txt. Dropping -c costs no coverage: checksums.txt is
    computed by sha256sum $assets from the bytes on disk one line above, so comparing each sibling
    against it is what verifies the sibling against the artifact.
  • The release notes printed a command that cannot work. The integrity-only fallback said
    sha256sum -c objectfs-<platform>.tar.gz.sha256, which fails on every asset of every release for
    the reason above. It now supplies the filename the bare digest lacks. SECURITY.md carried the same
    command and has the same fix.

Added

  • internal/config/release_checksums_test.go — the coupling that was missing. .goreleaser.yml
    produces this format, release.yml cross-checks and documents it, and scripts/install.sh verifies
    every user's download with it; nothing tied the three together, and the break was invisible until a
    release was half-published. Three tests: no consumer passes a .sha256 sibling to check mode
    (walking .github/workflows/ rather than enumerating it, so the next workflow is covered too, and
    skipping comments, since both files now describe the broken command on purpose); .goreleaser.yml
    still sets split: true and algorithm: sha256, because turning split off publishes no siblings at
    all and install.sh treats a missing one as fatal; and install.sh still verifies by comparing a
    non-empty published digest against a computed one — the non-vacuity guard, since a rewrite that
    dropped verification entirely would satisfy the prohibition perfectly. Each was verified by
    reintroducing the corresponding defect and watching the test fail.

Verify a download. The authenticated path first, because the quick one below it is
only an integrity check: a per-asset .sha256 is served from the same release as the
asset it describes, so it detects a corrupt download and proves nothing about origin.

# 1. authenticity: the checksum list is signed by this repository's release workflow,
#    keylessly, so there is no public key to fetch and trust out of band.
cosign verify-blob \
  --bundle checksums.txt.cosign.bundle \
  --certificate-identity 'https://github.com/scttfrdmn/objectfs/.github/workflows/release.yml@refs/tags/v0.15.1' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  checksums.txt

# 2. integrity: your download against that now-trusted list.
sha256sum --ignore-missing -c checksums.txt

Without cosign, an integrity-only check (no authenticity guarantee). A per-asset
.sha256 holds a bare digest with no filename, which sha256sum -c cannot read, so
the filename is supplied here:

printf '%s  %s\n' "$(cat objectfs-<platform>.tar.gz.sha256)" objectfs-<platform>.tar.gz \
  | sha256sum -c

Container image: ghcr.io/scttfrdmn/objectfs:0.15.1

Full changelog: https://github.com/scttfrdmn/objectfs/blob/v0.15.1/CHANGELOG.md

ObjectFS v0.14.0

Choose a tag to compare

@github-actions github-actions released this 15 Sep 06:23
ccfb73e

Packaging, and a release that carries its own packages.

.deb and .rpm files are attached to this release alongside the binary tarballs. That is the whole
of the packaging deliverable: there is no apt or yum repository to add, and nothing published points at
one. The machinery to build and sign both repositories exists and is exercised against a throwaway key
on every pull request, and it stays dormant until a signing key is configured — the Added entry below
has the reasoning, which is that a repository nobody can verify is worse than no repository.

The milestone this release is named for closed with its two remaining items moved out rather than
finished: the /sbin/mount.objectfs fstab helper (#136) and the Rocky Linux 9 install-to-fstab CI job
that depends on it (#149) are both in Future Work now. They are named here rather than left for the
version number to imply they shipped.

Security

  • A new gosec finding now blocks a merge (#415). It did not before, and the reason is worth
    stating precisely because everything about it looked correct: Security Scan runs
    gosec -no-fail, so the job passed on any number of findings, and the check that did go red was
    gosec — the code-scanning check derived from the SARIF upload, a different check with a different
    name. That one reports on pull requests and not on push: main, so it could never join the required
    contexts: a required check that does not always report blocks every PR forever. The upshot was that
    #414 added a uint64 → int64 conversion, gosec reported "1 new alert", and the PR stayed mergeable.
    It was caught by someone reading the checks by hand.

    -no-fail stays, because the upload needs the complete report — including the three sdks/c
    findings the SARIF format fix back-fills a path onto, which reach no other tool. The gate is instead
    a new final step running .github/scripts/gosec-gate.sh, which diffs the report against
    .github/gosec-baseline.txt. Security Scan is a job name, so it reports on every trigger, which
    is what lets it be required.

    The baseline is the twelve pre-existing G115 integer conversions across eight files, keyed by
    (rule, file, count) — not by line number, which moves whenever anything above it moves. A
    severity threshold was not an option: all twelve are error level, identical to what a new finding
    would report, so there is nothing to threshold on. The ratchet is exact in both directions, so
    fixing one of these also fails until its line goes with it; a slot kept after its finding was
    fixed is permanent headroom for the next conversion in that file.

  • toolchain bumped to go1.26.6, clearing seven standard-library advisories govulncheck began
    reporting the moment that patch release shipped: quadratic complexity in net/url's resolvePath,
    JavaScript regexp context tracking in html/template, a post-handshake message limit in
    crypto/tls, ReadHeaderTimeout on the unencrypted HTTP/2 check in net/http, recursion depth
    guards in encoding/xml and encoding/asn1, and Punycode label rejection in golang.org/x/net/idna.
    All seven were reachable from this code — the xml one through CopyObject, the asn1 one through the
    predictive cache's Close, the idna one through testaws and the S3 client — and none was a defect
    in it.

    This is the procedure the comment above the directive already describes, and it is worth noting what
    the failure looked like: Security Scan went from green to red on every branch with no commit
    touching Go code, because the advisory database learned about a fix before this repository did. A
    security gate that turns red on its own is working. govulncheck ./... reports no vulnerabilities on
    1.26.6.

Added

  • Signed apt and yum repositories, built and tested but deliberately not published (#138, part
    (c)). pages.yml constructs both from the release assets and signs them whenever a signing key is
    available at deploy time, ci.yml's repo-install job builds them against a throwaway key on every
    pull request and installs from them in three containers, and scripts/setup-repo-debian.sh and
    scripts/setup-repo-rhel.sh configure them with verification on. No key exists, so nothing is
    published: objectfs.io/apt and objectfs.io/yum are unserved and no page names them.

    The decision, since the rest of this entry describes a repository nobody can add. Publishing an
    apt or yum repository means holding a signing key — apt update refuses an unsigned repository and
    only accepts one marked [trusted=yes], which turns authenticity off, and gpgcheck is dnf's
    default. So an unsigned repository is not a lesser version of a signed one; it is a repository
    nothing can install from. A key then has to be kept out of reach and rotated for as long as anyone
    has the repository configured, and a key gone stale is worse for those machines than no repository
    was, because it leaves a trusted signer behind. Hosting was never the obstacle — GitHub Pages holds
    ~33 MB of packages per release against a 1 GB cap, so a five-release bound is ~165 MB — and neither
    was the code, which is written and verified. What was not worth taking on is the key.

    Packages ship attached to each release instead, and unsigned, with a published SHA-256 per asset:
    install.sh verifies the tarball's with no flag to skip it, and apt install ./file.deb and dnf install ./file.rpm check the package's own digests. That establishes that a file arrived intact,
    not who built it, which is the difference between a checksum and a signature and is what an unsigned
    release offers.

    Publishing is one repository secret away. release.yml signs when GPG_SIGNING_KEY is set and
    warns and skips when it is not; pages.yml publishes on the same condition. The whole path stays
    exercised on every pull request precisely so that turning it on is a secret rather than a rewrite —
    a dormant capability that stops being tested is one that no longer exists, and that gets discovered
    at the moment someone tries to use it.

    The rest of this entry records what was built and what building it found.

    The two scripts do not offer the same guarantee, and the asymmetry is apt's and rpm's rather than
    this project's.
    setup-repo-debian.sh writes a deb822 entry with Signed-By:, which authorises
    the key for this repository and no other; a key in /etc/apt/trusted.gpg.d — where apt-key add,
    which #138's text specifies, would put it — is a valid signer for every repository the machine
    reads, Debian's own openssh-server included. rpm has no equivalent: rpm --import adds the key to
    a single system-wide keyring, gpgkey= in a .repo file does not create a per-repository one, and
    so trusting this repository on a RHEL-family machine means trusting the key for everything.
    setup-repo-rhel.sh prints that before importing anything rather than papering over it.

    Both fail closed. An index that does not verify is refused and there is no flag to proceed anyway;
    repo_gpgcheck=1 is set alongside gpgcheck=1 on the rpm side, which is the setting that is off by
    default everywhere and therefore the one worth turning on deliberately. When no signing key is
    available at deploy time, no repository is published rather than an unsigned one — an unsigned
    repository would fail at a user's apt update instead of in CI.

    Four defects were found by installing from a real repository in a container, and none of them was
    reachable any other way:

    • nfpm builds unsigned rpms. The repository was signed and the packages were not, so the first
      run on rockylinux:9 downloaded the package and failed with Error: GPG check FAILED. Worth
      being precise about why the deb had no such problem, because it is the reason only the rpm needs a
      signature block: apt's InRelease signature covers the Packages indexes, which carry each
      .deb's checksum, so one signature at the top transitively covers the packages. rpm has no such
      chain — each package stands alone, and an unsigned one is unsigned however well signed the
      metadata around it is. nfpm.yaml now carries an rpm.signature block (on the top-level rpm:
      section, not under overrides.rpm:, which nfpm rejects outright), and release.yml signs the rpm
      whenever a key is available. With no key it warns and ships unsigned, and then asserts the packages
      really are unsigned rather than skipping the check — because no-secret and
      key-never-reached-nfpm produce identical green runs, and the second is the defect above.
    • rpm -K exits 0 for an unsigned package. Unsigned prints digests OK and returns 0; signed
      prints digests signatures OK and also returns 0. Measured, not assumed. A check on the exit
      status alone passes for every unsigned package ever built while reporting that it verified a
      signature, so the assertion matches the text.
    • zypper does not read /etc/yum.repos.d. It reads /etc/zypp/repos.d, so a yum-only script
      succeeds on openSUSE and configures nothing: every step reports success, the .repo file looks
      correct, and zypper install objectfs cannot find the package. opensuse/leap:15.6 is in the
      matrix for exactly this.
    • reprepro keeps one version per suite. Indexing five releases with it would have silently
      published one — a retention bound of five shipping as a bound of one. dpkg-scanpackages plus
      apt-ftparchive have no version policy and no database.

    Five documented one-liners were a 404 until the deploy served the scripts they name, which is the
    same defect install.sh spent a year in and worse, since these are piped into sudo bash. Both are
    now copied and byte-compared at deploy time and listed in the workflow's paths filter — a stale
    installer installs an old binary, while a stale setup script installs an ol...

Read more

ObjectFS v0.13.0

Choose a tag to compare

@github-actions github-actions released this 09 Aug 11:20
b92220a

Two things that existed and did nothing now do something.

cluster.enabled: true started a gossip ring and stopped there: the adapter never constructed a
ClusterManager, FileSystem had no coordinator, and AnnounceKey/QueryKeyOwnership returned
ErrNotSupported from stubs. A cluster's nodes could see each other and could not use each other. Now a
write invalidates what peers have cached at the ETag it wrote, a cache miss learns from peers which keys
are hot and reads further because of it, and a joining node is told what to warm before it serves its
first request. The bytes still come from S3 — peer data fetch is not in this release, and [#399] is why:
a sealed gossip datagram tops out at 5802 bytes of payload, so the datagram carries the metadata and
S3 carries the object. That is the honest version of the feature rather than a 128 KiB read that fails as
a 30-second timeout on a different host.

The observability half is the same shape. internal/awsrates held request prices verified against the
live AWS Pricing API and every path from a rate to a user was severed — a cost package with no
importer, a RecordCost with no caller, a report behind a config key no mount could set. Latency
percentiles were declared and never assigned, computed from a histogram that was ms % 100 rather than
a bucketing, so 50 ms and 250 ms shared a bucket. A Transfer Acceleration fallback was permanent for the
life of the mount, invisibly. Compression ran zstd over BAM, tar.zst and JPEG and then discarded the
result. Each of those was a feature the documentation described, and none of them could be observed or
switched back, which is the difference this tag is about.

Milestone v0.13.0 — Cache Warming & Operational Excellence closed at zero open, 20 issues.

Cost accounting is worth one caution: the request counts come from a middleware in the AWS SDK's
Deserialize step, not from the wrapper layer, because those two disagree — a 5 GB PutObject is one
wrapper call and 641 requests to S3. The figures are what S3 was asked for by this mount, per attempt,
excluding 5xx. They are not a substitute for Cost Explorer, and the metric's help text says so.

Added

  • Data that arrived compressed is no longer compressed again ([#184]). With compression enabled, a
    write above min_size whose leading bytes name a compressed format — gzip, zstd, bzip2, lz4, xz, zip,
    PNG, JPEG, GIF, WebP, MP4, Matroska, Ogg, MP3, PDF — is stored as-is and the codec is never entered.
    These are the formats a research bucket is mostly made of, and a BAM counts: BGZF is gzip per block, so
    its first bytes are gzip's.

    Measured on an Apple M4 Max at zstd level 3, six runs per case compared with benchstat: an 8 MiB zstd
    frame goes from 1.85 ms and 33 MiB of allocation to 3 ns and none, 1 MiB from 237 µs to 3 ns,
    64 KiB from 7.4 µs to 3 ns. Data the skip does not apply to is unchanged — 1 MiB of compressible text is
    91.5 µs against 90.4 µs, which is the row that says the check pays for itself, since a gate that taxes
    the compressible path is not a win. Reproduce with BenchmarkCompressAlreadyCompressed,
    BenchmarkCompressCompressibleText and BenchmarkGateVersusAnalyze in internal/compression.

    The gate is a magic-byte comparison at 17 ns, not the full analyzer. Analyze also runs a Shannon
    entropy pass over its 4 KiB sample, which costs 3.8 µs and was +53% on a 64 KiB text write for a
    figure the decision does not use — so the write path calls a new AlreadyCompressed, and both it and
    Analyze classify through the same classifyByMagic, leaving one authority on what "already
    compressed" means. The check sits after the min_size floor, so an object below the floor is not
    sampled, and after the enabled check, so a mount with compression off samples nothing at all.

    Not done, deliberately: nothing is skipped on entropy. High entropy is evidence that compression
    will not help, not proof, and no threshold for it has been measured here — declining to compress on a
    guess is worse than spending the pass. Formats whose compression is internal to the container (CRAM,
    Parquet, ORC, HDF5, Zarr) are also not skipped, since the container's magic bytes say nothing about its
    contents; docs/features/compression.md now sorts the formats into the two lists explicitly, and
    TestAlreadyCompressedMatchesTheDocumentedFormatLists fails if that page and the table disagree.

  • A mount now publishes what it is spending at AWS ([#226]). objectfs_s3_cost is a new gauge family
    carrying billable request counts by pricing group, bytes retrieved, three dollar figures, and — beside
    each — the rate it was computed at, labelled with the region the rates were resolved for and the storage
    tier they belong to. Before this, internal/awsrates held a rate table verified against the live AWS
    Pricing API by an integration test, and every path from a rate to a user was severed: the
    access-pattern report was gated behind a config key no mount could set, internal/cost had zero
    importers, and metrics.RecordCost had no caller anywhere.

    The requests are counted in the AWS SDK's own response path, not at the wrapper layer, and that is
    the substance of it rather than a detail. The eight places this backend records metrics are not
    one-to-one with billable calls: a 5 GB PutObject is one wrapper call and 641 requests to S3 — one
    CreateMultipartUpload, 639 UploadParts, one CompleteMultipartUpload — and a large CopyObject,
    a parallel ranged read and the capability probes fan out the same way, one of them counted nowhere at
    all. Every one of those errors is in the direction that flatters. A middleware in the SDK's Deserialize
    step, installed on every client this package builds including the connection pool's, cannot disagree
    with what S3 received because it is what S3 received. It counts per attempt, since the retryer
    re-enters that step; it requires a response, since a connect or DNS failure never reached S3 and is not
    billed; and it counts only statuses below 500, because AWS does not bill for its own server errors
    and does bill 4xx — a HeadObject returning 404 is a charged read, and 5xx during an S3 event would
    otherwise inflate the figure at the moment an operator is looking at it hardest.

    Four pricing groups, not AWS's two request tiers: writes, lists, reads, and the free operations. Lists
    are separate from writes even though the published price list calls both "Tier1", because on
    DEEP_ARCHIVE a PUT is $0.05 per 1,000 and a LIST is $0.005 per 1,000 — a factor of ten, and pricing
    a directory traversal at the write rate would overstate it worst on the class where the error is largest.
    Classification is by operation-name prefix and an unrecognized operation counts as a write, so an
    operation this code has never heard of makes the reported cost too high rather than too low.

    What the figures are is stated narrowly, because a cost number that implies more than it knows is worse
    than none. They are this process's spend since it started, at list prices for the first volume band:
    not a bill, and not a reconciliation of one. bytes_stored is what this mount has uploaded, not the
    bucket's size — nothing lists the bucket, since that would be a billed request per scrape to publish a
    metric. Every figure is monotonic and there is no reset, because rate-of-change is the form a useful
    alert on cost takes and a counter something can zero is one that will be zeroed. A fresh mount reports
    read_requests of 1 before any filesystem work: NewBackend's health check is a HeadBucket, AWS bills
    it, and the tests assert that 1 rather than asserting zero.

    Verified against a recording proxy rather than against the counter's own arithmetic: the tests compare
    what the tally counted with what the S3 endpoint actually received, including a multipart write where
    both sides must agree and the count must exceed the number of parts, and an injected 500 where the
    counted total must equal the observed total minus the server errors. The dollar assertions state AWS's
    published rates as literals and divide in the test, per the lesson from [#220]: the old tests passed
    1024*1024*1024 bytes, called it one GB, and asserted the per-GB rate came back — an expectation that
    holds under both the right divisor and the wrong one. Byte-to-GB conversion goes through
    awsrates.GBFromBytes throughout, and the mutation to a binary divisor is caught with a ratio of
    0.9313, which is exactly the 7.4% gap.

  • A cache miss now reads further when a peer holds more of the object ([#142]). A read that misses
    asks the cluster who holds the key and, if some peer holds a range reaching past what was just read,
    reads ahead to the end of that range — capped at 4 MiB per miss. The bytes come from S3, not from the
    peer
    : a gossip datagram carries 5802 bytes of object at the default limit, so a 128 KiB read is 21×
    over and fails as a 30-second timeout on the requesting host ([#399]). What a peer's claim is evidence
    of is that the key is hot in this cluster, which is the one thing a cold node cannot learn on its own,
    and it is worth acting on even when the bytes still cost an S3 read.

    A claim is acted on only at the version this node is reading. A holder's range describes the object
    it cached; against a different version the object may have a different length entirely, so warming on it
    would fetch bytes chosen by a claim about something else. A version mismatch — or no known version on
    either side — warms nothing, which costs exactly the read the application asked for. Every claim at the
    matching version is considered and the furthest-reaching one wins, since holders arrive freshest-first
    and freshest is not furthest.

    Warming goes through the existing read-ahead queue, so it inherits clamping to ...

Read more

ObjectFS v0.12.0

Choose a tag to compare

@github-actions github-actions released this 08 Aug 22:51

Coordination stops pretending. ObjectFS's distributed layer had a consistency taxonomy, a Raft log,
and a CacheReplicator; what it did was send the same PUT to N nodes writing the same key and call
majority success linearizable. That is replaced by compare-and-swap on the object store itself —
Backend.PutObjectIf asserts a precondition, internal/coord's lease re-asserts the CAS on every
guarded action, and an endpoint that cannot honour a precondition is refused rather than downgraded.
The code that simulated the guarantee is deleted rather than left as a fallback, because a fallback
here reports success to every contender for a lease, which is the outcome the mechanism exists to
prevent.

This tag carries two closed milestones: Distributed Foundations & Install Simplicity (24 issues)
and Test Harness, Coverage & Build Hygiene (24 issues). Both were at zero open before it was
cut.

The second is what makes the first credible. Four SDKs shipped in this repository and not one of
them compiled
: the JavaScript SDK had 48 tsc errors, the Java SDK four mvn compile errors, and
the C SDK a maximum-length S3 key that came back one byte short — each surviving because no CI job
ran the compiler. Four build tags carried code nothing built. Ten tests in tests/fuse_test.go
asserted against the mock they constructed rather than against the filesystem they discarded. A
release that adds a coordination primitive on top of that has no basis for the claim, so the gates
came first: every build tag compiles in CI, every SDK builds and tests, the lint backlog is 570 →
299, and the four suites that could not fail are gone rather than repaired.

Two findings are worth reading before deploying. Ceph RGW ≤ 19.2.0 implements conditional writes
partially — it answers 412 for a key that does not exist, rejects the quoted ETag it just
returned, and ignores preconditions on CompleteMultipartUpload, so a conditional write large
enough to be multipart is silently unconditional. The mount-time capability probe now detects this
and refuses; docs/design/conditional-write-compatibility.md records the full matrix, measured
against real AWS, MinIO and RGW endpoints rather than read from documentation. Separately, gossip
had no message authentication, and a cluster will not start without a shared secret.

What changed

  • Added — 19 entries
  • Fixed — 75 entries
  • Changed — 13 entries
  • Removed — 8 entries
  • Security — 2 entries

The full text of each entry is in CHANGELOG.md, under [0.12.0].
It is long by intent: an entry records what was wrong and how the fix was verified,
which is the evidence a filesystem release has to carry.


Verify a download:

sha256sum -c objectfs-<platform>.tar.gz.sha256

Container image: ghcr.io/scttfrdmn/objectfs:0.12.0

Full changelog: https://github.com/scttfrdmn/objectfs/blob/v0.12.0/CHANGELOG.md

ObjectFS v0.11.0

Choose a tag to compare

@github-actions github-actions released this 03 Aug 15:11

POSIX completeness and write-path safety: the operations a user reaches for first — rm, rmdir,
mv, chmod — do the thing rather than returning an error or, worse, succeeding without acting. All
28 issues on the milestone closed before this tag was cut.

Two themes run through it. The first is that a configuration key should select something: nine
blocks that a loader had never read now reach the code they name, and the pricing region — read at
exactly one line, and only to label a summary — now picks the prices, so a mount in sa-east-1 no
longer reports us-east-1's rates under its own region's name. The second is that a fix is paired
with the mechanism that fails if it recurs, because most of what this release corrects was invisible
to the compiler, to vet, and to lint: a config key nothing reads, a cost figure nothing checks, a
gate that cannot fail.

This is the first release cut from the merge commit that closes its milestone, which is the rule
v0.10.3 established after two tags shipped without the work they were named for.

Added

  • rm and rmdir work. Unlink and Rmdir delete the object rather than returning EROFS
    ([#163]). The stub they replace was itself a fix — go-fuse defaults an unimplemented
    NodeUnlinker to success, so before it rm exited 0, the kernel dropped the inode, and the
    object stayed in the bucket billing with no path that reached it. Three details are load-bearing
    and are pinned by tests:

    • Deleting a file discards whatever the write path still holds for it. echo x > f; rm f is
      ordinary and the kernel does not guarantee a flush before the unlink, so a surviving dirty range
      would be PUT back by the next flush or by the unmount — the file returning from the dead at its
      written size, with no error anywhere.
    • rmdir refuses a non-empty directory with ENOTEMPTY. S3 has no directories, so removing a
      prefix's marker object while objects remain under it would succeed at the storage layer and leave
      every one of them present, billing, and unreachable through the filesystem.
    • A missing file is ENOENT, not success. The backend's DeleteObject no-ops a key that is not
      there — S3's contract — so absence is checked explicitly, and it is checked against both the
      bucket and the write path: Create records attributes without a PUT, so a just-created file is
      real and visible to stat with no object behind it yet.
  • mv works, and the README says exactly how far short of POSIX it falls. Rename copies
    server-side and then deletes, per object; renaming a directory moves everything under its prefix
    ([#164]). Before this, go-fuse's default for an absent NodeRenamer answered every mv with
    ENOTSUP. Six properties are load-bearing, each pinned by a test that was verified by mutation —
    the implementation was broken in that specific way and the test watched to fail:

    • Each source object is deleted only after its own copy has succeeded. An interruption
      therefore leaves the data at the old name, the new name, or both — never at neither. Duplicated
      data is an operator's cleanup problem; missing data is not recoverable, so the ordering is fixed
      in that direction deliberately, and a partial directory move is resumable by re-running the same
      mv.
    • The copy is server-side. Reading and rewriting through the process would make renaming a
      10 GiB file cost 20 GiB of transfer, and renaming a directory that times the object count.
      Objects above S3's 5 GiB single-part CopyObject limit route through UploadPartCopy.
    • The write path is flushed before the copy runs. A copy acts on objects, so a file whose only
      content is dirty ranges in memory is invisible to it: echo hi > a; mv a b would have copied a
      key that did not exist yet, deleted the source, and then flushed the pending ranges back to the
      old name — the file landing at neither name the user asked for.
    • The moved node is repointed, recursively for a directory. go-fuse's MvChild re-parents the
      same inode, so the FileNode survives a rename holding the path it was constructed with. A
      stored path is stale the moment a rename succeeds, and the consequence is silent in a way nothing
      would catch: after mv a b, a write to b flushed to a and recreated the source the rename
      had just deleted. A stale key is a valid key, so every S3 call succeeds.
    • Prefix matching is on a path boundary. mv dir dir-new must not move dir2/file. That is not
      a hypothetical spelling mistake — it is the same defect the cache's keyMatches had, found in the
      same audit.
    • renameat2's RENAME_EXCHANGE and RENAME_NOREPLACE are refused with EINVAL, not
      approximated.
      Both are atomicity promises copy-then-delete cannot keep, EINVAL is what the
      kernel and libc expect for an unsupported flag, and mv and Git fall back correctly on it. A
      foreign newParent is EXDEV, which is what go-fuse's own LoopbackNode answers.

    There is no atomic alternative to reach for. S3's RenameObject, added in 2026, is
    directory-bucket (S3 Express) only, and object annotations — which ObjectFS needs for POSIX
    attributes — are unsupported on directory buckets, so the two features are mutually exclusive. The
    README now carries a Rename is not atomic section stating what a concurrent reader can observe,
    what an interruption leaves behind, and which tools that breaks: anything relying on the
    write-temp-then-rename idiom for atomic replacement is not safe here between concurrent writers.

  • types.Backend.CopyObject, a server-side copy that preserves content encoding, content type,
    storage class, and user metadata. Each of the four is a requirement rather than a nicety, and the
    interface documentation says which failure each one prevents: the read path dispatches decoding on
    the stored Content-Encoding and fails closed on one it cannot handle, so dropping it would leave a
    compressed object permanently unreadable with its bytes intact; the storage-class default is
    STANDARD, so dropping it would silently promote the object out of the tier being paid for; and
    POSIX mode, ownership, and mtime live in user metadata and nowhere else, so dropping it would reset
    a file's permissions, which is not a thing rename does. Encryption is applied from configuration
    rather than copied from the source, so a key rotation reaches renamed objects.

  • internal/testaws: a DirectoryMarkerDelete capability probe, and RequireDirectoryMarkerDelete
    to skip on its absence. Deleting a dir/ marker while dir/child still exists panics the substrate
    emulator, because its object store is a filesystem abstraction where dir/ is the directory
    holding the child, and removing it orphans the child (filed as
    scttfrdmn/substrate#534, reproduced against
    afero alone with no substrate involved). In S3 a key is an opaque string and dir/ is an ordinary
    object, so this is the emulator's property and not ObjectFS's — which is the reason for a runtime
    probe rather than an assertion either way. The alternative was to assert the emulator's behavior as
    expected, which would encode a dependency's bug as this project's contract.

  • internal/storage/s3/copy_live_test.go (-tags=integration) covers the multipart copy path against
    real AWS, at real part sizes. It has no hermetic equivalent: substrate dispatches on
    x-amz-copy-source before checking uploadId, so it answers an UploadPartCopy as a whole-object
    copy with a 200 (substrate#532). That leaves the branch where a mistake is most expensive resting on
    nothing but reading — abandoned multipart parts are billed and invisible to ListObjects. Two
    shapes, both deliberate: a legal three-part copy with a short final part, which is where
    inclusive/exclusive range mistakes surface, and an illegal one that S3 rejects at
    CompleteMultipartUpload, which is how the abort path gets a failure arriving after every part has
    already uploaded.

  • A fuse: section in the configuration file, and it is the first one any loader has read
    ([#180]). direct_io, keep_cache, and sync_read. Nine fields on internal/fuse.MountOptions and
    internal/fuse.Config carried yaml tags for a whole release and were decoded by nothing, because
    config.Configuration had no fuse key at all — so a fuse: block in a config file was silently
    discarded, and the two flags that reach the kernel per-open were settable in Go and returned as the
    literal 0 from every Open. All three new fields default to false, false is the kernel's own
    behavior for each, and NewDefault therefore names no fuse section: the zero value is the
    default, and a second place for it to live is how the last set drifted.

    Each of the four seams between the YAML key and the value the kernel receives is now asserted by a
    test verified by mutation — the mapping was deleted or reverted to v0.10.0's code and the intended
    test watched to fail. That is the point of the change rather than a detail of it: every one of those
    nine fields was correct at the layer that declared it, and died at a boundary no test crossed. The
    adapter mapping in particular passed its package's whole suite with the three assignment lines
    removed, which is why it was extracted into a method that can be called without a mount.

    What the flags do to the kernel — whether a second read(2) at the same offset reaches the
    filesystem, whether cached pages survive open(2) — cannot be observed without /dev/fuse, so it
    lives behind a fuse_mount build tag with a make test-fuse-mount target. CI compiles the tag it
    cannot run, because a build tag nothing compiles is how four others in this repo came to carry code
    that does not build ([#240]). Those tests fail rather than skip when the device is ab...

Read more

ObjectFS v0.10.3

Choose a tag to compare

@github-actions github-actions released this 03 Aug 03:33
463860e

Part 4 of the v0.10.0 audit: say only what the code does, and bill accurately. The audit found that
documentation, cost figures, and repository metadata each asserted things no mechanism checked, so
most of what follows is a correction paired with the gate that fails if it recurs — five of them,
now running on every PR.

This release exists because of a numbering defect worth stating plainly, since it is the second
instance of the same one. v0.10.2 was tagged when the first of this milestone's twelve issues
closed, and the remaining eleven landed after it — so the tag published under that number holds the
packaging fix and none of the work below, exactly as v0.10.1 was tagged two hours before the
module-path fix it was cut for. A tag is not a promise that can be revised: it is already in the
GitHub releases list and cached by the Go module proxy, which resolves a version to one tree
forever. So the fix is a new number rather than a moved tag, and the rule that prevents a third
instance is to cut the tag from the merge commit that closes the milestone, not from the one that
opens it.

Added

  • A gate that fails when CHANGELOG.md's version headings and its link definitions disagree. Keep a Changelog puts each release in a bracketed heading and defines the link separately at the bottom of the file — two hand edits per release with nothing connecting them, and markdown fails silently in both directions. An undefined reference renders as the literal text [0.10.2] instead of a link; a definition with no section renders as nothing. Neither breaks a build, fails a lint, or produces a visibly wrong page, so the only witness is a reader noticing a heading stopped being clickable, which is not a thing readers report. Both halves had already broken: [0.10.2] was never defined at all, and [Unreleased] still compared from v0.10.1 — so the link that answers "what is on main but not released" spanned two releases and 52 entries of already-released work. internal/config/changelog_test.go checks three properties: every section has a definition and every definition has a section, [Unreleased] compares from the version constant, and each release's diff starts at the release immediately before it. The third exists because that failure is the one that renders and resolves — copying the previous definition and editing only the right-hand side produces a real GitHub diff covering more releases than the section it is attached to. All four failure modes were verified by mutation, which is also how the orphan-definition message got fixed: it printed the URL where the version belonged. This is the same defect the release itself is about, one file over — a fact restated in a second place with no mechanism to notice the two have drifted
  • A gate that fails when documentation names a Go symbol or a CLI flag that does not exist. internal/config/docs_symbols_test.go extracts pkg.Symbol references from fenced Go blocks — checked against the packages that same block imports, parsed with go/ast — and objectfs command lines from shell blocks, checked against the flags cmd/objectfs/main.go actually declares. This is the mechanism #182 asked for, and the point is that it fires at authoring time: correcting the nineteen files that issue cataloged only resets the clock, since a fenced code block is a string as far as the compiler, vet, and lint are concerned. It found eleven defects on its first run, listed under Fixed below, and a companion test compares the flag list against main.go so the two cannot drift apart silently. The admission rule — which references get checked — was chosen by measuring three candidates rather than guessed: checking every lowercase.Uppercase in every Go block gives 93 findings of which 3 are real (s3.Client is the AWS SDK, errors.Is is the standard library), file-scoped imports give 5 of which 3 are real, and block-scoped gives 3 of 3 with no false positives. Its one known blind spot is stated in the test rather than left to be discovered: a continuation block that uses a package imported by the block above it is not checked
  • A gate that fails when documentation links at a page that does not exist. internal/config/docs_links_test.go extracts every relative markdown link from every tracked markdown file and resolves it on disk — relative paths against the linking file's directory, root-absolute paths in docs-platform/ against VitePress's routing rule, where /guide/installation is served from guide/installation.md and /api/ from api/index.md. This is #208's mechanism, and it is a Go test rather than the link checker in CI that issue proposed for three reasons recorded in the file: it needs no network and no new tool, so pre-commit and CI check at identical fidelity; it sits with the gates a contributor already satisfies; and an exemption can carry its reason in code, the way docsExemptFromConfigSchema does. It found 45 dead links, not the 24 the issue catalogued — because #208 was written by walking docs/, and two whole classes live outside it: 13 links into SDK examples/ directories that have never existed, and 8 root-absolute VitePress routes. That gap is the finding, and it is the same shape as docs_test.go's nestedSectionNames: scoping a gate to where the defects were already known is how the next cluster stays invisible. A link target is a path, not a symbol, which is why the symbol gate above cannot see it — a link written as [tuning] followed by (./perf.md) is prose to the compiler, to vet, and to lint, and stays prose after the file is renamed. A third test asserts the walk's reach rather than its findings, and it earns its place: a mutation that made the link regexp match nothing left the resolving test passing on zero links and green, and only the reach test caught it
  • A gate that checks mkdocs.yml's nav against the tree, in both directions. TestMkDocsNavMatchesTheTree asserts that every nav entry has a file and that every page under docs/ is either in the nav or exempt with a stated reason. Both directions, because that is how the defect ran: 47 of 50 entries pointed at no file, and 14 of the 17 pages in the tree were missing from the nav. Checking only that entries resolve would have left the orphans, which is the half a reader loses — a page absent from the nav is a page nobody finds. A nav entry is a link target with a different syntax, and that syntax is why it went unchecked: the link gate walks markdown, and nav: is YAML. It is a line scan rather than a YAML parse for a stated reason — mkdocs.yml carries !!python/name: tags for the emoji and superfences extensions, so decoding it needs a custom resolver or unsafe mode, and the nav is a flat list of - Title: path.md lines that needs neither
  • docs/features/compression.md — what transparent compression costs, and when it saves nothing. The question it answers is the one #186 was filed for: project-level compression saves bandwidth and end-to-end latency, so what else does it buy? Less than you would expect. It names four costs, each measured rather than asserted: a compressed object is not readable by anything but ObjectFS (aws s3 cp and boto3 both write the raw zstd frame to disk with a successful exit status — no error to notice); a 4 KiB read of a compressed object transfers the whole stored object, which is 1,836× / 7,344× / 29,380× amplification at 16/64/256 MiB; enabling compression turns off parallel range reads for every object in the bucket, compressed or not; and on the three tiers with a 128 KB billable floor, compressing a 100 KB object to 40 KB changes the invoice by zero. Byte counts are presented as the result and wall-clock only as an aside, for a reason stated on the page — bytes are a property of the design, latency is a property of the day, and the audit's 15.6×/43×/216.5× and this page's 3.0×/5.0×/12.3× are the same defect measured on different days. Every figure is either linked to the AWS page that publishes it or carries its bucket, region, date, and payload, which is docs-platform/index.md's standard after its hardcoded chart was removed. Two of the numbers #186 itself specified are wrong, and the page states what AWS publishes instead: AWS applies no minimum billable object size to GLACIER, DEEP_ARCHIVE, or INTELLIGENT_TIERING. The archive classes' 40 KB is metadata added per object (32 KB at the archive rate, 8 KB at Standard), which points the opposite way from a floor — compression does reduce the bill there, it just cannot touch the surcharge, which is about 23× the payload for a 10 KB object on DEEP_ARCHIVE. Writing the page found three defects, filed as #228, #229, and #230
  • A gate that fails when .github/labels.yml and the repository's labels disagree — in both directions. internal/config/labels_test.go is the fifth mechanical gate, and it exists because the file is a hand-maintained description of state held on GitHub and nothing compared the two, so they had drifted by nine labels. Both directions, because only one is intuitive: all nine existed on GitHub and were absent from the file, none the other way, so a sync that creates labels from the file is green on every one of them — it has nothing to create. That is the failure mode #190's own acceptance criteria name, and the test for the gate is the one they specify: create a label on GitHub without touching the file and confirm the job notices. Verified by doing exactly that, with a throwaway zz-drift-probe. Colors and descriptions are compared too, not just names — a label the file describes differently from the label that exists is drift with a longer fuse, because the name still filters correctly and nothing looks wrong. #190 proposed a paths:-filtered sync job that runs when labels.yml changes; measurement is why this one runs unconditionally instead. Every drift this repository has had originated on GitHub — tw...
Read more

ObjectFS v0.10.2

Choose a tag to compare

@github-actions github-actions released this 02 Aug 21:34
1a815a9

A packaging release, cut for one reason: v0.10.1 was tagged two hours before the module-path fix
merged, so the published tag still declared module github.com/objectfs/objectfs and
go get github.com/scttfrdmn/[email protected] failed with module declares its path as — the exact
defect #213 was filed for. The fix existed on main and in no tag, which from a user's position is
indistinguishable from not being fixed. Everything else here is the packaging and contributor-path
work that landed alongside it.

Added

  • SECURITY.md — a security policy, with private vulnerability reporting enabled on the repository so a finding has somewhere to go that is not the public issue tracker. It documents what a reader cannot get from the code quickly: that the trust boundary is the mounting host and ObjectFS enforces no authorization of its own, that two unauthenticated HTTP listeners bind all interfaces by default (:8080 metrics and debug endpoints, :8081 health) with the switch that turns each off, that mode: off is the encryption default and what changed after the withdrawn v0.10.0 at_rest key, and both stated limits of the SHA-256 read verification — a partial read is not verified, and an object with no recorded checksum verifies trivially. Every claim in it was verified by execution rather than read off the configuration schema, which is how the two listener defects below were found

Fixed

  • The test harness could record a request after the client already had the response, so its own assertions were load-dependent. internal/testaws proxies every request and logs it, and the read-path suite asserts on that log: bytes transferred and GETs issued are how read amplification and cache behaviour are measured, because neither the AWS SDK nor the emulator reports them. The log entry was appended after proxy.ServeHTTP returned — but the proxy writes the body to the socket inside that call, so a client could hold every byte of a response whose request was not yet recorded. Measured at 45–70 of 640 concurrent ranged reads. The visible symptom was in a different package: internal/fuse TestShortFileIsServedFromCache failed on its precondition — "the first read issued no GET" — which reads as the read path serving bytes from a cache the fixture had just created empty, in a test whose entire subject is cache correctness. One CI run in seven. Requests are now published on arrival and their response fields filled in on completion, with the accessors waiting for anything still in flight; verified in both directions, since a regression test that cannot fail proves nothing
  • The module could not be imported under the name it gave for itself. go.mod declared module github.com/objectfs/objectfs, and the code lives at github.com/scttfrdmn/objectfs. Go resolves an import path by fetching that path, so go get github.com/scttfrdmn/objectfs failed on the mismatch between the path requested and the path declared, while the declared path is a different project — an unrelated Python repository from 2017, 28 stars, last pushed 2019, in a single-repo organisation created the same day. Nothing published has ever existed at the declared path, which is why pkg.go.dev had nothing to index and the Go Reference badge rendered empty. The path is corrected in go.mod and in all 154 files that named it — 132 Go files, plus the goimports local-prefixes setting in .golangci.yml, the Dockerfile image-source label, and the repository URLs in the Python and JavaScript SDK manifests, which pointed contributors at the wrong project. Verified by building an external consumer module against the corrected path, rather than by grepping for the string. This is breaking for any code that imported the old path, though nothing could have: it was never fetchable
  • Dependabot could not update Go dependencies, and had never merged anything. Two unrelated defects presenting as one symptom. The Go ecosystem failed on twelve consecutive weekly runs while docker succeeded in the same runs — Dependabot aborts per-ecosystem, so one broken ecosystem is silent unless the run list is read. The cause was upstream and is now resolved: proxy.golang.org had no .mod for the pinned cargoship version, Go fell through to direct git, and git reported the proxy's 404 as could not read Username for 'https://github.com' — an authentication message for what was not an authentication failure, which is what sent the previous diagnosis after a credential that was never missing. Separately and more consequentially, .github/dependabot.yml labelled every PR automerge and that label did not exist; Dependabot drops unknown labels without reporting it, and every approve and merge step in dependabot-automerge.yml was gated on it, so 46 PRs were opened and none were ever merged. The label is now declared in .github/labels.yml alongside the four others the config names
  • .github/dependabot.yml: maven and npm ecosystems for sdks/java, docs-platform, and sdks/javascript. Eight open Dependabot alerts — five against jackson-databind, three against vite, three of the eight high severity — were against manifests no ecosystem entry covered, so nothing could act on them. sdks/javascript is included because CI runs npm install && npm test there on every PR, which makes its dependencies executed code. A ceiling worth stating: the npm security updates still cannot apply, because neither directory commits a lockfile and Dependabot cannot determine the installed version without one (#214)
  • .github/workflows/dependabot-automerge.yml waited on check-regexp: (test|lint|security).*, which is case-sensitive and start-anchored, so it matched 2 of the 9 checks CI produces and ignored coverage, config-examples, every cross-build matrix leg, sdk-metrics, fuzz-smoke, and Security Scan. The wait step is removed rather than corrected: which checks must pass now lives in branch protection on main, which also governs human PRs and cannot drift from a regexp in a workflow file. Native auto-merge is enabled on the repository, without which the --auto flag would have failed even once the label matched
  • docs-platform/docker-compose.yml was not valid YAML. Two healthcheck entries put a bare URL inside a flow sequence, where the scanner reads http as a plain scalar and then meets : in place of , or ]. Docker's own parser is lenient enough to accept it, so it went unnoticed — but pre-commit run check-yaml --all-files failed on the file, which is the first thing a new contributor runs
  • .gitignore did not cover coverage/, the directory make coverage writes into. The three bare coverage.* filenames only match a profile written to the repository root, which no target produces
  • scripts/setup-hooks.sh — the first command CONTRIBUTING.md tells a contributor to run — failed on any current macOS or Debian host, and exited 0 having installed nothing. Five defects: pip3 install pre-commit ran first and dies with externally-managed-environment on a Homebrew or Debian Python (PEP 668), and because the installer was an if/elif chain testing only whether each command exists, a failing pip3 never fell through to the brew branch that would have worked; the failure happened inside a condition, so set -euo pipefail did not catch it; it installed gosec from github.com/securecodewarrior/gosec, which is a 404 (the real module is securego/gosec, which security.yml already uses); it pinned golangci-lint v1.55.2 against a version: "2" config only v2.x can parse, handing contributors a lint failure that looks like their fault; and it wrote a .golangci.yml if none was present, containing linters removed from golangci-lint years ago — now that a real config is committed, that branch would have overwritten it with an unusable one. Each install method is now tried until one succeeds, pipx first, every path verifies the command is on PATH afterwards, and the golangci-lint check is version-aware rather than presence-only. It also no longer overwrites .git/hooks/pre-commit with a hand-rolled wrapper that blocked any commit touching a line matching fmt.Print or TODO, including inside a string literal or a comment explaining why a TODO is deliberate
  • make printed four overriding commands for target warnings on every invocation, including make help. BUILD_DIR := build and COVERAGE_DIR := coverage made the directory-creation rule read bin build dist coverage:, colliding with the real build and coverage targets. The build worked — the later recipe wins, and both are .PHONY — but a build system that opens with four warnings reads as unmaintained, and the names would have genuinely collided the moment one stopped being .PHONY. Replaced with a %/.mkdir sentinel rule, which keeps the pattern out of the target namespace, declared as an order-only prerequisite so writing one binary does not rebuild its siblings
  • pre-commit run --all-files could not complete: the pretty-format-yaml hook crashed on import, because the pinned rev imports pkg_resources, which modern setuptools no longer ships (Python 3.14 here). Bumped to a rev that does not. Fixing it exposed a second problem worth recording, since the obvious repair is the wrong one: check-yaml is PyYAML and follows YAML 1.1, where a bare URL in a flow sequence is a syntax error, while pretty-format-yaml is ruamel and follows YAML 1.2, where it is legal — so quoting the URL to satisfy the first makes the second strip the quotes straight back off, and the two hooks disagree forever. The docker-compose.yml healthchecks are now block sequences, the one form both parsers accept and where there are no quotes left to remove
  • .golangci.yml is excluded from the pretty-format-yaml hook, which damages it: the formatter dedents every block sequence to its parent's column, destroying the nesting tha...
Read more

ObjectFS v0.10.1

Choose a tag to compare

@github-actions github-actions released this 02 Aug 17:28
4be2327

Every entry below is user-facing, and the release is almost entirely one thing: the defects a deep
audit of v0.10.0 found, and the harness that would have caught them. v0.10.0 is withdrawn.

Four defects in v0.10.0 were verified by execution to lose or corrupt data, and one prevented the
shipped default configuration from mounting at all. They were not independent — they clustered in
three subsystems whose designs could not express what they were asked to do, which is why this
release adds internal/vfs rather than patching six call sites. The write path could not represent
an offset write, the read cache could not hit as keyed, and the FUSE node layer was missing most of
its contract.

The reason 32,680 lines of tests across 90 files caught none of it: every one was a seam defect —
a value correctly produced at one layer and silently dropped at the boundary to the next. A mock on
the far side of a seam agrees with its caller by construction. internal/testaws and
internal/difftest exist to remove that blind spot.

What changed

  • Added — 57 entries
  • Removed — 16 entries
  • Changed — 34 entries
  • Fixed — 101 entries
  • Deprecated — 1 entry

The full text of each entry is in CHANGELOG.md, under [0.10.1].
It is long by intent: an entry records what was wrong and how the fix was verified,
which is the evidence a filesystem release has to carry.


Verify a download:

sha256sum -c objectfs-<platform>.tar.gz.sha256

Container image: ghcr.io/scttfrdmn/objectfs:0.10.1

Full changelog: https://github.com/scttfrdmn/objectfs/blob/v0.10.1/CHANGELOG.md