[pmg-devel] applied: [PATCH acme-rs 2/8] add meta fields returned by the directory

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Dec 4 11:56:51 CET 2023


applied the acme-rs patches

Note: proxmox-acme-rs.git has now been merged into proxmox.git.
Also, the `-rs` suffix has been dropped from the crate name.

On Tue, Nov 14, 2023 at 03:14:01PM +0100, Folke Gleumes wrote:
> According to the rfc, the meta field contains additional fields that
> weren't covered by the Meta struct. Of the additional fields, only
> external_account_required will be used in the near future, but others
> were added for completeness and the case that they might be used in the
> future.
> 
> Signed-off-by: Folke Gleumes <f.gleumes at proxmox.com>
> ---
>  src/directory.rs | 25 +++++++++++++++++++++++--
>  1 file changed, 23 insertions(+), 2 deletions(-)
> 
> diff --git a/src/directory.rs b/src/directory.rs
> index 755ea8c..a9d31f2 100644
> --- a/src/directory.rs
> +++ b/src/directory.rs
> @@ -47,6 +47,18 @@ pub struct Meta {
>      /// The terms of service. This is typically in the form of an URL.
>      #[serde(skip_serializing_if = "Option::is_none")]
>      pub terms_of_service: Option<String>,
> +
> +    /// Flag indicating if EAB is required, None is equivalent to false
> +    #[serde(skip_serializing_if = "Option::is_none")]
> +    pub external_account_required: Option<bool>,
> +
> +    /// Website with information about the ACME Server
> +    #[serde(skip_serializing_if = "Option::is_none")]
> +    pub website: Option<String>,
> +
> +    /// List of hostnames used by the CA, intended for the use with caa dns records
> +    #[serde(skip_serializing_if = "Option::is_none")]
> +    pub caa_identities: Option<Vec<String>>,

^ I dropped the `Option<>` there and added `#[serde(default)]` so
deserializing works without it.




More information about the pmg-devel mailing list