Skip to content

feat: redact sensitive values in notification files when exporting a CrowdSec configuration #1551

Closed

Description

@Wikid82

What: the CrowdSec export keeps the notification configuration files, because a profile that names a notification with no file stops CrowdSec from loading its configuration. Those files can contain sensitive values. Redacting the values while keeping the files would make an export safer to share.
Where: ExportConfig / ImportConfig in backend/internal/api/handlers/crowdsec_handler.go; the notification handling added in #1546.
Suggested approach: a structural allowlist of keys per notification plugin, a yaml.Node rewrite that keeps anchors/aliases working, and an import merge that keeps the running system's values for files that already exist. Keep non-secret personal fields as they are. Any "needs attention" message should be inline in the import card, not a banner.
Related: #1539 (decision to keep these files for now), #1546.
Severity: low.

Activity

  1. self-assigned this
    on Oct 10, 2026
  2. Wikid82 commented on Oct 11, 2026

    @Wikid82
    OwnerAuthor

    Related finding from the #1545 manual check: the bundled image ships no CrowdSec notification plugin directory (/usr/local/lib/crowdsec/plugins is absent), so crowdsec -t fails with 'loading plugin: open /usr/local/lib/crowdsec/plugins: no such file or directory' as soon as a profile names any notification, whether or not the notification file exists. Notifications therefore cannot load in this image today; whatever is decided about redacting notification files should also decide whether the image should ship the plugins.

  3. Wikid82 commented on Oct 11, 2026

    @Wikid82
    OwnerAuthor

    Correction while planning: CrowdSec 1.8.1 ships a sentinel notification plugin, not sentry; the plugins are dummy, email, file, http, sentinel, slack and splunk. Implementation is in #1565.

  4. closed this as completedby moving to Done in Charonon Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

backendServer-side codecrowdsecCrowdSec integration

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions