crowdsec/pkg/apiclient
Cristian Nitescu 7284c0a47a
retry with backoff requests to CAPI (#1957)
* backoff on refresh token error

* fix tls communication with lapi and user/pw auth (#1956)

allow self-signed TLS encryption with user/pw auth

docker:
 - remove defaults for certificate file locations
 - new envvar INSECURE_SKIP_VERIFY
 - register agent before TLS settings (cscli machine add removes them
   from the credentials file)

* separate cscli cobra constructors:  lapi, machines, bouncers, postoverflows (#1945)

* use feature toggling to improve testability with http retry backoff

* Add parse unix to dateparse enricher (#1958)

Add parse unix is we do have a strTime but wasnt parsed using convential golang time

* func tests: redirect stderr to filter extra logs (#1961)

* backoff on refresh token error

* use feature toggling to improve testability with http retry backoff

* refactor feature backoff toggle for tests

Co-authored-by: mmetc <92726601+mmetc@users.noreply.github.com>
Co-authored-by: Laurence Jones <laurence.jones@live.co.uk>
2023-01-09 14:49:21 +01:00
..
alerts_service.go support decisions deletion via scenario + alerts delete via ID (#1798) 2022-10-19 14:37:27 +02:00
alerts_service_test.go enable staticcheck linter; fixes (#1806) 2022-10-14 16:12:21 +02:00
auth.go retry with backoff requests to CAPI (#1957) 2023-01-09 14:49:21 +01:00
auth_service.go golangci-lint v1.48 and fixes for "usestdlibvars" (#1711) 2022-08-16 09:46:10 +02:00
auth_service_test.go retry with backoff requests to CAPI (#1957) 2023-01-09 14:49:21 +01:00
auth_test.go enable staticcheck linter; fixes (#1806) 2022-10-14 16:12:21 +02:00
client.go retry with backoff requests to CAPI (#1957) 2023-01-09 14:49:21 +01:00
client_http.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
client_http_test.go replace log.Fatal with t.Fatal (#1805) 2022-10-13 10:42:46 +02:00
client_test.go replace log.Fatal with t.Fatal (#1805) 2022-10-13 10:42:46 +02:00
config.go local api (#482) 2020-11-30 10:37:17 +01:00
decisions_service.go support decisions deletion via scenario + alerts delete via ID (#1798) 2022-10-19 14:37:27 +02:00
decisions_service_test.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
heartbeat.go golangci-lint v1.48 and fixes for "usestdlibvars" (#1711) 2022-08-16 09:46:10 +02:00
metrics.go golangci-lint v1.48 and fixes for "usestdlibvars" (#1711) 2022-08-16 09:46:10 +02:00
signal.go golangci-lint 1.49 and related fixes (#1736) 2022-09-06 13:55:03 +02:00