public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH proxmox-acme 0/2] Automate DNS challenge json schema with script
@ 2025-11-03  8:03 Nicolas Frey
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolas Frey @ 2025-11-03  8:03 UTC (permalink / raw)
  To: pve-devel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-03  8:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-03  8:03 [pve-devel] [PATCH proxmox-acme 0/2] Automate DNS challenge json schema with script Nicolas Frey
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

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