Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

fix(session-flow): redact.py misses bare sk-ant-oat01- tokens and stateless ghs_ tokens with dots

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
shell
領域
security

調査の方向性

plugins/session-flow/skills/audit-sessions/scripts/redact.pyを読み、トークンの照合ルールを特定してください。装飾のない値sk-ant-oat01-と、ドットを含むステートレスなトークンghs_を意図的に埋め込んだテストを追加し、正規ルールを拡張してscripts/sync-shared-copies.shでコピーを再生成してください。修正前に両方のケースが失敗し、修正後に成功すること、さらに修正用のbuffer.test.shのマスキングケースも引き続き成功することを完了条件とします。

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

説明

needs-human

Summary

plugins/session-flow/skills/audit-sessions/scripts/redact.py (canonical; generated copy in plugins/corrections/tools/findings-buffer/lib/redact.py) leaves two token shapes unredacted, found by the GitHub Security & Cost review of #9020:

  • a bare sk-ant-oat01-… value (the OAuth token format the lanes use);
  • a stateless ghs_ installation token containing ., because the rule is (?:ghu|ghs)_[0-9a-zA-Z]{36}.

Fix

Widen the rules in the canonical file (for example ghs_[A-Za-z0-9._-]{36,}, plus an sk-ant-oat01- rule), regenerate the copy with scripts/sync-shared-copies.sh, and add one planted-token test case per shape that fails before the change.

Verification

The new cases fail on the current head and pass after the fix; the corrections buffer.test.sh redaction cases still pass.

Related

Refs #9020

主要言語
Shell
スター
22
フォーク
2
平均マージ
7時間 23分
マージ済み PR(30日)
950

環境構築

はじめの一歩

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

melodic-software/claude-code-plugins のほかの issue

melodic-software/claude-code-plugins の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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