mapbox / mapbox/mapbox-navigation-android-examples

[Android Auto] Investigate how we need to handle trusted hosts

オープン
#27 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

jira-sync-complete
主要言語
Kotlin
スター
65
フォーク
56
平均マージ
1日 4時間
マージ済み PR(30日)
2

説明

@kmadsen commented on [Thu May 27 2021](https://github.com/mapbox/1tap-android/issues/988)

The car library has a [HostValidator](https://developer.android.com/reference/androidx/car/app/validation/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.

``` kotlin
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()
}
}

```

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

MainCarAppService とリンクされている AndroidX HostValidator のドキュメントから始め、現在の ALLOW_ALL_HOSTS_VALIDATOR 設定とコメントアウトされている allow-list の代替案に注目してください。production で信頼できるホストをどのように扱うべきかを文書化し、調査結果と推奨事項を issue で共有してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, kotlin
領域
mobile, security
issue の種類
ドキュメント
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。