Windows inherited-access test retains unrelated writable parent ACL entries
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 75/100
調査の方向性
まず 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
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/dcp のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Add application iconオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
cloudflare/cloudflared#1783 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
orchestration.migration.data.tasks.retry values are ignored by the 8.8 data migration job対応中かも @irisfield が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
camunda/camunda-platform-helm#7773 ·
メンテナーはふだん 1 日以内に返信
-
Add missing unit tests for IsAdmissionPolicyName and IsCertManagerResourceName対応中かも @a1h8 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kubernetes-sigs/security-profiles-operator#3644 ·
メンテナーはふだん 1 日以内に返信