azure_policy: Nested-array alias handling drops the unwrapped x level, recording y instead of x.y and leaving the policy field undefined.

オープン
#900 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

Start with the linked PR discussion and locate the Azure policy code that handles nested array aliases and the existing regression tests. Trace how accumulated_name is updated for each array level, then add the x[].y[].z case as a regression test. Done when normalization produces properties.x[].y[].properties.z and the policy field is defined.

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

説明

https://github.com/microsoft/regorus/pull/894#discussion_r4458753751

For x[].y[].z → properties.x[].y[].properties.z, this still records y instead of x.y because accumulated_name skips the unwrapped x level. Normalization then leaves y's properties.z nested, so the policy field becomes undefined. Extend the accumulated path at every array level, condition only the set insertion on wrapping, and add this case as a regression test.

主要言語
Rust
スター
375
フォーク
81
平均マージ
1日 11時間
マージ済み PR(30日)
78

環境構築

Codespaces で開く

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

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

microsoft/regorus のほかの issue

microsoft/regorus の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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