跳到正文
Hacker News (official RSS)(github.com)·· 9 天前品質評分43

Lonewolf 0.3 加入憑證驗證的伺服器互連與直接 TLS

Lonewolf 0.3 – A standalone XMPP server written in Rust

重點導讀

XMPP 伺服器要和其他伺服器安全交換訊息,需要確認對方的憑證。

  • Rust 撰寫的 Lonewolf 0.3 加入憑證驗證的伺服器互連,也支援直接 TLS。
  • 符合條件的伺服器可以共用一條連線,交換訊息、線上狀態和聯絡人訂閱資料。舉例來說,設定好憑證並擁有公開 DNS 名稱的主機,預設就能和其他 XMPP 伺服器互通。Lonewolf 仍是 1.0 前的單一節點伺服器,完整符合 XMPP 標準和多臺伺服器一起運作的功能還在規劃中。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

正文

Lonewolf v0.3.0 adds certificate-authenticated federation, direct TLS, and more desktop client features. It remains a pre-1.0, single-node server; full XMPP compliance and clustering remain on the roadmap.

Client and federation features

  • Federation exchanges messages, IQs, presence, and roster subscriptions with other XMPP servers. Hosts with configured certificates and public DNS names federate by default. Peers need trusted certificates and SASL EXTERNAL; Server Dialback is not supported.
  • Bidirectional connections (XEP-0288) let compatible servers share one connection. Stream Limits Advertisement (XEP-0478) exchanges federation stanza and idle limits.
  • Direct TLS (XEP-0368) adds client and server listeners and combined STARTTLS/direct-TLS federation discovery.
  • Private XML Storage (XEP-0049) stores private client settings and legacy bookmarks. Software Version (XEP-0092) answers domain software queries, with operating system disclosure off by default. Both extensions are enabled by default.
  • Opt-in SCRAM-SHA-512 and SCRAM-SHA-512-PLUS implement an expired Internet-Draft, not an RFC or IANA-registered mechanism. Account creation and password changes write credentials older binaries cannot read, even when SHA-512 login is disabled.

The standards reference records supported roles and limits.

Operations and tooling

  • Federation checks CA-published CRLs over plain HTTP by default. Downloaded checks allow unknown revocation status; s2s.tls.fetch_crls = false disables downloads. A configured s2s.tls.crls_path uses only the local file.
  • letsencrypt.certificate_profile selects a CA-advertised profile, including short-lived certificates. Profile changes trigger early renewal.
  • The default client stanza limit falls from 512 KiB to 256 KiB. Traffic byte counters now include TLS handshake and record overhead.
  • The benchmark executable and crate are now lonewolfbench, replacing lonewolf-bench.

See the configuration reference for settings and defaults.

Build from source

Download and extract Source code (tar.gz) or Source code (zip) below, then run:

cargo build --release --locked -p lonewolf -p lonewolfctl -p lonewolfbench

Build on Linux or macOS with a stable Rust toolchain and a system linker. See the quick start for setup.

Full changelog: v0.2.0…v0.3.0.

License: Apache-2.0.

讀者討論

理性交流 · 即時討論