mapbox / mapbox/mapbox-navigation-android-examples
[Android Auto] Investigate how we need to handle trusted hosts
未关闭
还没有人认领这个 Issue。
jira-sync-complete
- 主要语言
- Kotlin
- 星标
- 65
- 派生
- 56
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 2
描述
@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()
}
}
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 MainCarAppService 和链接的 AndroidX HostValidator 文档开始,重点关注当前的 ALLOW_ALL_HOSTS_VALIDATOR 配置以及已注释的 allow-list 替代方案。记录生产环境中应如何处理受信任的主机,并在 issue 中分享调查结果和建议。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, kotlin
- 领域
- mobile, security
- Issue 类型
- 文档
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100