Commit 43c3daa
committed
Add data-exchange network policy and multi-network stream fix
- Fix SYN-ACK/RST source address for multi-network connections:
use pkt.Dst instead of d.Addr() so responses match the network-
specific address the connection was opened with
- Fix policy runner bootstrap: always refresh peers from registry
on startup, not just for policies with cycle rules
- Add admin-token registry paths for pilotctl network join --node-id,
member-tags set, and policy set
- Add data-exchange-policy.json: service-node gated connectivity
with text messaging (port 1000) open and file transfer (port 1001)
restricted to service-tagged nodes
- Add integration test (6 subtests) covering connect, dial, datagram
policy enforcement1 parent 12be2cb commit 43c3daa
5 files changed
Lines changed: 377 additions & 21 deletions
File tree
- cmd/pilotctl
- pkg/daemon
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4384 | 4384 | | |
4385 | 4385 | | |
4386 | 4386 | | |
4387 | | - | |
| 4387 | + | |
4388 | 4388 | | |
4389 | 4389 | | |
4390 | | - | |
4391 | | - | |
4392 | | - | |
4393 | | - | |
4394 | | - | |
| 4390 | + | |
| 4391 | + | |
| 4392 | + | |
| 4393 | + | |
| 4394 | + | |
| 4395 | + | |
| 4396 | + | |
| 4397 | + | |
| 4398 | + | |
| 4399 | + | |
| 4400 | + | |
| 4401 | + | |
| 4402 | + | |
| 4403 | + | |
4395 | 4404 | | |
| 4405 | + | |
| 4406 | + | |
| 4407 | + | |
| 4408 | + | |
| 4409 | + | |
| 4410 | + | |
4396 | 4411 | | |
4397 | 4412 | | |
4398 | 4413 | | |
| |||
5303 | 5318 | | |
5304 | 5319 | | |
5305 | 5320 | | |
5306 | | - | |
| 5321 | + | |
| 5322 | + | |
| 5323 | + | |
| 5324 | + | |
| 5325 | + | |
5307 | 5326 | | |
5308 | 5327 | | |
5309 | 5328 | | |
| |||
5488 | 5507 | | |
5489 | 5508 | | |
5490 | 5509 | | |
| 5510 | + | |
| 5511 | + | |
| 5512 | + | |
| 5513 | + | |
| 5514 | + | |
| 5515 | + | |
| 5516 | + | |
| 5517 | + | |
| 5518 | + | |
| 5519 | + | |
| 5520 | + | |
| 5521 | + | |
| 5522 | + | |
| 5523 | + | |
| 5524 | + | |
| 5525 | + | |
| 5526 | + | |
5491 | 5527 | | |
5492 | 5528 | | |
5493 | 5529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1323 | 1323 | | |
1324 | 1324 | | |
1325 | 1325 | | |
1326 | | - | |
| 1326 | + | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | 1329 | | |
| |||
1396 | 1396 | | |
1397 | 1397 | | |
1398 | 1398 | | |
1399 | | - | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
1400 | 1404 | | |
1401 | 1405 | | |
1402 | 1406 | | |
| |||
1417 | 1421 | | |
1418 | 1422 | | |
1419 | 1423 | | |
1420 | | - | |
| 1424 | + | |
1421 | 1425 | | |
1422 | 1426 | | |
1423 | 1427 | | |
| |||
1727 | 1731 | | |
1728 | 1732 | | |
1729 | 1733 | | |
1730 | | - | |
| 1734 | + | |
1731 | 1735 | | |
1732 | 1736 | | |
1733 | 1737 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
366 | 361 | | |
367 | 362 | | |
368 | 363 | | |
| |||
0 commit comments