certs setup --json should include the DNS records to create, not just the check response

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

メンテナーはふだん 1 日以内に返信

@Shivansh-S17 がすでに取り組んでいます。

2026年11月9日 から。

  • #5415 @Shivansh-S17 による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go
領域
cli

調査の方向性

Start by reading internal/command/certificates/root.go, especially printDNSOptions, and trace how fly certs setup --json serializes the CheckCertificate response. Follow the setup logic for apex domains, wildcard and custom certificates, and ACME challenges. Done when human output uses the shared typed options and JSON adds dns_options with only the applicable records, while preserving existing response fields.

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

説明

Follow-up to #4724 / #4775.

fly certs setup --json now prints JSON, but it prints the raw CheckCertificate response, which is the same thing fly certs check --json prints. The setup-specific decisions live only in printDNSOptions (internal/command/certificates/root.go) and never reach the JSON:

  • CNAME is hidden for apex domains (a CNAME at the apex is invalid DNS), but dns_requirements.cname is still populated in the JSON, so a script can create a broken record.
  • Whether the ACME challenge CNAME and the ownership TXT record apply (wildcard / custom cert / ACME logic).

So a script still has to reimplement printDNSOptions to know which records to create.

Proposal: compute the options once into a typed struct (records to create, each with type/name/value and why), render the human text from it, and add it to the JSON as a new field (e.g. dns_options) alongside the existing response fields so current consumers don't break.

主要言語
Go
スター
1.7k
フォーク
320
平均マージ
2日 22時間
マージ済み PR(30日)
61

環境構築

はじめの一歩

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

superfly/flyctl のほかの issue

superfly/flyctl の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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