balena-supervisor/test/data
Christina Ying Wang eaa07e97a9 Add support for redsocks dnsu2t config
Users may specify dnsu2t config by including a `dns` field
in the `proxy` section of PATCH /v1/device/host-config's body:
```
{
  network: {
    proxy: {
      dns: '1.1.1.1:53',
    }
  }
}
```

If `dns` is a string, ADDRESS and PORT are required and should be
in the format `ADDRESS:PORT`. The endpoint with error with
code 400 if either ADDRESS or PORT are missing.

`dns` may also be a boolean. If true, defaults will be configured.
If false, the dns configuration will be removed.

If `proxy` is patched to empty, `dns` will be removed regardless
of its current or input configs, as `dns` depends on an active
redsocks proxy to function.

Change-type: minor
Signed-off-by: Christina Ying Wang <christina@balena.io>
2024-08-28 14:01:51 -07:00
..
docker-states Read hostname from config.json with container /etc/hostname as backup 2022-06-15 11:31:36 -07:00
etc Complete /v1/device/host-config unit tests, modify PATCH route 2021-02-18 12:25:44 +09:00
mnt/boot Add support for redsocks dnsu2t config 2024-08-28 14:01:51 -07:00
ports/not-ascending tests: Add test case for ascending ports issue 2019-01-02 11:31:25 +00:00
resin-data Add some more unit tests to the multicontainer supervisor 2018-04-30 19:39:01 -07:00
root Revert os-release path to /mnt/root 2023-10-09 14:02:02 -07:00
sys/class/net state: Report device MAC address to the API 2020-06-22 10:41:06 +01:00
apps-pin.json Add support for GET v3 target state 2022-03-22 19:08:02 -03:00
apps.json Add support for GET v3 target state 2022-03-22 19:08:02 -03:00
boot0.img added support for configuring ODMDATA 2020-08-29 09:05:27 -04:00
device-api-responses.json Update host-config, route, and action tests for host config endpoints 2023-01-11 15:48:13 -08:00
testconfig-apibinder-offline2.json Don't generate config fields in offline mode 2018-05-21 14:45:32 +01:00
testconfig-apibinder-offline.json Remove unnecessary config.json keys 2020-05-08 12:56:42 +01:00
testconfig-apibinder.json Use write + sync when writing configs to /mnt/boot 2022-05-03 11:23:00 -04:00
testconfig.json Remove unnecessary config.json keys 2020-05-08 12:56:42 +01:00