Commit graph

101 commits

Author SHA1 Message Date
Sirius DevOps
9b7e72b257
ci(release): publish from the Pi; surface API 422s
Run 116 built both arches then POST /releases returned 422 six times
(--retry-all-errors) with no body, while sitting on docker-amd64 behind
android. Move publish to the Pi runner (same path as tag create) and
print the Forgejo error instead of retrying 4xx. README now matches the
core-only path filter and onionwire-ci-pi concurrency.
2026-09-12 02:51:07 -04:00
fecec6c29a Merge pull request 'ci: skip cargo suite when the change cannot affect Rust' (#32) from wt/t_bc2f5c51 into main
Some checks are pending
ci / test (push) Waiting to run
Reviewed-on: #32
2026-09-12 05:44:13 +00:00
Sirius DevOps
1218869629
ci: skip cargo suite when the change cannot affect Rust
Some checks failed
ci / test (pull_request) Has been cancelled
Path allowlist on push-to-main and pull_request: src/, crates/, tests/,
Cargo.toml, Cargo.lock, and this workflow. workflow_dispatch still always
runs. No branch protections, so a skipped run is not a merge trap.
2026-09-12 01:42:01 -04:00
1e8d4057bb Merge pull request 'ci(release): apt retries, always-run publish, Pi concurrency' (#31) from wt/t_2c84cd13 into main
Some checks failed
ci / test (push) Failing after 2m42s
Reviewed-on: #31
2026-09-12 05:39:08 +00:00
Sirius DevOps
ae9cd5728e
ci(release): do not mint a release for workflow-only edits
All checks were successful
ci / test (pull_request) Successful in 4m46s
Drop release.yml and build-release-local.sh from on.push.paths so a CI
tweak cannot cut a user-facing tag. Validate those files with dry_run
dispatch instead. release-body.md stays because it is the published body.
2026-09-12 01:35:13 -04:00
Sirius DevOps
eaea3d49f7
ci(release): apt retries on IPv4; never skip the publish job
All checks were successful
ci / test (pull_request) Successful in 3m39s
Concurrent dind rust containers looped on apt InRelease; abort and retry
with ForceIPv4. Publish always runs after version so cleanup is not
blocked by Forgejo act "'runs-on' key not defined" on a skipped job.
Do not bake a custom rust image on this card.
2026-09-12 01:30:16 -04:00
3e72f40e0e Merge pull request 'fix(ci): Android APK build in bookworm sibling container' (#29) from wt/t_87d7245b into main
All checks were successful
ci / test (push) Successful in 3m40s
Reviewed-on: #29
2026-09-12 05:13:46 +00:00
Sirius DevOps
c087b223e9
fix(ci): build Android APK in a bookworm sibling container
All checks were successful
ci / test (pull_request) Successful in 4m57s
node:20-bullseye (the amd64 job image) is EOL; apt-get there fails on
expired/404 security indexes. Run JDK 17 + SDK/NDK + cargo-ndk inside
eclipse-temurin:17-jdk-bookworm via docker create + stdin tar, matching
the Rust CI pattern. Fetch a static docker CLI if the job image lacks
one. On publish failure after creating a tag, delete that tag so the
next run retries the same version (first release stays v0.1.0).
2026-09-12 01:14:43 -04:00
3e28fa311c Merge pull request 'ci(release): install static docker CLI on amd64 jobs' (#28) from wt/t_2c84cd13 into main
Some checks failed
release / x86_64 (push) Failing after 19m52s
ci / test (push) Waiting to run
release / version (push) Successful in 3s
release / aarch64 (push) Successful in 3m30s
release / publish (push) Has been cancelled
release / cleanup (push) Has been cancelled
Reviewed-on: #28
2026-09-12 05:10:07 +00:00
Sirius DevOps
898b943485
ci(release): share ci.yml concurrency; make cleanup actually delete
Some checks failed
ci / test (pull_request) Failing after 2m51s
Use onionwire-ci-pi so cargo release builds cannot race tests on the
Pi's shared /target volume. Strip PAT newlines in cleanup and treat
publish skipped/failed as the signal to delete the tag this run created,
so the next run retries the same version instead of advancing.
2026-09-12 01:09:46 -04:00
Sirius DevOps
951439d7e2
ci(release): install static docker CLI on amd64 jobs
All checks were successful
ci / test (pull_request) Successful in 3m48s
The docker-amd64 runner's node:20-bullseye job image has no docker
binary (Pi jobs get one via the host socket mount). Fetch the upstream
static CLI so the rust:1.91-bookworm sibling build can run.
2026-09-12 01:03:22 -04:00
4a248f5b73 Merge pull request 'feat(android): auto-publish signed APK and AAR from CI' (#26) from wt/t_87d7245b into main
All checks were successful
ci / test (push) Successful in 3m8s
Reviewed-on: #26
2026-09-12 04:59:41 +00:00
Sirius DevOps
c8693d2006
fix(ci): android-release HTTPS apt mirrors and dry_run input
All checks were successful
ci / test (pull_request) Successful in 7m9s
dind timed out on http://deb.debian.org:80. Flip sources to HTTPS.
Do not let workflow_call's boolean false clobber dispatch dry_run.
2026-09-12 01:00:42 -04:00
Sirius DevOps
1c4aaefb01
feat(android): auto-publish signed APK and AAR from CI
Some checks failed
ci / test (pull_request) Failing after 3m13s
Push to main that touches android/** builds a release APK + SDK AAR on
docker-amd64, verifies size/ABI/signature, and create-or-joins the Forgejo
release. Version is latest v*.*.* patch+1, or v0.1.0 when there are no tags.
Release signing uses repo secrets (ANDROID_KEYSTORE_*), not the debug key.
2026-09-12 00:54:17 -04:00
2b704ba464 Merge pull request 'ci(release): auto-tag and publish aarch64+x86_64 on main' (#25) from wt/t_2c84cd13 into main
Some checks failed
ci / test (push) Has been cancelled
release / version (push) Successful in 5s
release / x86_64 (push) Failing after 6s
release / aarch64 (push) Successful in 2m30s
release / publish (push) Failing after 0s
release / cleanup (push) Successful in 15s
Reviewed-on: #25
2026-09-12 04:54:09 +00:00
Sirius DevOps
58e10a0bc0
ci(release): honor dry_run input and send JSON Content-Type
Some checks failed
ci / test (pull_request) Failing after 4m1s
Forgejo dispatch passes string inputs; boolean dry_run stayed false and
tried to mint v0.1.0. Strip PAT newlines so Authorization does not eat
the next header (422 Empty Content-Type).
2026-09-12 00:55:18 -04:00
Sirius DevOps
111b95c3ae
ci(release): auto-tag and publish aarch64+x86_64 on main
Some checks failed
ci / test (pull_request) Failing after 2m16s
Drop the tag-push trigger so API-created tags cannot start a second run.
Core paths on main (or workflow_dispatch) mint the next v*.*.* tag
(v0.1.0 when none exist), build both arches in CI, and publish one
release. dry_run builds without tagging. Fail closed on empty assets.
2026-09-12 00:52:46 -04:00
33beeded92 Merge pull request 'feat(tui): fail-closed footer, 1-line header, help overlay' (#24) from wt/t_0d3b0f80 into main
All checks were successful
ci / test (push) Successful in 2m48s
Reviewed-on: #24
2026-09-12 04:25:07 +00:00
Sirius DevOps
7d3e1bd627
test(tui): keep send-failed visible in crowded status_footer
All checks were successful
ci / test (pull_request) Successful in 3m5s
PR #23 locked the old drop. Flip status_footer_drops_send_failed_when_crowded
to assert the note stays at 80/120/200 with TOR, me:, and ? help.
2026-09-12 00:22:04 -04:00
Sirius DevOps
494a0e4099
Merge remote-tracking branch 'origin/main' into wt/t_0d3b0f80 2026-09-12 00:20:26 -04:00
53f9914be5 Merge pull request 'docs(tui): visual audit, before frames, and design spec' (#23) from wt/t_3c2d56df into main
All checks were successful
ci / test (push) Successful in 3m39s
Reviewed-on: #23
2026-09-12 04:15:38 +00:00
Sirius DevOps
0749d2300a
feat(tui): keep fail-closed footer, flatten main chrome
All checks were successful
ci / test (pull_request) Successful in 4m48s
status_footer never drops send failed / status_note; TOR, me:, and ? help
still fit at 80 and 120. Main at 24 rows uses a one-line header, a 22-cell
roster, chat as the primary pane, and an unboxed composer with a message
placeholder. Help at height < 28 is full-screen so Esc closes this overlay
is visible. Palette maps RGB to 16-color and NO_COLOR (glyphs/weight only).

Do not include docs/TUI.md or tests/tui_frames.rs (PR #23).
2026-09-12 00:15:19 -04:00
175f5dd943 Merge pull request 'fix(file): pace chunks to fit rendezvous rate limit' (#22) from wt/t_fc02d8b6 into main
All checks were successful
ci / test (push) Successful in 2m54s
Reviewed-on: #22
2026-09-12 04:11:10 +00:00
dcb98132e2 Merge branch 'main' into wt/t_fc02d8b6
All checks were successful
ci / test (pull_request) Successful in 3m2s
2026-09-12 04:11:00 +00:00
4457c7330c Merge pull request 'sanitize peer chat/control/bidi before store and TUI render' (#21) from wt/t_6ddd495e into main
All checks were successful
ci / test (push) Successful in 3m42s
Reviewed-on: #21
2026-09-12 03:59:46 +00:00
0a888eced5 Merge branch 'main' into wt/t_6ddd495e
Some checks failed
ci / test (pull_request) Failing after 2m29s
2026-09-12 03:58:53 +00:00
f9395ee070 Merge pull request 'fix(protocol): domain-separate loc/prf/inv/rcp signatures' (#20) from wt/t_ce5649ac into main
All checks were successful
ci / test (push) Successful in 2m27s
Reviewed-on: #20
2026-09-12 03:53:43 +00:00
Sirius DevOps
4205ed149d
docs(tui): visual audit, before frames, and design spec
All checks were successful
ci / test (pull_request) Successful in 2m45s
Dump current chrome through TestBackend at 80x24 / 120x40 / 200x60.
No src changes. Spec in docs/TUI.md for the implementation card.
2026-09-11 23:52:05 -04:00
Sirius DevOps
4bbc2de9ab
[verified] fix(file): pace chunks to fit rendezvous rate limit
All checks were successful
ci / test (pull_request) Successful in 2m42s
Sender-side only. First chunk attempt is immediate; later attempts
(retries and later chunks) wait 3s. Three attempts per chunk, then
fail closed. Token bucket 30/60s burst 10 is unchanged.

A 1 MiB file is 17 one-shot sessions; pacing floor is 16*3s = 48s
plus handshake time. Latency trade, not a security fix.
2026-09-11 23:49:29 -04:00
Sirius DevOps
818cf5922f
ci: retrigger Pi runner after shared target lock
All checks were successful
ci / test (pull_request) Successful in 2m43s
Previous PR run waited on the cargo build-dir lock then compiled
tests against a stale rlib missing sanitize.
2026-09-11 23:46:54 -04:00
Sirius DevOps
e3738c51f7
[verified] sanitize peer chat/control/bidi before store and TUI render
Some checks failed
ci / test (pull_request) Failing after 2m2s
Strip C0 (except tab/newline), DEL, C1, and bidi/format marks at ingest
and render; keep ZWJ; lossy UTF-8 stays U+FFFD. Reject the same set in
fil names. Docs match the policy.
2026-09-11 23:42:48 -04:00
Sirius DevOps
c8e69732c7
fix(protocol): domain-separate loc/prf/inv/rcp signatures
All checks were successful
ci / test (pull_request) Successful in 2m30s
Sign application frames as tag || 0x00 || fields (onionwire-loc-v1,
onionwire-prf-v1, onionwire-inv-v1, onionwire-rcp-v1). Verify accepts
that form first, then the legacy untagged LF-joined layout. Encode still
emits only the tagged signature; wire prefixes and field layout are
unchanged.

Older builds verify untagged bytes only, so they reject new tagged
signatures (fail closed). Mixed-version fleets break outbound app frames
from a new sender to an old receiver until both sides are updated.
2026-09-11 23:42:41 -04:00
cb91ba2b78 Merge pull request 'fix(tui): do not freeze the UI on chat send' (#19) from feat/tui-nonblocking-send into main
All checks were successful
ci / test (push) Successful in 2m36s
Reviewed-on: #19
2026-09-12 03:10:53 +00:00
Sirius DevOps
7d8363a761
fix(tui): do not freeze the UI on chat send
Some checks failed
ci / test (pull_request) Failing after 1s
Enter used block_on(Node::send), which retries for 180s on the TUI
thread so event::read never ran. Spawn send on the runtime, poll keys
at 100ms, show sending/sent/send failed on the footer.
2026-09-11 22:33:55 -04:00
8c79250acf Merge pull request 'fix(android): Approve and add no-op from shared Compose busy flag' (#18) from wt/t_af421dc6 into main
All checks were successful
ci / test (push) Successful in 2m30s
Reviewed-on: #18
2026-09-12 02:05:46 +00:00
d213dd21df Merge pull request 'docs: protocol spec and audit-notes cleanup' (#17) from docs/protocol into main
Some checks are pending
ci / test (push) Waiting to run
Reviewed-on: #17
2026-09-12 02:05:23 +00:00
Sirius DevOps
f6ac5ea738
fix(android): Approve & add no-op from shared Compose busy flag
All checks were successful
ci / test (pull_request) Successful in 2m32s
PasteInviteScreen drove Verify and Approve from one busy boolean plus
LaunchedEffect(busy). Tapping Approve relaunched decode, which cleared
busy and cancelled add — so the roster never updated.

Extract InviteAddFlow with separate verifying/adding flags and launch
each action from its click handler. Unit tests were red against the
shared-busy state machine (4/5 failed) and green after the split (5/5).
2026-09-11 21:57:21 -04:00
Sirius DevOps
22b3a0062a
docs: add PROTOCOL.md and retire the stale audit writeup
All checks were successful
ci / test (pull_request) Successful in 3m7s
Wire format lives in docs/PROTOCOL.md so the handshake, invite, and
frames can be read without the Rust. Threat model points at it. The
in-house audit notes are a finding-status table, not a third-party
audit. SDK README no longer claims the legacy concat invite signature
is what we encode.
2026-09-11 13:15:51 -04:00
af7d69ace8 Merge pull request 'feat(tui): fail-closed /file transfer (1 MiB)' (#16) from feat/tui-file-transfer into main
Some checks are pending
ci / test (push) Waiting to run
Reviewed-on: #16
2026-09-11 04:52:55 +00:00
Sirius DevOps
0ea6fd68c4
[verified] feat(tui): fail-closed /file transfer (1 MiB)
All checks were successful
ci / test (pull_request) Successful in 3m9s
Typed fil frames chunk a local file to the selected friend over the
existing one-shot pipe. Receive-side 1 MiB cap, basename-only names,
hash check before rename, never overwrite. Chat shows [file] name only.
2026-09-10 23:32:06 -04:00
Sirius DevOps
c4ccca7e8c
feat(tui): Enter sends chat to the selected friend
Composer Enter only ran slash commands, so typed messages were dropped.
Wire Node::send, keep /commands, reject unknown /foo as not-chat.
2026-09-10 23:07:22 -04:00
c141eb45b8 Merge pull request 'fix(sdk): enable rustls' ring provider — APK died at 'Failed to start / Could not determine the process-level CryptoProvider'' (#15) from wt/t_dcb8565a into main
All checks were successful
ci / test (push) Successful in 4m5s
Reviewed-on: #15
2026-09-10 22:35:31 -04:00
Sirius DevOps
d2d3b0c827
fix(sdk): enable rustls' ring provider and install it in the init path
All checks were successful
ci / test (pull_request) Successful in 3m30s
GREEN. rustls 0.23 selects its CryptoProvider from its own 'ring' /
'aws-lc-rs' crate features. Arti reaches rustls through tor-rtcompat with
default-features = false and nothing in this workspace turned a provider
feature on, so rustls was compiled with zero providers and the first TLS
config built from the process default panicked:

    Could not automatically determine the process-level CryptoProvider from
    Rustls crate features. ...

That is the 'Failed to start' screen on the unlock path. The 'ring' crate
being present in the graph (via snow, for Noise) never had anything to do
with it.

'ring', not 'aws-lc-rs': aws-lc-rs wants CMake and a C toolchain for the
NDK and fights the cross-compile.

Belt and braces: open_wire() now calls install_crypto_provider() before
Node::start_with_passphrase, a OnceLock-guarded
ring::default_provider().install_default() with the already-installed Err
ignored. That keeps the cdylib correct regardless of how a consumer's
feature graph resolves rustls.

aws-lc-rs is absent from the lock, so there is no two-provider conflict to
report.

Evidence:
  cargo test --release --test provider_resolution
    before: panicked at rustls-0.23.44/src/crypto/mod.rs:249 (device message)
    after:  1 passed
  cargo tree -f '{p} [{f}]' -p rustls
    rustls v0.23.44 [log,logging,ring,std,tls12]
2026-09-10 22:03:40 -04:00
Sirius DevOps
411194a8b2
test(sdk): reproduce rustls CryptoProvider panic from the device
RED. The APK builds, installs and opens, but the first rustls config built
from the process default panics one call deep inside Arti's rustls backend:

    Could not automatically determine the process-level CryptoProvider from
    Rustls crate features.
    Call CryptoProvider::install_default() before this point ...

rustls 0.23 picks its provider from its own 'ring' / 'aws-lc-rs' crate
features, not from which crypto crates happen to be linked. Arti reaches
rustls via tor-rtcompat with default-features = false, so neither provider
feature is on and rustls compiles with zero providers. 'ring' does appear in
cargo tree, pulled in by snow for Noise -- unrelated and irrelevant.

This commit adds rustls as an explicit dependency with no provider feature
(no behaviour change: it is already in the graph that way) so the test can
name the type, plus the regression test. On the host it reproduces the
device's panic verbatim.

The SDK lockfile is resynced with the root Cargo.toml on main (onionwire
0.2.1, rpassword, md-5, rtoolbox) in the same commit so the test build is
against a consistent lock.
2026-09-10 22:02:02 -04:00
389d8f16c4 Merge pull request 'fix(cli): hide store passphrase like a password prompt' (#14) from feat/hidden-store-passphrase into main
All checks were successful
ci / test (push) Successful in 3m32s
Reviewed-on: #14
2026-09-10 21:18:46 -04:00
b354632552 Merge branch 'main' into feat/hidden-store-passphrase
All checks were successful
ci / test (pull_request) Successful in 3m44s
2026-09-10 21:18:32 -04:00
Sirius DevOps
c5019f1737
fix(cli): hide store passphrase like a password prompt
All checks were successful
ci / test (pull_request) Successful in 4m54s
stdin read_line echoed the passphrase. rpassword disables tty echo.
ONIONWIRE_STORE_PASSPHRASE still skips the prompt.
2026-09-10 21:10:50 -04:00
2abb9af4ad Merge pull request 'chore: bump crate version to 0.2.1' (#13) from feat/v0.2.1 into main
All checks were successful
ci / test (push) Successful in 5m10s
Reviewed-on: #13
2026-09-10 21:08:20 -04:00
Sirius DevOps
51e47ff90c
chore: bump crate version to 0.2.1
All checks were successful
release / aarch64 (push) Successful in 5m19s
ci / test (pull_request) Successful in 5m34s
Tag and --version have to move together. Ships the post-v0.2.0 main
line: security audit F1–F7, Pi CI serialize, Android SDK already on main.
2026-09-10 20:52:24 -04:00
f109223678 Merge pull request 'fix: security audit F5–F7 + Pi CI races (bundle)' (#12) from feat/audit-fixes-bundle into main
All checks were successful
ci / test (push) Successful in 2m45s
Reviewed-on: #12
2026-09-10 20:41:40 -04:00