open-vault/command/healthcheck
Anton Averchenkov a4973bc45a
Remove timeout logic from ReadRaw functions and add ReadRawWithContext (#18708)
Removing the timeout logic from raw-response functions and adding documentation comments. The following functions are affected:

- `ReadRaw`
- `ReadRawWithContext` (newly added)
- `ReadRawWithData`
- `ReadRawWithDataWithContext`

The previous logic of using `ctx, _ = c.c.withConfiguredTimeout(ctx)` could cause a potential [context leak](https://pkg.go.dev/context):

> Failing to call the CancelFunc leaks the child and its children until the parent is canceled or the timer fires. The go vet tool checks that CancelFuncs are used on all control-flow paths.

Cancelling the context would have caused more issues since the context would be cancelled before the request body is closed.

Resolves: #18658
2023-01-17 15:41:59 -05:00
..
healthcheck.go Remove timeout logic from ReadRaw functions and add ReadRawWithContext (#18708) 2023-01-17 15:41:59 -05:00
pki.go Various health check improvements + tests (#18096) 2022-11-23 14:42:19 +00:00
pki_allow_if_modified_since.go Various health check improvements + tests (#18096) 2022-11-23 14:42:19 +00:00
pki_audit_visibility.go Various health check improvements + tests (#18096) 2022-11-23 14:42:19 +00:00
pki_ca_validity_period.go Rename PKI health check helpers (#18017) 2022-11-18 13:42:48 -05:00
pki_crl_validity_period.go Rename PKI health check helpers (#18017) 2022-11-18 13:42:48 -05:00
pki_enable_auto_tidy.go Various health check improvements + tests (#18096) 2022-11-23 14:42:19 +00:00
pki_hardware_backed_root.go Rename PKI health check helpers (#18017) 2022-11-18 13:42:48 -05:00
pki_role_allows_glob_wildcards.go Various health check improvements + tests (#18096) 2022-11-23 14:42:19 +00:00
pki_role_allows_localhost.go Various health check improvements + tests (#18096) 2022-11-23 14:42:19 +00:00
pki_role_no_store_false.go Various health check improvements + tests (#18096) 2022-11-23 14:42:19 +00:00
pki_root_issued_leaves.go Various health check improvements + tests (#18096) 2022-11-23 14:42:19 +00:00
pki_tidy_last_run.go Various health check improvements + tests (#18096) 2022-11-23 14:42:19 +00:00
pki_too_many_certs.go Rename PKI health check helpers (#18017) 2022-11-18 13:42:48 -05:00
shared.go Add mount tuning health checks (#17902) 2022-11-22 15:44:34 +00:00
util.go PKI Health Check Command (#17750) 2022-11-16 09:27:56 -05:00