fleet/server
Roberto Dip ea6b59f179
upgrade Go version to 1.21.1 (#13877)
For #13715, this:

- Upgrades the Go version to `1.21.1`, infrastructure changes are
addressed separately at https://github.com/fleetdm/fleet/pull/13878
- Upgrades the linter version, as the current version doesn't work well
after the Go upgrade
- Fixes new linting errors (we now get errors for memory aliasing in
loops! 🎉 )

After this is merged people will need to:

1. Update their Go version. I use `gvm` and I did it like:

```
$ gvm install go1.21.1
$ gvm use go1.21.1 --default
```

2. Update the local version of `golangci-lint`:

```
$ go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.2
```

3. (optional) depending on your setup, you might need to re-install some
packages, for example:

```
# goimports to automatically import libraries
$  go install golang.org/x/tools/cmd/goimports@latest

# gopls for the language server
$ go install golang.org/x/tools/gopls@latest

# etc...
```
2023-09-13 15:59:35 -03:00
..
authz Add /scripts/run and scripts/run/sync API endpoints to run scripts (part 1) (#13417) 2023-08-21 14:47:19 -04:00
bindata Allow users to be readded if they were ever removed (#1945) 2021-09-07 13:33:40 -03:00
config add flags to configure Windows MDM certs using their contents (#13184) 2023-08-08 10:54:50 -03:00
contexts allow clients to report errors back to the server (#13478) 2023-08-24 13:04:27 -03:00
datastore upgrade Go version to 1.21.1 (#13877) 2023-09-13 15:59:35 -03:00
errorstore Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
fleet Add docs for script execution (#13807) 2023-09-12 18:31:04 -04:00
health Separate health checks for MySQL and Redis (#6468) 2022-07-01 08:08:03 -03:00
launcher Ingest pending MDM hosts (#9065) 2022-12-26 15:32:39 -06:00
live_query Bump go to 1.19.1 (#7690) 2022-09-12 20:32:43 -03:00
logging fix fleetctl apply with default configuration (#10305) 2023-03-06 10:44:40 -05:00
mail Feat UI windows automatic enrollment (#12988) 2023-08-08 15:57:55 +01:00
mdm upgrade Go version to 1.21.1 (#13877) 2023-09-13 15:59:35 -03:00
mock Add retries to MDM profile verification (#13811) 2023-09-12 09:59:47 -05:00
policies Refactor webhooks cron to new schedule package (#7840) 2022-09-20 14:26:36 -05:00
ptr Feature 9834: Add published date to vulnerability object (#10434) 2023-03-28 16:11:31 -04:00
pubsub Provide more feedback to the user when there's a Redis connection issue when running live queries (#11947) 2023-06-01 16:11:55 -03:00
service upgrade Go version to 1.21.1 (#13877) 2023-09-13 15:59:35 -03:00
sso lowercase DisplayName attributes when reading SSO response (#12545) 2023-06-28 12:19:13 -03:00
test Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
vulnerabilities upgrade Go version to 1.21.1 (#13877) 2023-09-13 15:59:35 -03:00
webhooks Mask secret query params when logging url error (#12980) 2023-07-26 16:40:58 -05:00
websocket Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
worker store email used for authentication during MDM SSO (#13480) 2023-08-23 18:23:26 -03:00
utils_test.go allow padded strings in mdm/apple/enqueue endpoint (#13502) 2023-08-24 15:17:05 -03:00
utils.go allow padded strings in mdm/apple/enqueue endpoint (#13502) 2023-08-24 15:17:05 -03:00