Named value transitive dependency not being extracted when used only in backend credentials header
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 66/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- azure, typescript
調査の方向性
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 の本文から書いたものです。
説明
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
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/apiops-cli のほかの issue
-
type:question
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Azure/apiops-cli#277 ·
メンテナーはふだん 1 日以内に返信
-
stale type:documentation
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
Azure/apiops-cli#250 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Documentation P2 stale
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Azure/apiops-cli#24 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
type:bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
Azure/apiops-cli#317 ·
メンテナーはふだん 1 日以内に返信
-
type:feature
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
Azure/apiops-cli#316 ·
メンテナーはふだん 1 日以内に返信
Azure/apiops-cli の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Small-tailqwq/dsh-deep-whale#187 ·
メンテナーはふだん 1 日以内に返信
-
Tela Marca manda conferir o campo "Razão social", que em Portugal se chama "Denominação social"オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
melgarafael/DeskcommCRM#2503 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
0x80/isolate-package#218 ·
-
bug via-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
pingdotgg/t3code#16859 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信