public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Nicolas Frey <n.frey@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH proxmox-acme 0/2] Automate DNS challenge json schema with script
Date: Mon,  3 Nov 2025 09:03:08 +0100	[thread overview]
Message-ID: <20251103080310.60168-1-n.frey@proxmox.com> (raw)

This patch series aims to automate the process of creating the json
schema for DNS challenges provided by acme.sh.

This is done via a simple bash script, which parses out the required
information using the `dns_<provider>_info` variable in each of the
providers' dnsapi scripts. This variable includes the Options, their
descriptions and sometimes the default/optional values. This is then
used to generate the json schema, which is then normalized. If the
contents of the variable are malformed or it is empty, an empty entry
will be generated.

The only attribute this script cannot parse out is the type the
variable has (e.g. `integer`/`string`) so it assigns string to all
fields. This may be fine, as I only saw around 10 (of ~300) occurances
where `integer` would be a better fit.

The second patch uses the script to generate the schema.

Nicolas Frey (2):
  dns: schema: add generate schema script
  dns: generate schema

 src/Makefile                  |    4 +
 src/dns-challenge-schema.json | 2201 +++++++++++++++++++++++++++++----
 src/generate_schema.sh        |  135 ++
 3 files changed, 2083 insertions(+), 257 deletions(-)
 create mode 100755 src/generate_schema.sh

-- 
2.47.3


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


             reply	other threads:[~2025-11-03  8:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-03  8:03 Nicolas Frey [this message]
2025-11-03  8:03 ` [pve-devel] [PATCH proxmox-acme 1/2] dns: schema: add generate schema script Nicolas Frey
2025-11-03  8:03 ` [pve-devel] [PATCH proxmox-acme 2/2] dns: generate schema Nicolas Frey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251103080310.60168-1-n.frey@proxmox.com \
    --to=n.frey@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal