Redact smb://, sftp:// and ssh:// paths in the trace scrub

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

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

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

評価

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

調査の方向性

dokimi/repos/host_fingerprint.pyを読み、_PATHを調べてから、既存のパスのサニタイズテストを探してください。smb://、sftp://、ssh://について、単純なパス、スペースを含む引用符付きのパス、大文字のスキームを網羅するケースを追加してください。各スキームはそのまま残し、パスを<path>に置き換えてください。関連するテストを実行し、すべてのケースが成功することを確認してください。

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

説明

#781 redacts file: URLs and UNC paths in error text (_PATH in dokimi/repos/host_fingerprint.py). The trace scrub still lets other URL schemes through.

Probe on the _PATH regex from #781 (its sub with <path>):

  • cp smb://fileserver/share/Jane/secret.txt here is unchanged.
  • sftp://jdoe@host/home/jdoe/key is unchanged.
  • ssh://jdoe@host/home/jdoe/x is unchanged.
  • file:///home/jdoe/x becomes <path>, and so does \\srv\share\x.

The absolute-path branch excludes a / after : (the scheme: before //), and the UNC branch needs // not preceded by :, so the host and path after smb://, sftp:// and ssh:// are not redacted.

Ask: redact smb://, sftp:// and ssh:// paths in the trace scrub the way file:// is redacted (the scheme kept, the path replaced by <path>), with a test per scheme for a plain path, a quoted path with a space, and an uppercase scheme.

Follow-up to #781 (its path scrub handles file: and UNC only).

主要言語
Python
スター
39
フォーク
13
平均マージ
1日 10時間
マージ済み PR(30日)
519

環境構築

はじめの一歩

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

intel/dokimi のほかの issue

intel/dokimi の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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