# 프라이빗 저장소에서 테마 컴포넌트를 설치할 때 공개 키가 표시되지 않습니다

**URL:** https://meta.discourse.org/t/public-key-not-displayed-on-theme-component-install-from-private-repository/237051
**Category:** Bug
**Created:** [8월 24, 2022, 12:53오후 UTC](https://meta.discourse.org/t/public-key-not-displayed-on-theme-component-install-from-private-repository/237051 "2022-08-24T12:53:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [8월 24, 2022, 12:53오후 UTC](https://meta.discourse.org/t/public-key-not-displayed-on-theme-component-install-from-private-repository/237051/1 "2022-08-24T12:53:07Z")

</div>

비공개 저장소에서 테마 구성 요소를 추가하려고 할 때 생성된 공개 키가 표시되지 않습니다.

> **[2022-08-24\_14-51-24](https://app.screencast.com/0NSmT1Wuicuyk)**
>
> World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.

네트워크 탭에서 키를 가져와서 GitHub에 배포 키를 생성하면 정상적으로 작동하므로, 표시 문제만 있는 것으로 보입니다.

참고로 왜 프라이빗 키도 클라이언트로 전송하는 건가요? 🤔 😱

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [8월 24, 2022, 11:12오후 UTC](https://meta.discourse.org/t/public-key-not-displayed-on-theme-component-install-from-private-repository/237051/2 "2022-08-24T23:12:34Z")

</div>

> [@RGJ](#):
>
> 참고로, 왜 프라이빗 키를 클라이언트로도 보내고 있나요?

확실히 버그인 것 같습니다.我们会尽快 해결하겠습니다.

최근 @nbianca가 꽤 중요한 변경 사항을 적용했는데, 리포지토리가 준비가 될 때까지 “스테이지” 상태로 두는 기능이 없었습니다. 이로 인해 한 사용자는 해당 UX가 열려 있는 상태에서 대기해야 했고, 다른 사용자가 리포지토리를 설정하는 동안에도 그 상태가 유지되었습니다.

이제 컴포넌트나 테마를 “스테이지” 상태로 두었다가, 원하는 시간에 맞춰 키를 처리할 수 있습니다.

여기서 일어나는 일부 네트워크 트래픽은 이전 구현에서 남은 잔재인 것 같습니다.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [8월 25, 2022, 8:29오전 UTC](https://meta.discourse.org/t/public-key-not-displayed-on-theme-component-install-from-private-repository/237051/4 "2022-08-25T08:29:44Z")

</div>

@nbianca 이거 한번 봐줄 수 있어?

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [8월 25, 2022, 9:30오후 UTC](https://meta.discourse.org/t/public-key-not-displayed-on-theme-component-install-from-private-repository/237051/6 "2022-08-25T21:30:53Z")

</div>

여기서 문제는 해당 저장소 URL을 검사하는 정규식이 너무 엄격해서 끝부분에 `.git`이 없는 경우를 허용하지 않았습니다. 이 PR에서 수정했습니다:

> <https://github.com/discourse/discourse/pull/18092>
>
> When installing private themes and theme components, the public key does
> not sh…ow until the administrator types a valid Git repo URL. The regular
> expression that checked the URL was too strict and it required the URL
> to end with ".git".

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [8월 25, 2022, 10:06오후 UTC](https://meta.discourse.org/t/public-key-not-displayed-on-theme-component-install-from-private-repository/237051/8 "2022-08-25T22:06:16Z")

</div>

네, 그렇게 하면 문제가 해결되는 것 같습니다. 감사합니다!

_레포지토리 URL이 정규식에 맞지 않더라도 여전히 (반복적으로) 키페어를 생성하여 전송하는 부분이 다소 이상해 보이지만, 2022년 시점에서 엔트로피 기아(entropy starvation) 공격은 더 이상 현실적인 위협이 아니며 관리자 전용 요청이므로 실질적인 보안 문제는 없다고 생각합니다._

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [9월 3, 2022, 5:00오전 UTC](https://meta.discourse.org/t/public-key-not-displayed-on-theme-component-install-from-private-repository/237051/11 "2022-09-03T05:00:41Z")

</div>

이 주제는 36시간 후 자동으로 닫혔습니다. 더 이상 답변을 남길 수 없습니다.
