mmetc
d757cf8e84
CI: publish dev-debian docker image (amd64 only) ( #2252 )
2023-06-01 17:41:33 +02:00
mmetc
3c1b957050
CI: use hub cli to upload release tar ( #2244 )
2023-05-30 10:47:04 +02:00
mmetc
b2d3520519
decouple bouncer dependencies: use go-cs-lib in test code ( #2229 )
2023-05-25 15:37:44 +02:00
mmetc
eddb994c0b
Use go 1.20.4 ( #2209 )
2023-05-17 11:24:37 +02:00
blotus
0ddd42c01f
disable armv6 and 7 for docker debian image temporarily ( #2200 )
2023-05-16 15:24:31 +02:00
mmetc
e1f5ed41df
Implement "cscli config show-yaml" ( #2191 )
2023-05-11 21:01:13 +02:00
mmetc
774a8cfc00
CI: use Go 1.20.3 ( #2163 )
2023-04-12 16:57:52 +02:00
Thibault "bui" Koechlin
7fa469d0b0
timeout of ci jobs ( #2160 )
2023-04-05 15:15:33 +02:00
mmetc
ea6401ce09
CI: Static builds by default; replace bincover with go -cover from 1.20 ( #2150 )
...
* Makefile: build static binaries only
* Replace bincover with go -cover from 1.20
* CI: Fix timing issue between lapi and agent containers
2023-03-30 15:05:09 +02:00
blotus
772d5b5c32
Add experimental support for re2 ( #2138 )
2023-03-28 16:26:47 +02:00
mmetc
68d4bdc1bd
Docker: correct behavior of AGENTS_ALLOWED_OU, BOUNCERS_ALLOWED_OU ( #2140 )
2023-03-24 11:23:04 +01:00
mmetc
86971da274
CI: avoid conflict with pkg/build cache in golangci-lint action ( #2123 )
2023-03-20 10:41:08 +01:00
mmetc
0a114ca7d1
Fix docker tests by increasing timeout (again) and move compose test to plugin ( #2112 )
...
* Fix docker tests by increasing timeout (again) and move compose test to plugin
* Bump workflow timeout to 30 min
* Test only alpine-slim and debian-full flavors
2023-03-09 12:00:29 +01:00
mmetc
e71d146a2d
Fix docker tests by increasing timeout ( #2107 )
2023-03-08 14:51:49 +01:00
mmetc
137e7408fd
Run lint after tests instead of separate workflow ( #2103 )
2023-03-08 14:50:59 +01:00
mmetc
e63a3ab92b
Unit tests: fix authentication to localstack ( #2106 )
2023-03-08 14:41:16 +01:00
mmetc
a19748ae35
Rename directory "tests" to "test" ( #2094 )
...
If you use a ./test/local directory, you need to create it again:
$ make clean bats-build bats-fixture
2023-03-03 15:54:49 +01:00
mmetc
dd76c07293
CI: limit -dev docker image to amd64 to speed up the pipeline ( #2090 )
2023-03-02 11:33:36 +01:00
mmetc
83b6c2cfef
Bump bats-core to 1.9 ( #2083 )
...
- update bats-core to the last release
- renamed 01_base.bats to 01_cscli.bats
- separate stderr for all the run commands in 01_*.bats, fix out/err check where appropriate
- cache go modules for bats build too
- add configuration file for buildx jobs
2023-03-01 10:56:25 +01:00
mmetc
3962daa3bd
CI: Limit parallel docker builds for performance on small machines ( #2082 )
2023-03-01 10:27:08 +01:00
mmetc
301782ae18
Docker tests: use pytest-cs 0.2 ( #2079 )
...
* Use pytest-cs 0.2
* fix pipenv cache key
* Cache docker layers
* Load build images from buildx to docker
* CI: commit Pipfile.lock
* Add full docker tag
* Cache only amd64 docker layers
* Cache layer mode=min
2023-02-28 17:49:32 +01:00
mmetc
ff17a961fc
CI: Cache all built go modules ( #2081 )
2023-02-28 17:25:09 +01:00
mmetc
40b5bcb918
Fix docker tests (network creation) ( #2077 )
2023-02-24 17:15:17 +01:00
mmetc
addf60b3ee
Pin pytest-cs to a stable tag, cache virtualenvs, don't install ipython in CI ( #2075 )
2023-02-24 11:01:45 +01:00
mmetc
8fce946850
CI: functional docker tests ( #2056 )
2023-02-20 14:55:56 +01:00
mmetc
5de500d6da
CI: set GOBIN instead of go install + cp ( #2030 )
2023-02-15 14:27:47 +01:00
mmetc
5ff6bfba9c
CI: build with/require go 1.20 ( #2031 )
2023-02-15 14:27:17 +01:00
mmetc
8f130196f8
CI: bump more actions ( #2028 )
2023-02-02 09:49:52 +01:00
mmetc
628af6e2d0
CI: update github actions and deprecated commands ( #2023 )
2023-02-01 16:55:34 +01:00
he2ss
8024693f4f
add dev docker image (based on master) ( #2024 )
...
* add dev docker image (based on master)
2023-02-01 14:47:38 +01:00
mmetc
1e4441b6ae
docker: replace BUILD_ENV with --target ( #1995 )
2023-01-19 11:02:23 +01:00
mmetc
2142f7bb5c
ci: remove hub dispatch, (msi) take release version from git history ( #1949 )
...
Co-authored-by: Sebastien Blot <sebastien@crowdsec.net>
2023-01-13 14:16:17 +01:00
mmetc
943bb58086
docker: add {VERSION}-slim tag to releases ( #1977 )
2023-01-09 16:44:03 +01:00
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
mmetc
822e441d3a
bump docker actions to avoid deprecation warnings ( #1966 )
2023-01-04 16:55:34 +01:00
mmetc
7d6523db29
ci: authenticate when looking up release information ( #1936 )
2022-12-21 20:34:11 +01:00
mmetc
6b71da6b78
require go 1.19, test with 1.20 too ( #1935 )
2022-12-21 15:40:29 +01:00
mmetc
ff88faf402
updated localstack dependencies, added build cache
2022-12-21 12:20:01 +01:00
blotus
fdda940ac0
Add Kubernetes audit acquisition ( #1767 )
2022-12-06 13:47:29 +01:00
Laurence Jones
311cda31fe
Governance v1 ( #1844 )
...
* v1
* Update wording
* The area stuff needs a little work
* add enhancement to pr's
* Update governance and feature request template
2022-12-05 15:58:19 +00:00
mmetc
104f5d1fe6
lint: error handling cleanup ( #1877 )
2022-11-29 09:16:07 +01:00
mmetc
aa974d26c6
enable CI workflow for stable branches ( #1889 )
2022-11-28 10:52:42 +01:00
mmetc
2067ab0427
CI: print stack traces ( #1886 )
2022-11-25 12:02:38 +01:00
mmetc
5bdd3bbfcb
require at least go 1.18 to build ( #1884 )
2022-11-24 11:29:54 +01:00
mmetc
8b82939d33
fix static release upload ( #1883 )
2022-11-24 10:29:17 +01:00
mmetc
b0889d7751
docker build flavors: slim, with-plugins, with-geoip, full ( #1862 )
2022-11-08 12:28:57 +01:00
mmetc
502a3cf841
ci: skip func tests with legacy postgres driver (keep pgx) ( #1864 )
2022-11-08 12:27:31 +01:00
mmetc
67e464281f
create hub badges, repository dispatch only on crowdsecurity/crowdsec ( #1838 )
2022-10-28 10:11:15 +02:00
mmetc
02d2eab18c
update golangci-lint to 1.50 and fixes ( #1828 )
2022-10-26 15:11:37 +02:00
mmetc
7b4f300eb2
update codecov action (node 12 is deprecated) ( #1830 )
2022-10-24 12:48:25 +02:00