[Bug] v9.4.3 regression: Detector rejects internal FVM/Luigi requests with HTTP 401, preventing rule compilation
Bug description
SafeLine CE v9.4.3 appears to introduce an internal service authentication regression that prevents the management service from successfully compiling and publishing WAF rules.
The detector rejects internal requests from FVM and Luigi with HTTP 401 Unauthorized, reporting that detector management authentication is enabled but no management token is configured.
The issue occurs with the official v9.4.3 Docker Compose deployment.
The same deployment works correctly with v9.4.2.
The problem has been reproduced using both a fresh installation of v9.4.3 and an in-place upgrade from a functioning v9.4.2 installation.
Environment
| Component | Configuration |
|---|---|
| SafeLine edition | Community Edition |
| Affected version | v9.4.3 |
| Last verified working version | v9.4.2 |
| Deployment | Docker Compose |
| Host OS | Ubuntu Server 24.04 LTS |
| Architecture | x86_64 |
| Virtualization | KVM, host CPU passthrough |
| CPU | 2 vCPU |
| RAM | 4 GB |
| Storage | 60 GB |
| PostgreSQL image | chaitin/safeline-postgres:15.2 |
| SafeLine images | Official chaitin/safeline-*-g:9.4.3 |
All seven SafeLine containers start successfully. The management, detector, and PostgreSQL containers report healthy status.
No custom detector authentication settings were added to the official Compose configuration.
The official compose.yaml files for tags v9.4.2 and v9.4.3 are identical, and were used for the tests below. This suggests the regression originates in the container images or their initialization behavior rather than changes to the Compose configuration.
Steps to reproduce (if available)
Test A: Fresh v9.4.3 installation
Deploy SafeLine CE v9.4.3 using the official Docker Compose configuration.
Initialize the management console.
Configure a protected HTTPS application with a valid certificate and an HTTP upstream.
Attempt to save the application configuration.
Actual result:
The management interface displays:
rules compile error, please check your paramsNo individual configuration field is highlighted.
Management logs show:
FVM AppendFSL Close Error
error="rpc error: code = Unknown desc = push fsl failed: Push FSL response(401 unauthorized\n)"
compile and push fsl error
error="rpc error: code = Unknown desc = push fsl failed: Push FSL response(401 unauthorized\n)"
Test B: Fresh v9.4.2 installation
Remove the v9.4.3 containers and initialize a clean deployment using v9.4.2 images and the corresponding tagged Compose configuration.
Configure the same HTTPS application and upstream.
Save the application.
Actual result:
Application saves successfully.
HTTPS termination works.
Reverse proxy successfully forwards requests to the upstream application.
Direct HTTPS testing succeeds.
Test C: Upgrade v9.4.2 → v9.4.3
Take a snapshot of the working v9.4.2 installation.
Upgrade all SafeLine application images to v9.4.3.
Preserve the existing application configuration and PostgreSQL data.
Start the upgraded containers.
Inspect detector logs and attempt to update WAF configuration.
Actual result:
The original HTTP 401 failures return, including rejections of FVM requests to /update/policy.
This reproduces the failure even when upgrading from a correctly initialized, functioning v9.4.2 installation.
Relevant logs
safeline-detector
At startup:
WARN DETECTOR_MGMT_AUTH=on but DETECTOR_MGMT_TOKEN is empty;
non-loopback requests will be rejected
WARN DETECTOR_UPDATE_VERIFY=on without a valid public key;
/update/library will be rejected
During normal operation:
WARN reject detector management request without valid token
path=/stat
module=mgmtproxy
source=/work/mgmt_proxy.go:163
WARN reject detector management request without valid token
path=/update/policy
module=mgmtproxy
source=/work/mgmt_proxy.go:163
The rejected requests originate from the FVM and Luigi containers on the internal Docker network.
safeline-fvm
ERROR get stat error
ERROR AppendFSL: push fsl failed:
Push FSL response(401 unauthorized\n)
ERROR AppendFSL: update failed:
update framework failed
safeline-mgt
ERROR FVM AppendFSL Close Error
error="rpc error: code = Unknown desc = push fsl failed: Push FSL response(401 unauthorized\n)"
ERROR compile and push fsl error
error="rpc error: code = Unknown desc = push fsl failed: Push FSL response(401 unauthorized\n)"
ERROR genrate fsl failed
error="rules compile error, please check your params"
safeline-luigi
Repeated failures were also observed:
request qps failed
error="http status error: 401 Unauthorized"Investigation performed
The following checks were completed:
1. Container versions
All SafeLine application containers were running matching v9.4.3 images. No mixed-version deployment was present.
2. Docker networking
Management, detector, FVM, and Luigi were connected to the same Docker network.
Container-to-container communication was functional.
3. Management API connectivity
The internal management health endpoint was reachable from Tengine and returned HTTP 200.
4. Management/Tengine authentication
The following environment variables were confirmed to contain matching nonempty tokens:
MGT_GRPC_TOKEN
TCD_MGT_TOKENThe management API URL matched the official Compose configuration.
5. Detector authentication
The detector container did not receive any of the following variables:
DETECTOR_MGMT_TOKEN
DETECTOR_UPDATE_VERIFYThe detector startup logs nevertheless indicated that both authentication and update verification were enabled.
6. Detector configuration
The persistent detector.yml contained only the default commented examples:
# bind_addr: x.x.x.x # listen_port: 8000
The detector entrypoint copies its bundled configuration and applies overrides from the persistent YAML file. No detector authentication tokens or signing keys were found in the inspected configuration.
7. Database connectivity
PostgreSQL connectivity was verified as healthy during the reproduced FVM authentication failures.
8. Container restart
Restarting detector, FVM, and Luigi after management initialization did not resolve the authentication failures.
9. Version comparison
A fresh v9.4.2 deployment successfully saved and served the same application configuration.
Upgrading that functioning deployment to v9.4.3 reproduced the detector authentication failures.
Expected behavior
The official SafeLine CE Compose deployment should provision compatible internal authentication settings across the detector, FVM, Luigi, and management components.
The detector should accept authenticated requests from authorized internal services, allowing WAF rules to compile and publish successfully.
Suspected cause
The v9.4.3 release appears to enable or enforce detector management authentication and signed-update verification without supplying the corresponding authentication material to the relevant components through the published deployment configuration.
This is a hypothesis based on the startup warnings, HTTP 401 responses, and successful v9.4.2 comparison.
It has not been established whether the underlying issue is:
Missing authentication configuration in the tagged Compose release.
An incomplete initialization or credential-provisioning mechanism.
A compatibility problem between the v9.4.3 detector and its internal clients.
A regression in the detector management proxy authentication implementation.
Questions for maintainers
Is
DETECTOR_MGMT_TOKENexpected to be configured explicitly in SafeLine CE v9.4.3?If so, how should FVM and Luigi receive and present the corresponding authentication credential?
Is a signing public key required for
DETECTOR_UPDATE_VERIFYin Community Edition, and how should it be provisioned?Are these authentication settings intended to be initialized automatically by the official Compose deployment?
Is there a supported workaround or patched release that restores internal service communication without disabling detector authentication or update verification?
Impact
The management interface remains accessible and containers may report healthy status, but WAF rule compilation and policy delivery fail.
This prevents the affected installation from reliably configuring or enforcing application protection rules.
Due to the security implications, the affected v9.4.3 deployment was not placed into public production service.
Additional information
Reproduction has been confirmed with both clean installation and upgrade paths. Additional sanitized diagnostics can be provided if needed.