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

Windows inherited-access test retains unrelated writable parent ACL entries

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

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

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

評価

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

調査の方向性

まず pkg/io/restricted_directory_windows_test.go の directoryWithInheritedAccess と setDirectoryDACL から始め、次に TestValidateRestrictedDirectoryAllowsInheritedReadOnlyAccess と、全ユーザーへの継承された書き込み権限を拒否するテストを調べます。Windows で issue の PowerShell コマンドを実行し、失敗を再現します。親の fixture から無関係な祖先の権限付与が除かれ、子が意図的に設定されたエントリを引き続き継承し、本番環境の厳格な検証と拒否テストがそのまま維持されれば完了です。

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

説明

TestValidateRestrictedDirectoryAllowsInheritedReadOnlyAccess fails deterministically when the Windows temporary directory has an additional inheritable write grant to a principal outside DCP's restricted-directory allowlist.

directoryWithInheritedAccess in pkg/io/restricted_directory_windows_test.go calls setDirectoryDACL(t, parentDir, false, ...). The unprotected DACL continues inheriting unrelated entries from the temporary directory. Its child therefore inherits more than the intended current-user full access and Everyone read/execute entries. ValidateRestrictedDirectory correctly rejects the extra writable principal.

Reproduction: use a Windows temporary directory with such an inheritable group write grant, then run:

go test -count 1 ./pkg/io -run '^TestValidateRestrictedDirectoryAllowsInheritedReadOnlyAccess$'

The failure is directory dacl grants write or control access to disallowed principal .... It also fails in the full Windows test driver. The test and production validation files are unchanged from main commit c31c6173 in this reproduction.

Please isolate the parent fixture's DACL from unrelated ancestor grants while leaving the child to inherit the deliberately configured entries. Keep production permission validation strict and retain the inherited-world-write rejection test.

主要言語
Go
スター
192
フォーク
27
平均マージ
2日 8時間
マージ済み PR(30日)
20

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

microsoft/dcp のほかの issue

microsoft/dcp の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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