Skip to content

Release 0.4.0: ECDSA P-384, keys held in a KMS or an HSM, and a FIPS leg - #32

Merged
HackTuah merged 1 commit into
mainfrom
release/0.4.0
Nov 30, 2026
Merged

HackTuah merged 1 commit into
mainfrom
release/0.4.0

Conversation

@HackTuah

Copy link
Copy Markdown
Member

Releases beam_mcp_signer 0.4.0:

  • BeamMCP.Signer.ECDSAP384;
  • BeamMCP.Signer.KMS;
  • remote: and mu: on MLDSA87, COSE and COSE.HashEnvelope;
  • the hash envelope's FIPS-host fix;
  • the FIPS CI leg and the quality gate job.

The CHANGELOG's 0.4.0 section has the detail. Nothing in a 0.3 answer changes, so a 0.3 host moves by the requirement alone; beam_mcp ~> 0.7 stays.

Pre-release review

Two independent read-only lanes read everything added since v0.3.0:

  • key handling and error surfaces;
  • crypto and encoding correctness, against FIPS 204, RFC 3279/X.690, SEC 2 / SP 800-186, RFC 9881 and the AWS KMS Sign API.

Neither found anything Critical, High or Medium. The Low findings, all fixed here:

  • A remote's own refusal: it now comes back as {:remote, {:error, reason}}. It used to be indistinguishable from a function that raised. The reason is documented as the host's, passed back as it came and not cleaned.
  • An ECDSA point off P-384: refused ({:public_key, :not_on_curve}) before the key is used or the service asked, so no KMS call is made or billed. The probe answers false for a point on the curve and raises for one off it, measured with FIPS mode on and off.
  • The empty message under mu: :auto: it now goes as μ, because KMS takes 1 to 4,096 raw bytes. mu: :never is documented as for a service without that limit.
  • HashEnvelope's reason type: it now lists the new answers.
  • Two size claims in the docs: corrected (a COSE ToBeSigned with a long issuer; a hash envelope with a long typ or location).
  • ECDSA's s: documented as not normalised.
  • The test helper's ML-DSA-87 probe: now has a positive control, KMS's recorded signature, which must verify true.
  • Tests:
    • the KMS tests read the public keys exactly as GetPublicKey returned them;
    • new cases: 4,097 bytes go as μ, the empty message goes as μ, a left-padded r, s = 0, r = n, r = n + 1 and a long-form DER length.

Measured

  • Suite: 141 tests, 0 failures (OTP 28.5.0.8 with OpenSSL 3.5.9).
  • FIPS mode, locally (OTP 28.5.0.9 --enable-fips): 141 tests, 0 failures under provider 3.5.9 and under provider 3.1.2.
  • AWS KMS live (--only aws_live): 3 tests, 0 failures.
  • Mutants: the 16 from the build and 4 for the review fixes, all caught by a failing test.
  • Lint and docs: Credo --strict clean, mix docs 0 warnings, REUSE 3.3 compliant.

After merge (the owner)

Tag the release commit signed, publish with tools/release_tarball.sh v0.4.0 … --publish under Hex 2.5.1 (tools/hex-version), then push the tag. provenance.yml attests the tag's run against hex.pm's bytes.

ECDSAP384 and the KMS shapes ship, with remote: on MLDSA87, COSE and the
hash envelope, and the suite in FIPS mode in CI. Nothing in a 0.3 answer
changes, so a 0.3 host moves by the requirement alone.

Two independent review lanes read everything added since 0.3.0 (key
handling and error surfaces; cryptographic and encoding correctness against
FIPS 204, RFC 3279, RFC 9881 and the AWS KMS API). Neither found anything
Critical, High or Medium; what they found at Low is fixed here:

- A remote's own refusal comes back as {:remote, {:error, reason}}, told
  apart from a function that raised; the reason is the host's, documented
  as not read or cleaned.
- An ECDSA public point off the curve is refused before any key is used
  or service asked.
- Under mu: :auto the empty message goes as mu: AWS KMS takes 1 to 4,096
  raw bytes. mu: :never is documented as for a service without that limit.
- The hash envelope's reason type names the new answers; two size claims
  in the docs are corrected; ECDSA's s is documented as not normalised.
- The test helper's ML-DSA-87 probe has a positive control; the KMS tests
  read the public keys exactly as GetPublicKey returned them; new tests for
  4,097 bytes, a left-padded r, s = 0, r = n and a long-form length.

Signed-off-by: Ayla Croft <aylacroft@proton.me>
@HackTuah
HackTuah merged commit 2f23858 into main Nov 30, 2026
16 checks passed
@HackTuah
HackTuah deleted the release/0.4.0 branch November 30, 2026 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant