[Android Auto] Investigate how we need to handle trusted hosts
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
调研方向
从 MainCarAppService 和链接的 AndroidX HostValidator 文档开始,重点关注当前的 ALLOW_ALL_HOSTS_VALIDATOR 配置以及已注释的 allow-list 替代方案。记录生产环境中应如何处理受信任的主机,并在 issue 中分享调查结果和建议。
由索引模型根据 Issue 内容生成。
描述
@kmadsen commented on Thu May 27 2021
The car library has a HostValidator
Which essentially makes the 1tap app a trusted host with the head unit. You can find where this is in the MainCarAppService. I don't fully understand either, so this ticket is to figure it out and share your findings.
class MainCarAppService : CarAppService() {
override fun createHostValidator(): HostValidator {
return HostValidator.ALLOW_ALL_HOSTS_VALIDATOR
// TODO limit hosts for production
// https://github.com/mapbox/1tap-android/issues/988
// return HostValidator.Builder(this)
// .addAllowedHosts(R.array.android_auto_allow_list)
// .build()
}
override fun onCreateSession(): Session {
return MainCarSession()
}
}
- 主要语言
- Kotlin
- 星标
- 65
- 派生
- 57
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mapbox/mapbox-navigation-android-examples 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 30/100
-
难度 3/5 1-2 天 新手友好度 25/100
mapbox/mapbox-navigation-android-examples#207 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
查看 mapbox/mapbox-navigation-android-examples 的全部 Issue
相似的 Issue
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 68/100
scarif-labs/horus#61 ·
维护者通常 1 天内回复
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 83/100
FossifyOrg/Messages#929 ·
维护者通常 1 天内回复
-
cr:missing-repro cr:platform:android missing-repro platform:android
难度 2/5 1-3 小时 新手友好度 90/100
software-mansion/react-native-screens#4950 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 80/100
software-mansion/enriched-markdown#1033 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100