mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +00:00
1f97514200
#9857 The "Public IP address" field is sometimes set to a "Private IP" on the following types of Fleet deployments: - Local deployments. - Deployments where Fleet is on a private network. - Deployments where an agent connects to Fleet not via the public internet. This PR will prevent a private IP to be set on the `host.public_ip` field. And this PR also adds documentation on how Fleet deduces the public IPs of the devices so that a user can make the changes to fix this. - [X] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - ~[ ] Documented any API changes (docs/Using-Fleet/REST-API.md or docs/Contributing/API-for-contributors.md)~ - ~[ ] Documented any permissions changes~ - ~[ ] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements)~ - ~[ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for new osquery data ingestion features.~ - ~[ ] Added/updated tests~ - [X] Manual QA for all new/changed functionality - ~For Orbit and Fleet Desktop changes:~ - ~[ ] Manual QA must be performed in the three main OSs, macOS, Windows and Linux.~ - ~[ ] Auto-update manual QA, from released version of component to new version (see [tools/tuf/test](../tools/tuf/test/README.md)).~ |
||
---|---|---|
.. | ||
nginx | ||
docker-compose.yaml | ||
fleet_test.go | ||
fleet.crt | ||
fleet.key | ||
generate_cert.sh | ||
osquery.flags | ||
README.md | ||
upgrade_test.go |
Upgrade Tests
The tests located in test/upgrade
are intended to test fleet upgrades with online migrations as proposed in #6376.
To run the tests, you need to specify the from and to versions. For example
$ FLEET_VERSION_A=v4.16.0 FLEET_VERSION_B=v4.18.0 go test ./test/upgrade
Ensure that Docker is installed with Compose V2. To check if you have the correct version, run the following command
$ docker compose version
Docker Compose version v2.6.0