mmetc
0e8a1c681b
docker: pre-download all hub items and data, opt-in hub update/upgrade ( #2933 )
...
* docker: pre-download all hub items and data, opt-in hub update/upgrade
* docker/bars: don't purge anything before pre-downloading hub
* Docker: README update
2024-04-08 14:53:12 +02:00
mmetc
26bcd0912a
docker: distribute geoip db in slim image ( #2920 )
2024-04-03 13:34:35 +02:00
mmetc
6c042f18f0
LAPI: local api unix socket support ( #2770 )
2024-03-14 10:43:02 +01:00
mmetc
e611d01c90
cscli: hide hashed api keys ( #2874 )
...
* cscli: hide hashed api keys
* lint
2024-03-06 14:27:05 +01:00
mmetc
3921c3f480
CI: rename workflows, improve docker build and tests ( #2798 )
2024-01-31 12:07:27 +01:00
mmetc
311dfdee1f
Decouple docker image from package release ( #2791 )
...
- entry point fixes for 1.6.0
- correctly override BUILD_VERSION argument
- manual release workflow
2024-01-29 22:05:26 +01:00
mmetc
532e97e00f
disable docker flavor test ( #2783 )
2024-01-25 09:58:48 +01:00
mmetc
d7116a4a6f
disable docker flavor test ( #2781 )
2024-01-25 00:03:56 +01:00
Laurence Jones
2fb6f209aa
Update docker_start.sh ( #2780 )
...
* Update docker_start.sh
* disable 'set -e' in docker entrypoint
---------
Co-authored-by: marco <marco@crowdsec.net>
2024-01-24 22:51:33 +00:00
mmetc
fd22bb5ec2
CI: update test dependencies ( #2668 )
2023-12-19 15:28:30 +01:00
blotus
bc3a179af9
Add env vars to install/remove appsec-{configs,rules} in docker image ( #2664 )
2023-12-14 16:54:12 +01:00
mmetc
89f704ef18
light pkg/api{client,server} refact ( #2659 )
...
* tests: don't run crowdsec if not necessary
* make listen_uri report the random port number when 0 is requested
* move apiserver.getTLSAuthType() -> csconfig.TLSCfg.GetAuthType()
* move apiserver.isEnrolled() -> apiclient.ApiClient.IsEnrolled()
* extract function apiserver.recoverFromPanic()
* simplify and move APIServer.GetTLSConfig() -> TLSCfg.GetTLSConfig()
* moved TLSCfg type to csconfig/tls.go
* APIServer.InitController(): early return / happy path
* extract function apiserver.newGinLogger()
* lapi tests
* update unit test
* lint (testify)
* lint (whitespace, variable names)
* update docker tests
2023-12-14 14:54:11 +01:00
he2ss
4a4b309790
docker: add new env var to enable console_management ( #2599 )
2023-12-12 10:24:03 +01:00
mmetc
4acb4f8df3
cwhub: context type ( #2631 )
...
* add hub type "context"
* cscli lapi: log.Fatal -> fmt.Errorf; lint
* tests for context.yaml
* load console context from hub
* original & compiled context
* deprecate "cscli lapi context delete"
$ cscli lapi context delete
Command "delete" is deprecated, please manually edit the context file.
* cscli completion: add appsec-rules, appsec-configs, explain, hubtest
2023-12-07 16:20:13 +01:00
mmetc
8bb7da3994
docker tests: force local machine creation ( #2636 )
...
This is required from 1.5.6 to overwrite the local credentials file
2023-12-05 11:52:04 +01:00
mmetc
ffcab0b2bc
Refactor hub management and cscli commands ( #2545 )
2023-11-24 15:57:32 +01:00
mmetc
7ffa0cc787
docker: replace cp -an with rsync to allow bind-mount of files in /etc/crowdsec ( #2611 )
...
fix for https://github.com/crowdsecurity/crowdsec/issues/2480
2023-11-23 11:08:14 +01:00
Laurence Jones
e7ad3d88ae
Clear up some community confusion ( #2543 )
2023-10-16 10:08:41 +01:00
mmetc
0d1c4c6070
update test dependencies ( #2490 )
2023-09-29 10:19:55 +02:00
mmetc
6b9e065764
CI: update pytest-cs - don't remove stopped containers after tests ( #2459 )
2023-09-12 11:10:22 +02:00
mmetc
0f319b31fd
update pytest dependencies ( #2407 )
2023-08-09 00:49:52 +02:00
mmetc
643445b7cf
docker: allow GID with no persistent sqlite db ( #2381 )
2023-07-28 16:01:50 +02:00
mmetc
9dfc66ef04
update pytest dependencies ( #2389 )
2023-07-28 14:39:03 +02:00
mmetc
5cb7013575
Check cscli preconditions with crowdsec-cli/require package ( #2388 )
2023-07-27 17:02:20 +02:00
mmetc
1a6f12c88e
Build target for "make tidy" ( #2378 )
...
The make tidy target runs "go mod tidy" in the root directory and all plugins.
2023-07-26 10:24:37 +02:00
blotus
77d58652a3
add sentinel notification plugin ( #2268 )
2023-07-25 15:07:10 +02:00
mmetc
9af546bd0a
update pytest dependencies ( #2356 )
2023-07-18 09:50:06 +02:00
mmetc
2fa826318e
CI: bump and lock pytest dependencies ( #2340 )
2023-07-06 10:29:08 +02:00
mmetc
4137482f65
docker: always merge .yaml.local in conf_get() ( #2272 )
...
With this change, all queries to the configuration will return the
values from .local if they are set. However, conf_set will only write
to .yaml and never to .local. This means users can potentially override
values that are supposed to be under control of the entrypoint
(credentials and things set from envvars).
2023-06-23 15:49:09 +02:00
mmetc
89c3c18c19
allow running rootless docker tests ( #2281 )
...
Co-authored-by: Thibault "bui" Koechlin <thibault@crowdsec.net>
2023-06-19 12:02:59 +02:00
mmetc
e1400d28f1
support capi_whitelists.yaml ( #2224 )
2023-05-25 10:02:33 +02:00
mmetc
0c5d233563
Minor cleanup and dead code removal ( #2166 )
2023-04-12 16:57:38 +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
mmetc
f39fbf07fa
Docker: don't re-register local agent if not needed ( #2141 )
2023-03-27 15:38:38 +02:00
mmetc
68d4bdc1bd
Docker: correct behavior of AGENTS_ALLOWED_OU, BOUNCERS_ALLOWED_OU ( #2140 )
2023-03-24 11:23:04 +01:00
mmetc
80de87ac34
Report docker systems in version and user agents ( #2136 )
2023-03-22 11:57:29 +01:00
mmetc
9c90144867
Docker readme: update build instructions, recommend acquis.d and config.yaml.local ( #2115 )
2023-03-10 17:30: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
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
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
be18fea136
Propagate taints to top collections ( fix #2064 ) ( #2066 )
2023-02-21 22:12:08 +01:00
mmetc
8fce946850
CI: functional docker tests ( #2056 )
2023-02-20 14:55:56 +01:00
mmetc
3bf95e1a83
docker: skip temporary installation of disabled items ( #2018 )
2023-01-26 17:13:57 +01:00
mmetc
b0f370bae2
fix docker support for legacy vars ( #2021 )
2023-01-26 17:12:40 +01:00
he2ss
ce60c7b056
docker: add cri-logs collection by default to support CRI log format ( #2005 )
2023-01-20 16:02:04 +00:00
mmetc
1e4441b6ae
docker: replace BUILD_ENV with --target ( #1995 )
2023-01-19 11:02:23 +01:00
Ben Scobie
3d8c891699
Fix reference to ghcr.io ( #1999 )
2023-01-17 16:50:27 +00:00
Yip Rui Fung
ecb5562b57
Fix docker_start.sh not properly handling env vars ( #1993 )
...
For example, the COLLECTIONS environment variable is supposed to do a space separated list.
But with the unquoted call to cscli_if_clean without quotes on the $COLLECTIONS environment variable, only the first entry is passed to it.
As a result, only the first entry is installed.
Would likely affect all call sites to cscli_if_clean
2023-01-14 19:56:27 +01:00
mmetc
d986ae0ee5
fix yq behavior with bind-mount config.yaml ( #1968 )
...
Co-authored-by: Thibault "bui" Koechlin <thibault@crowdsec.net>
2023-01-09 21:47:25 +01:00