# ホスト名が変更された場合、登録済みU2Fが使用できません

**URL:** https://meta.discourse.org/t/cannot-use-registered-u2f-if-hostname-has-changed/161552
**Category:** Feature
**Created:** [2020 年 8 月 20 日午後 5:36 UTC](https://meta.discourse.org/t/cannot-use-registered-u2f-if-hostname-has-changed/161552 "2020-08-20T17:36:38Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [2020 年 8 月 21 日午前 12:32 UTC](https://meta.discourse.org/t/cannot-use-registered-u2f-if-hostname-has-changed/161552/4 "2020-08-21T00:32:09Z")

</div>

これは少し厄介かもしれません。ホスト名はセキュリティキーテーブル内の公開キーに格納されていると思うからです（この件については以前から手が離れており、間違っている可能性もあります）。この問題を UI に引き継ぎ、ボタンを無効にしてメッセージを表示するには、少し工夫が必要です。また、これは登録されているすべてのセキュリティキーのホスト名が誤っている場合のみ表示され、一つでも一致すればユーザーは問題ありません。

関連する話ですが、[2fa security key breaks when migrating to custom domain - #6 by balboah](https://meta.discourse.org/t/2fa-security-key-breaks-when-migrating-to-custom-domain/155528/6) の修正も行う必要があります。ホスト名を変更する際には、既存のセキュリティキーは実質的に無効になるため、それらをすべて無効にするべきだと考えています。そのため、このトピックも自分に割り当てます。

---

_[View the full topic](https://meta.discourse.org/t/cannot-use-registered-u2f-if-hostname-has-changed/161552)._
