5
0
mirror of git://git.proxmox.com/git/proxmox-acme.git synced 2025-03-14 00:58:39 +03:00

131 Commits

Author SHA1 Message Date
Thomas Lamprecht
dc32375fd7 buildsys: upload schema package also to PDM repo
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-02-18 18:19:03 +01:00
Thomas Lamprecht
245c99f2a8 bump version to 1.6.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-02-18 18:18:18 +01:00
Thomas Lamprecht
cdb2cc0016 update acme.sh plugins to current master based on 3.1.0
The `do` and (old) `yandex` providers got removed, but as their
endpoints are not functional since a few years already lets not care
for any backward compat here, they could not have been used anyway
since a while.

Otherwise we get a few new providers and fixes included.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-02-18 18:12:30 +01:00
Thomas Lamprecht
bb6df0b818 bump version to 1.5.1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-25 18:07:40 +02:00
YU Jincheng
5cff218218 eba: support decoding MAC key provided in base64url format
According to RFC 8555:

> The MAC key SHOULD be provided in base64url-encoded form...

However, currently we are only decoding the MAC key as base64.
This patch chooses the correct function to decode the user provided
MAC key. This can fix authentication error when a user uses command
`pvenode acme account register` and paste the EBA MAC key as prompted.

Signed-off-by: YU Jincheng <shana@zju.edu.cn>
Tested-by: Folke Gleumes <f.gleumes@proxmox.com>
 [ TL: fix typo in message, reword subject ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-12 09:51:51 +01:00
Thomas Lamprecht
a75d50b847 bump version to 1.5.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-13 11:35:27 +01:00
Thomas Lamprecht
9eb0ca0c0f update acme.sh plugins to 3.0.7
added:
- artfiles
- bookmyname
- dnsexit
- tencent

The first one added a new false-positive where our heuristic matched
the "_acme-challenge " inside the sed arguments, but that clearly
isn't a function.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-13 11:31:59 +01:00
Folke Gleumes
c0e1079c87 fix #4497: add support for external account bindings
implementation according to RFC 8555, section 7.3.4

Signed-off-by: Folke Gleumes <f.gleumes@proxmox.com>
Reviewed-by: Fabian.Grünbichler <f.gruenbichler@proxmox.com>
Tested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-11-13 11:21:57 +01:00
Thomas Lamprecht
c0e3e6c415 bump version to 1.4.6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-13 09:34:27 +02:00
Thomas Lamprecht
1f4e84f722 update acme.sh plugins to 3.0.6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-13 09:30:41 +02:00
Thomas Lamprecht
1084b024fc bump version to 1.4.5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-07 13:18:27 +02:00
Thomas Lamprecht
d15010d556 d/lintian-overrides: adapt to new bracketed format
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-07 13:18:27 +02:00
Thomas Lamprecht
9aff0dc532 d/control: define compat level via build-depends and raise to 13
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-07 13:18:27 +02:00
Thomas Lamprecht
ecf8f2d923 d/control: document standards conformance with 4.6.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-07 13:18:27 +02:00
Thomas Lamprecht
0cd0eb5b8f buildsys: expand clean target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-07 13:18:27 +02:00
Thomas Lamprecht
d397cfa1d2 buildsys: add convenience target for sbuild
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-07 13:18:27 +02:00
Thomas Lamprecht
2371cac69f buildsys: automatically dervice upload dist
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-07 13:18:27 +02:00
Thomas Lamprecht
b7fe111a7f buildsys: use simple parenthesis for variables
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-07 13:18:27 +02:00
Thomas Lamprecht
619a05a877 d/copyright: update years
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-07 13:18:27 +02:00
Thomas Lamprecht
056149a0f0 bump version to 1.4.4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-02-21 17:28:20 +01:00
Stoiko Ivanov
50ab3be956 tests: add non-word boundary to present functions
noticed that _clearaccountconf_mutable is used in dns_cf.sh, but not
present (it gets masked since we provide _clearaccountconf)

tested with this example.

additionally update missing-functions.expected - _error is not
present in upstream `acme.sh` but used in dns_aws.sh (I expect an
error which is only hit very seldomly)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2023-02-21 17:26:28 +01:00
Stoiko Ivanov
1b871fa818 proxmox-acme: add empty _clearaccountconf_mutable helper
it is used by dns_cf.sh.
reported in our community forum:
https://forum.proxmox.com/threads/.122961/

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2023-02-21 17:26:28 +01:00
Fabian Grünbichler
caef9d47f3 build: add missing build-dependencies
there's a build cycle between proxmox-acme and pve-common, but proxmox-acme
only uses it for `make check`, so it's possible to break the cycle by using the
nocheck build profile when bootstrapping.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-10 13:07:07 +01:00
Thomas Lamprecht
963319d031 schema: update acme-dns plugin parameter names
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-06 11:11:11 +01:00
Thomas Lamprecht
d174663c1d bump version to 1.4.3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-12-07 13:27:48 +01:00
Thomas Lamprecht
9fe5356aed proxmox-acme: add _isRSA and _isEcc helpers
the _isRSA one is used by the new yc plugin, but doesn't hurt much to
already include the very similar Ecc one too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-12-07 13:27:48 +01:00
Thomas Lamprecht
da4c6a7fc1 update acme.sh dns api to v3.0.5 and update schema for new/removed plugins
added:
  - bunny
  - cpanel
  - curanet
  - dnshome
  - dnsservices
  - fornex
  - geoscaling
  - la
  - mythic_beasts
  - rage4
  - selfhost
  - udr
  - vercel
  - yc

removed:
 - cx (acme.sh commit 29e23ac9)
 - gdnsdk (acme.sh commit 9b27298d)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-12-07 13:27:48 +01:00
Thomas Lamprecht
a02aae50d1 tests: make missing-plugin also output makefile proposals
as I'm lazy and this is easy enough..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-12-07 11:43:44 +01:00
Thomas Lamprecht
28e3b59fff tests: make missing-plugin check proposal in JSON format
and improve some wording/spacing for better visibillity

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-12-07 11:35:22 +01:00
Thomas Lamprecht
831d879ba5 bump version to 1.4.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-26 10:53:09 +02:00
Thomas Lamprecht
da5faaaca3 tests: run missing-function test on build
as we only use a heuristic we maintain a known good expected false
positive list, update that if new ones get added but be sure that no
new function was included!

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-26 10:47:34 +02:00
Thomas Lamprecht
cdeee69003 check-missing-functions: avoid some more false-positives with negative-lookbehing
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-26 10:39:19 +02:00
Thomas Lamprecht
9ba73e66c0 move check-missing-function script to tests
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-26 10:38:41 +02:00
Stoiko Ivanov
39a1c95666 add shellscript to find needed functions not provided by proxmox-acme
based on the heuristic I used a while ago. Adapted to catch the
functions missed the last time.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-04-26 10:20:56 +02:00
Stoiko Ivanov
0f730fda49 plugin-caller: add _readdomainconf stub
it's used by the dns_hetzner (and dns_nsd) plugins.

reported in our community-forum (and tested there as well):
https://forum.proxmox.com/threads/.105879/

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-04-26 10:20:56 +02:00
Thomas Lamprecht
5d66271dcf bump version to 1.4.1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-11 16:38:55 +01:00
Nils Sandmann
8465dba587 Add TOTP authentification for ACME DNS INWX
Signed-off-by: Nils Sandmann <git@softcat.org>
2022-01-11 16:34:57 +01:00
Jens Meißner
b788070030 Add DNS challenge schema for knot.
Signed-off-by: Jens Meißner <meissner@b1-systems.de>
2021-11-18 11:21:45 +01:00
Thomas Lamprecht
4ed79f7b4c Revert "dns-challenge: add 'use-proxy' property"
a bit to weird of a place to configure this especially as enabling it
does not guarantee any proxying if there's none..

This reverts commit e1088f616ffc73a96ee3433f0ea07639ef7513e7.
2021-11-11 10:17:14 +01:00
Stoiko Ivanov
e1088f616f dns-challenge: add 'use-proxy' property
this patch adds an optional 'use-proxy' property to the dns
challenges.

If set to 1 the caller is expected to add the proxy url in the plugin
config, which is then set as 'http_proxy' and 'https_proxy'
environment variable by the plugin caller (and then used by curl)

Tested with the pdns plugin, direct traffic to the pdns server being
dropped, and a configured squid proxy

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-11-09 18:03:56 +01:00
Stoiko Ivanov
621046b21d add support for proxies
by setting the proxy for the LWP::UserAgent

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-11-09 18:03:56 +01:00
Thomas Lamprecht
bec914932c d/control: acme-perl: downgrade dependency to plugins to recommends
we have some places where we just do not need the plugins and the
perl library has no hard dependency on the plugin stuff, http
challenge and acme protocol implementation are independent of those

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-09 18:03:40 +01:00
Thomas Lamprecht
e2483043c6 dns: cope with plugin json index not being available
not nice to die plainly on a using this module (which can come in
indirectly/transitively), so lets better cope with that.

Nice side-effect, if nothing uses it, it won't get loaded, so less
IO and memory in that case.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-09 18:03:40 +01:00
Thomas Lamprecht
7b8275a30d buildsys: do not pass arch to upload
variable wasn't set and this is an `arch: all` package anyway..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-08 11:18:26 +02:00
Thomas Lamprecht
300242d78b bump version to 1.4.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-08 11:17:02 +02:00
Thomas Lamprecht
cd4a1aeb00 update acme.sh plugins to 3.0.1 and include new plugins in schema
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-08 11:15:34 +02:00
Fabian Grünbichler
2307c38b59 support downloading alternate chains
the current default chains end with an expired root certificate for
maximum compatibility with old Android versions. this breaks some other
older clients (openssl, gnutls) which don't expect chains to contain any
expired certificates, even if they are 'above' the trust anchor.

by setting $root, it is possible to specify which root the ACME provided
certificate chain should end with, downloading alternate chains as
necessary.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Tested-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-10-08 10:55:49 +02:00
Jens Meißner
b5d46dc4a6 Add DNS challenge schema for nsupdate.
Signed-off-by: Jens Meißner <meissner@b1-systems.de>
2021-09-15 17:04:07 +02:00
Fabian Grünbichler
66f04388e4 bump version to 1.3.0
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-08-11 12:26:39 +02:00
Stoiko Ivanov
51b0ba75c1 plugin-caller: pull in changes from upstream 3.0.0
Commits ae3dda0f8fc3071495cd1e8dff0fe4a339febb1c and
d70b759cb9c5b413cce92e65e841a54a65813962

implementing retrying get and post requests seem worth pulling in.

From a quick look through the diff the remaining changes (between
2.9.0 and 3.0.0) should not be relevant for us

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-08-11 11:52:53 +02:00