mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-16 06:18:16 +00:00
firewall: Add Host Firewall functionality
Controlled by BALENA_HOST_FIREWALL_MODE, the firewall can either be 'on' or 'off'. - In the 'off' state, all traffic is allowed. - In the 'on' state, only traffic for the core services provided by Balena is allowed. Change-type: patch Signed-off-by: Rich Bayliss <rich@balena.io>
This commit is contained in:
@ -10,7 +10,6 @@ const mockedOptions = {
|
||||
|
||||
const VALID_SECRET = mockedAPI.STUBBED_VALUES.config.apiSecret;
|
||||
const INVALID_SECRET = 'bad_api_secret';
|
||||
const ALLOWED_INTERFACES = ['lo']; // Only need loopback since this is for testing
|
||||
|
||||
describe('SupervisorAPI authentication', () => {
|
||||
let api: SupervisorAPI;
|
||||
@ -20,11 +19,7 @@ describe('SupervisorAPI authentication', () => {
|
||||
// Create test API
|
||||
api = await mockedAPI.create();
|
||||
// Start test API
|
||||
return api.listen(
|
||||
ALLOWED_INTERFACES,
|
||||
mockedOptions.listenPort,
|
||||
mockedOptions.timeout,
|
||||
);
|
||||
return api.listen(mockedOptions.listenPort, mockedOptions.timeout);
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
|
Reference in New Issue
Block a user