Wrong scoped literal ipv6 with zone index parsing

オープン 初心者向け
#4,836 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go

調査の方向性

Goコード内で「cannot parse the client address」を出力するクライアントアドレスの解析経路を探し、既存のIPv6解析テストを確認してください。報告されたスコープ付きアドレス(fe80::ac51:8b00:f25b:24%enp2s0)をテストケースとして追加し、関連するテストを実行してください。アドレスが報告されたエラーを出さずに解析できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

kind/bug needs/triage os/linux
What happened?

Hi there,
I've got this issue using Crowsed with apache2 bouncer on a local link.

crowdsec: cannot parse the client address 'fe80::ac51:8b00:f25b:24%enp2s0'

The zone index doesn't seems to be handled correctly.

What did you expect to happen?

No error in log files.

How can we reproduce it (as minimally and precisely as possible)?

Use crowdsec on a local link ipv6 or fake a test with these kind of values.

Anything else we need to know?

No response

Crowdsec version
$ cscli version
version: v1.8.2-debian-pragmatic-amd64-3d369d64
Codename: alphaga
BuildDate: 2026-10-27_14:05:00
GoVersion: 1.27.1
Platform: linux
libre2: C++
User-Agent: crowdsec/v1.8.2-debian-pragmatic-amd64-3d369d64-linux
Constraint_parser: >= 1.0, <= 3.0
Constraint_scenario: >= 1.0, <= 3.0
Constraint_api: v1
Constraint_acquis: >= 1.0, < 2.0
Built-in optional components: cscli_setup, datasource_appsec, datasource_cloudwatch, datasource_docker, datasource_file, datasource_http, datasource_journalctl, datasource_k8s-audit, datasource_kafka, datasource_kinesis, datasource_kubernetes, datasource_loki, datasource_s3, datasource_syslog, datasource_victorialogs, datasource_wineventlog, db_mysql, db_postgres, db_sqlite
OS version

No response

Enabled collections and parsers

No response

Acquisition config

No response

Config show

No response

Prometheus metrics

No response

Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.

No response

主要言語
Go
スター
15.1k
フォーク
726
平均マージ
4日 23時間
マージ済み PR(30日)
27

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

crowdsecurity/crowdsec のほかの issue

crowdsecurity/crowdsec の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。