docs: заметка DTLS-как-обфускация + breaking changes в README

- internal/transport/dtlsdial/doc.go: объяснить, что DTLS используется как слой
  обфускации под content-фильтр VK TURN, а не как граница безопасности;
  задокументировать, почему -no-dtls был убран и почему решения вроде
  self-signed сертификатов / send-only CID намеренны.
- README: добавить врезку breaking-changes под "Защита от блокировок"; убрать
  строки -no-dtls и server -vless-bond из таблиц флагов; отметить, что bond
  автоопределяется по magic-префиксу на сервере.

Завершает рефакторинг. Все этапы зелёные: go build / go vet / go test / gofmt.
CLI и wire-форматы бит-в-бит кроме двух удалений (-no-dtls на клиенте,
-vless-bond на сервере).
This commit is contained in:
samosvalishe committed 2026-05-19 21:18:58 +03:00
1 parent 6c9bfbae82
commit 7e3369f478
3 files changed
+26 -7

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
// DTLS-as-obfuscation note (V2-8):
//
// DTLS in this project is used primarily as an *obfuscation* layer, not as a
// security boundary. The VK TURN content-filter drops payloads that do not
// look like a legitimate DTLS handshake followed by encrypted records, so the
// handshake is what gets us through. The encryption it provides is a free
// side-effect — we already trust the wrapped tunnel (WireGuard inside UDP
// mode, or smux+KCP inside tcpfwd mode) to handle confidentiality and
// integrity end-to-end.
//
// This is why the older `-no-dtls` / `Direct` flag was removed in V2-0: with
// DTLS off, VK drops packets and the proxy effectively does not work in
// production. There is no scenario in which disabling DTLS is the right
// call against the live VK filter.
//
// Implication for future changes: do not treat the DTLS layer as if it were
// security-critical (e.g. it is fine to use self-signed certs, send-only CID,
// and no peer-cert validation — those are deliberate, not oversights).
package dtlsdial