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

Named value transitive dependency not being extracted when used only in backend credentials header

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

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

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

評価

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

調査の方向性

Start with the apiops extract entry point and trace how it discovers transitive dependencies from backends and named values. Compare that path with the policy reference behavior described in the issue; done means a named value referenced only in a backend credential header is extracted too.

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

説明

type:bug
Command that triggered the bug

apiops extract

Expected behavior

When extracting transitive dependencies from an API a Named Value that is referenced in a Backend credential header should also be extracted.

Example backend:

{
  "id": "redacted",
  "type": "Microsoft.ApiManagement/service/backends",
  "name": "function-backend",
  "properties": {
    "title": null,
    "description": "function app backend",
    "type": "Single",
    "url": "https://function-test.azurewebsites.net/api",
    "protocol": "http",
    "credentials": {
      "query": {},
      "header": {
        "x-functions-key": [
          "{{function-test-key}}"
        ]
      }
    },
    "tls": {
      "validateCertificateChain": false,
      "validateCertificateName": false
    }
  }
}

The Named value function-test-key is not being extracted.

Actual behavior

When running apiops-extract the Backend is being extracted as a transitive dependency, but the Named value function-test-key is not being extracted which is used as header in the backend.

To test this if we add:

<set-variable name="testVar" value="{{ function-test-key }}" />

to the API policy, the Named value will then be automatically extracted as expected.

However it should also extract the Named value even if the only reference is in the Backend credentials.

apiops CLI version

1.0.4

Environment details

Azure devops

CI/CD environment

None

Is this bug blocking you?

None

主要言語
TypeScript
スター
29
フォーク
11
平均マージ
1日 15時間
マージ済み PR(30日)
15

環境構築

Codespaces で開く

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

はじめの一歩

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

Azure/apiops-cli のほかの issue

Azure/apiops-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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