Skip to content

Commit

Permalink
fix: add missing config to autoregister the appsec pod
Browse files Browse the repository at this point in the history
  • Loading branch information
he2ss committed Sep 25, 2024
1 parent d26c57c commit 95acc68
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
28 changes: 28 additions & 0 deletions charts/crowdsec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@ appsec:
env:
- name: COLLECTIONS
value: "crowdsecurity/appsec-virtual-patching"
# This allows the LAPI pod to register and communicate with the appsec pod
config:
config.yaml.local: |
api:
server:
auto_registration:
enabled: true
token: "${REGISTRATION_TOKEN}"
allowed_ranges:
- "127.0.0.1/32"
- "192.168.0.0/16"
- "10.0.0.0/8"
- "172.16.0.0/12"
```

Or you can also use your own custom configurations and rules for AppSec:
Expand Down Expand Up @@ -121,6 +135,20 @@ appsec:
env:
- name: COLLECTIONS
value: "crowdsecurity/appsec-virtual-patching crowdsecurity/appsec-crs"
# This allows the LAPI pod to register and communicate with the appsec pod
config:
config.yaml.local: |
api:
server:
auto_registration:
enabled: true
token: "${REGISTRATION_TOKEN}"
allowed_ranges:
- "127.0.0.1/32"
- "192.168.0.0/16"
- "10.0.0.0/8"
- "172.16.0.0/12"
```

In the traefik `values.yaml`, you need to add the following configuration:
Expand Down
12 changes: 12 additions & 0 deletions charts/crowdsec/ci/crowdsec-values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
config:
config.yaml.local: |
api:
server:
auto_registration:
enabled: true
token: "${REGISTRATION_TOKEN}"
allowed_ranges:
- "127.0.0.1/32"
- "192.168.0.0/16"
- "10.0.0.0/8"
- "172.16.0.0/12"
agent:
additionalAcquisition:
- source: file
Expand Down

0 comments on commit 95acc68

Please sign in to comment.