Repository navigation
chore(release): 1.0.0 - #176
Conversation
…ist-version test If the gate fetches the new list after the hub installs it and before the test reads the metrics, the assertion that the gate became stale does not hold. Pausing the gate while the hub changes its list removes that window.
Port 8444 served one connection at a time, so one client that stopped reading held /status and ticket fetches for every gate for seconds. It now hands accepted connections to a bounded queue of 16 served by four workers, closes and counts a connection when the queue is full, and keeps the 2 s step and 10 s connection deadlines. Port 8081 stays one thread for staff. The TLS slow-reader check in the status deadline test described the one-thread behaviour: status waited until the slow reader was cut; it now requires an answer within 1 s.
The hub now mails when the data centre is unreachable or the uplink watcher stops.
This review covers the north entrance ticket list failure, the lab reproductions, recovery work, and remaining limitations.
Clarify when extra tickets are needed to reproduce the sender hold.
This decision preserves path-MTU feedback and makes each gate's installed list visible. It also aligns the hub's served and decision lists and bounds the TLS status listener. Co-authored-by: Yuki Tanaka <yuki.tanaka@elsworne.example>
Add the north entrance session and update the device TLS outputs and the offline-report session from the release code, so the committed outputs match 1.0.0.
|
Wang Hao · reviewer The build image now runs 构建镜像现在会执行 |
|
Yuki Tanaka · author No. 不会。 |
|
Ben Carter · reviewer Where does the hub read the SMTP password from now? hub 现在从哪里读 SMTP 密码? |
|
Yuki Tanaka · author From 从 |
Why
Cut 1.0.0: set the version, publish the changelog and security policy, and fix what still blocked the release in the build image, the hub's mail credentials and the lab checks.
What changed
project(gatepost VERSION 1.0.0), so the packages are built as 1.0.0.CHANGELOG.mdandSECURITY.mdwith Chinese versions; both READMEs link the 1.0.0 features and the security policy.LoadCredential=(mail-ca.pem,smtp-password), andconfig/hub.conf.examplepoints at/run/credentials/gate-hub.service/. The packages page says so and nameslab/keys.shfor test keys.Dockerfile.build: Debian snapshot 20261030, then a separateapt-get upgradefrom that snapshot after the tool packages are installed.lab/monitoring-check.shwaits up to 90 s until gate1, gate2, north1 and north2 havetickets.txt.etag;lab/two-gate-scan.shremoveslab/runtimebefore it starts.lab/captures/north-entrance/session.txt(MTU 1400 on the north-facing interface; north1 rejects a newly published ticket withnot_in_listat opening, then acceptsGP-900000000003after installing the list;result: north1 okand every cleanup check ok).lab/captures/device-tls/now showstickets=20000andstatus=200 bytes=3488890; the offline-report session lists a thirdACCEPTline.How to verify
Requires Docker. From the repository root:
Set
GATEPOST_GRAFANA_ADMIN_PASSWORDas shown: in this version the ticket-list wait runs throughlab/monitoring.yaml, which refuses to load without it. Runlab/north-entrance.shalone; it changes the router MTU and restores it.背景
发布 1.0.0:设定版本号,发布更新记录和安全策略,并修好构建镜像、hub 邮件凭据和实验检查里仍挡住发布的问题。
改动
project(gatepost VERSION 1.0.0),软件包按 1.0.0 构建。CHANGELOG.md、SECURITY.md及中文版;两个 README 都链接到 1.0.0 的主要功能和安全策略。LoadCredential=传入(mail-ca.pem、smtp-password),config/hub.conf.example指向/run/credentials/gate-hub.service/。软件包文档同步说明,并把测试密钥的来源改为lab/keys.sh。Dockerfile.build:Debian 快照改为 20261030;装完工具包后,另起一步从这个快照执行apt-get upgrade。lab/monitoring-check.sh最多等 90 秒,直到 gate1、gate2、north1、north2 都有tickets.txt.etag;lab/two-gate-scan.sh启动前先删除lab/runtime。lab/captures/north-entrance/session.txt(北向接口 MTU 1400;开门时 north1 以not_in_list拒绝新发布的票,装好新票单后放行GP-900000000003;result: north1 ok,各项清理检查均通过)。lab/captures/device-tls/现在是tickets=20000和status=200 bytes=3488890;离线报告记录里多了一行ACCEPT。怎么验证
需要 Docker。在仓库根目录运行:
请照上面设置
GATEPOST_GRAFANA_ADMIN_PASSWORD:这一版等待票单时经过lab/monitoring.yaml,没有这个变量它拒绝加载。lab/north-entrance.sh要单独运行,它会修改并还原路由器的 MTU。