Skip to content

CrowdSec: report email link points to the wrong node and page #8252

Open

Description

@stephdl

Steps to reproduce

  • Install CrowdSec on a worker node (not the leader) and configure email notifications
  • Wait for a ban report email
  • Click "View Active Decisions"

Expected behavior

The link opens the cluster admin on the leader node, on the page that lists the banned IPs.

Actual behavior

The link points to the node running CrowdSec, which has no cluster admin when it is a worker. It also opens ?page=unban, a page removed by the UI redesign.

Components

CrowdSec 1.4.1

See also

https://community.nethserver.org/t/ns8-crowdsec-url-in-admin-report-e-mail-does-not-work/29156


Thanks to @jmartens for the report.

Activity

  1. added theissue type on Oct 21, 2026
  2. added this to the NethServer 8.11 milestone on Oct 21, 2026
  3. moved this from ToDo to In Progress in NethServeron Oct 21, 2026
  4. self-assigned this
    on Oct 21, 2026
  5. stephdl commented on Nov 3, 2026

    @stephdl
    Author

    QA for ghcr.io/nethserver/crowdsec:1.4.3-dev.1

    This release fixes the "View Active Decisions" link in the CrowdSec report email (#229). The link used the local node FQDN and the removed unban page. It now uses the leader hostname and the blocklists page. The rest of the release is UI dependency updates and translations.

    Setup

    Configure a cluster smarthost and set at least one receiver email in CrowdSec Settings. Update an existing instance:

    update-module crowdsec1 ghcr.io/nethserver/crowdsec:1.4.3-dev.1
    

    Test both a fresh install and an update from 1.4.2.

    Test 1: CrowdSec on the leader node

    1. Send a test notification: podman exec crowdsec1 cscli notifications test email_default
    2. Check the email. The subject and title show the local node FQDN.
    3. The "View Active Decisions" link is https://<leader FQDN>/cluster-admin/#/apps/crowdsec1?page=blocklists.
    4. Click it. The Blocklists page opens on the "Local blocklist" tab.

    Test 2: CrowdSec on a worker node

    1. Install CrowdSec on a worker node and send a test notification as above.
    2. The subject and title show the worker FQDN. This tells which node banned the IP.
    3. The link points to the leader, not to the worker. The hostname comes from the leader VPN endpoint (node/<leader_id>/vpn), so it can differ from the leader FQDN. Please report what you get and whether it opens cluster-admin.
    4. Click it. The Blocklists page opens.

    Test 3: real ban email

    Trigger a real ban, for example with a brute force on a protected service. Check that the report email arrives and that the link works.

    Regression

    Open every CrowdSec page (Status, Settings, Detections, Collections, Blocklists, Threat Shield, About). Check that they load without console errors and that icons render. Axios, Carbon icons, sass and core-js were updated.

    Known limitation

    The link is computed at service start. After a leader switch, it points to the old leader until the module restarts (systemctl restart crowdsec1). This is intended and documented in the README (#240).

  6. moved this from In Progress to Testing in NethServeron Nov 3, 2026
  7. added
    testingPackages are available from testing repositories
    on Nov 3, 2026
  8. removed their assignment
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingPackages are available from testing repositories

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions