bunkerity / bunkerity/bunkerweb

[BUG] Reports always show "unknown" reason

Open
#3,916 4 comments 0 reactions 1 assignee Claimed by @TheophileDiot View on GitHub
bug core next minor
Dominant language
Python
Stars
10.9k
Forks
643
Avg merge
1d 10h
Merged PRs (30d)
42

Description

### What happened?

When you go to /reports in order to see blocked requests, every requests will be shown with block reason: unknown. And this, since the 1.6.13 version.

Image

### How to reproduce?

Just go to /reports

### Configuration file(s) (yaml or .env)

```YAML
DNS_RESOLVERS=9.9.9.9 149.112.112.112 8.8.8.8 8.8.4.4
HTTP_PORT=80
HTTPS_PORT=443
MULTISITE=yes
UI_HOST=http://127.0.0.1:7000
USE_CROWDSEC=yes
CROWDSEC_API=http://127.0.0.1:8080
CROWDSEC_API_KEY={REDACTED}
USE_CROWDSEC_APPSEC=yes
CROWDSEC_APPSEC_URL=http://127.0.0.1:7422
CROWDSEC_APPSEC_FAILURE_ACTION=passthrough
AUTO_LETS_ENCRYPT_DNS=no
USE_CUSTOM_HTTPS=yes
CUSTOM_HTTPS_CERT=/etc/letsencrypt/live/{REDACTED}/fullchain.pem
CUSTOM_HTTPS_KEY=/etc/letsencrypt/live/cert/privkey.pem
USE_REDIS=yes
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_DATABASE=0
REDIS_SSL=no
REDIS_SSL_VERIFY=no
USE_METRICS=yes
METRICS_MAX_BLOCKED_REQUESTS_REDIS=100000
ROOT_FOLDER=/var/www/bunkerweb
```

### Relevant log output

```shell
No relevant error log to this weird behavior
```

### BunkerWeb version

1.6.14

### What integration are you using?

Linux

### Linux distribution (if applicable)

Debian

### Removed private data

- [x] I have removed all private data from the configuration file and the logs

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.