Skip to content

Beryl 0.2.1

Choose a tag to compare

@crimson-knight crimson-knight released this 25 Nov 10:59
· 103 commits to main since this release
6afec73

For the Amber stack's Beryl adoption release: connection pools and private
database CAs.

  • Certificate verification accepts a leaf or intermediate without an
    authority key identifier: the issuer is found by name and tried by
    signature, as Go's crypto/x509 and OpenSSL do, so private CAs for
    PostgreSQL and MySQL that omit the extension verify. The path-building
    limits still apply. x509-limbo: rfc5280::aki::leaf-missing-aki and
    rfc5280::aki::intermediate-missing-aki are now listed as departures,
    with the reason; every other case still matches.
  • On macOS, TrustStore.system joins the pinned Mozilla roots to
    /etc/ssl/cert.pem, unless SSL_CERT_FILE is set. The file trails the
    keychain the system actually trusts: macOS 27.2.1's copy lacks SSL.com TLS
    ECC Root CA 2022 and AAA Certificate Services, so clients that use the
    system store (HTTP::Client on Beryl, Grant's PostgreSQL driver,
    crystal-mysql) refused www.example.com. Linux bundles are read as before.
  • TLS::Socket#closed? answers whether close was called, as
    OpenSSL::SSL::Socket#closed? does, and close is idempotent. Reads and
    writes after close raise IO::Error ("Closed stream"), so database pools
    and HTTP::Client see a closed TLS connection the way they see any other.

Checks at the tagged commit

Release PRs #31 and #32 on GitHub Actions; the tagged commit's own PR head edabff6 passed run 45545620346: 19 jobs green (specs, published vectors and the no-OpenSSL linkage proof; differentials against libcrypto on ubuntu-24.04 and ubuntu-24.04-arm; constant-time and timing checks including RSA at 2,048, 3,072 and 4,096 bits; Linux on AArch64; TLS against BoringSSL's BoGo, tlsfuzzer's TLS 1.3 scripts, OpenSSL, curl and Go; the TLS handshake fuzzer). x509-limbo: 9,793 run, every one matching except 14 listed skips. The merge commit has the same tree as the tested head. main requires all 19 checks.

Commit: 6afec738aac1aeefc016b0ba826d8d9f0acc3541
Tree: 72cd3de3531a7c8ac546f7fcfc563f345ddf1170
Tarball: beryl-0.2.1.tar.gz (git archive --format=tar.gz --prefix=beryl-0.2.1/ 6afec738aac1aeefc016b0ba826d8d9f0acc3541)
Tarball sha256: df6290dbf2341c3d099ad23a2060ae83dc8121009f84abf3e3823c88b2e70f62

The tarball was built twice from the commit and gave the same sha256 both times, and the copy attached here was downloaded again and matched.