can't retrieve function apps
評価
調査の方向性
Start in cmd/list-function-apps.go at line 100 and compare the Function App kind returned by the Azure Management API with the current match condition. Verify that list-function-apps retrieves Function Apps whose kind includes functionapp, including functionapp,linux, and check whether the change affects other Azure resource kinds.
索引モデルが issue の本文から書いたものです。
説明
Hi,
We found a bug in the code that doesn't retrieve Function Apps using AzureHound list function-apps.
The problem concern the API management.azure.com that return the kind "functionapp,linux" :
{
"value": [
{
"id": "/subscriptions/[subID]/resourceGroups/production/providers/Microsoft.Web/sites/myfunction",
"name": "myfunction",
"type": "Microsoft.Web/sites",
"kind": "functionapp,linux",
"location": "West Europe",
"tags": {
"hidden-link: /app-insights-resource-id": "/subscriptions/[subID]/resourceGroups/production/providers/microsoft.insights/components/AzureFuncProdAppInsights"
}
},...
]
...
}
However, line 100 in file cmd/list-function-apps.go : if functionApp.Kind == "functionapp" can't match the value returned by Azure Management API.
The possible fix that we found is to search a substring that match "functionapp" :
if strings.Contains(functionApp.Kind,"functionapp"), we tested it and we could retrieve the function apps. But the fix need to import "strings".
The import and processing of data succeded using Docker BloodHound.
There is possibly more Azure Resources that are concerned by this problem. We only tested Azure Function Apps.
We will continue to contribute by testing other resources.
Best Regards,
- 主要言語
- Go
- スター
- 979
- フォーク
- 150
- 平均マージ
- 1時間 45分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SpecterOps/AzureHound のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
SpecterOps/AzureHound#128 · コメント 1 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
SpecterOps/AzureHound#197 ·
-
Improvement: Add a Feature to Allow Users to Specify Custom User Agents対応中かも @ChrisJr404 が 174 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
SpecterOps/AzureHound#135 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
SpecterOps/AzureHound#112 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
SpecterOps/AzureHound#91 ·
SpecterOps/AzureHound の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
superplanehq/superplane#9007 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
yetone/magpie#3905 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信