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 分钟
- 30 天内合并 PR
- 1
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SpecterOps/AzureHound 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
SpecterOps/AzureHound#128 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
SpecterOps/AzureHound#197 ·
-
Improvement: Add a Feature to Allow Users to Specify Custom User Agents可能已有人在做 @ChrisJr404 于 175 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 45/100
SpecterOps/AzureHound#135 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 42/100
SpecterOps/AzureHound#112 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
SpecterOps/AzureHound#91 ·
查看 SpecterOps/AzureHound 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
agent-butler-finding bug
难度 2/5 1-3 小时 新手友好度 78/100
jordansmall/spindrift#6161 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
open-telemetry/opentelemetry-go-compile-instrumentation#1635 ·
维护者通常 2 天内回复
-
C-bug O-community X-blathers-untriaged
难度 1/5 1 小时以内 新手友好度 84/100
cockroachdb/cockroach#176210 · 1 条评论 ·
-
VLAgent `spec.k8sCollector.includePodLabels: false` has no effect可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
VictoriaMetrics/operator#2772 ·
维护者通常 1 天内回复