balena-supervisor/test/lib
Christina Ying Wang 84a9e7e9ac Replace BALENA-FIREWALL rule in INPUT chain instead of flushing
The issue with the original Supervisor implementation of the firewall is that
on Supervisor start, the Supervisor flushes the INPUT chain of the filter table.
This doesn't play well with services that add to the INPUT chain on startup that
may start up before the Supervisor, such as certain NetworkManager connection
profiles. This change only replaces the BALENA-FIREWALL rule in the INPUT chain,
preserving the other rules as well as their order.

Closes: #1482
Change-type: patch
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-03-01 13:42:07 -08:00
..
dbus Setup environment for dbus tests 2022-10-17 11:24:15 -03:00
chai.ts Create test/unit and test/integration folders 2022-08-24 14:28:36 -04:00
db-helper.ts Update @balena/lint to 6.2.0 2022-09-19 16:41:28 +01:00
docker-helper.ts Add tests for doPurge action and v1/v2 app purge routes 2023-01-09 16:25:27 -08:00
errors.ts Update typed-error to 3.x 2020-08-19 10:07:54 +01:00
legacy-mocha-hooks.ts Migrate API tests to unit/integration 2022-10-25 19:06:39 +00:00
mocha-hooks.ts Migrate API tests to unit/integration 2022-10-25 19:06:39 +00:00
mocked-balena-api.ts Consolidate API middlewares, move api-keys to device-api 2022-10-18 14:16:53 -07:00
mocked-device-api.ts Use v2 router directly instead of through application manager 2022-10-18 14:16:53 -07:00
mocked-dockerode.ts Improve NotFoundError handling 2022-11-08 15:41:52 -08:00
mocked-iptables.ts Replace BALENA-FIREWALL rule in INPUT chain instead of flushing 2023-03-01 13:42:07 -08:00
mockerode.ts Create default network as config-only when services have host networking 2022-11-16 10:19:36 -08:00
prepare.ts Update to typescript 4.8.2 2022-09-19 16:36:17 +01:00
state-helper.ts Find and remove duplicate networks 2023-02-10 20:24:36 -05:00
wait-for-it.sh Fix wait-for-it script to work with external signals 2023-01-31 10:43:19 -03:00