certs setup --json should include the DNS records to create, not just the check response
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
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.cnameis 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
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
superfly/flyctl のほかの issue
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Loading a YAML app config with a non-string map key panics対応中かも @alexleventer が 3 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
fly pg create --network follow-ups: launch, fork/restore Flycast IPs, consistent normalization対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
fly launch --db mpg fails with "unknown command"対応中かも @miguel-fly が 3 日前に担当しました。 オープンbug launch ux
superfly/flyctl#5387 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
superfly/flyctl の issue をすべて見る
似ている issue
-
model:sonnet runtime:claude security size:S
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
FootprintAI/Containarium#3624 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Judgment-Pack/judgment-pack-runtime#367 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
pulseaiclub/phi#482 ·
メンテナーはふだん 1 日以内に返信
-
bug raised-by:desk
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
medici-finance/assay#6102 ·
メンテナーはふだん 1 日以内に返信