Skip to content

Prototype hybrid PQC HTTPS on LOLIN D1 mini - #8

Merged
ajlennon merged 4 commits into
mainfrom
briar/esp8266-d1mini-hybrid-https
Dec 4, 2026
Merged

ajlennon merged 4 commits into
mainfrom
briar/esp8266-d1mini-hybrid-https

Conversation

@ajlennon

@ajlennon ajlennon commented Dec 4, 2026

Copy link
Copy Markdown
Member

Summary

Start the standalone LOLIN D1 mini (ESP8266EX, 4 MB flash) feasibility experiment with ESP8266_RTOS_SDK and wolfSSL, separate from ESP32/Zephyr.

  • Pin SDK v3.4, wolfSSL v5.9.4 and the checksum-verified LX106 compiler; use an explicit small-memory ML-KEM-768/Curve25519/ECDSA profile rather than inherited ESP32 defaults.
  • Implement direct TLS1.3/X25519MLKEM768 HTTPS8091, public ISRG Root X2 trust/name/date checks, real HTTP response validation, heap/stack logging and rejection probes. Device-local Wi-Fi/time provisioning is deliberately not included in public images.
  • Add a registered-DD-runner-only cross-build workflow with runner-local dependency/Docker caches and a finite deadline. Both launcher and container independently validate authenticated job assignment. Public artifacts retain build/static-memory evidence only, not linked firmware pending licence/source-package review.

Validation

  • On current main base 1aace23: all 73 host unit tests PASS, including native C parser tests and refusal of workstation firmware builds.
  • Python compileall (excluding downloaded upstream sources) and staged whitespace checks PASS.
  • Read-only desktop HTTPS8091 request with enforced TLS1.3/X25519MLKEM768 and normal public trust returned HTTP200/Content-Length2665. This is a desktop baseline, not wolfSSL or MCU interoperability.
  • Local self-review covered the complete candidate, TLS/trust/downgrade configuration, bounds/error handling, credential exclusion, source/toolchain pins, runner guards, workflow permissions and licensing limitations. Removed an ESP32-only esp_netif API and avoided a getter requiring bulky OpenSSL compatibility. This is self-review, not independent approval. No Preloop or Sandchest.
  • First firmware cross-build: pending CI. No local firmware compilation, board flashing or device run.

Remaining gaps

Target peak RAM/stack/fragmentation, watchdog timing and TLS certificate-path interoperability remain unproved. Negative device errors require classification: OOM/network failure is inconclusive, never a successful policy rejection. Fresh trusted time/private provisioning and a separately authorised hardware run are required before device acceptance. Strict ML-DSA authentication, MQTTS/WSS and compliance are not claimed. SDK/tooling maintenance and combined-image licence compatibility remain explicit limitations.

No server-policy changes, private credential access, runner administration, merge or deployment.

Assisted-by: Briar

Target ESP8266 RTOS SDK with a pinned wolfSSL ML-KEM-768 profile, strict public-CA TLS verification, bounded HTTP parsing, memory instrumentation and runner-only cross-build support. No hardware execution or ML-DSA claim.

Assisted-by: Briar
Fix wc_Shake compile failure against pinned wolfSSL. Add host-preprocessed profile regression coverage; preserve hybrid TLS and certificate verification.

Assisted-by: Briar
Explicitly select portable C objects instead of SDK default discovery of every .S source. Exercise the real Make adapter against synthetic C and foreign-assembly filenames.

Assisted-by: Briar
@ajlennon
ajlennon enabled auto-merge December 4, 2026 10:52
@ajlennon
ajlennon merged commit d2acf4d into main Dec 4, 2026
1 check passed
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