public inbox for pmg-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [PATCH pmg-api 2/5] config: add consent-text key
Date: Mon,  8 Jun 2026 08:56:20 +0200	[thread overview]
Message-ID: <20260608065653.624545-3-s.ivanov@proxmox.com> (raw)
In-Reply-To: <20260608065653.624545-1-s.ivanov@proxmox.com>

If set this text will be displayed to the user before login.
Limited to 64 kiB of base64 encoded data.

inspired by pve-cluster commit:
54db793 ("add consent-text parameter to datacenter config file")

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
---
 src/PMG/Config.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/PMG/Config.pm b/src/PMG/Config.pm
index a2ddbb3a..2c085614 100644
--- a/src/PMG/Config.pm
+++ b/src/PMG/Config.pm
@@ -155,6 +155,12 @@ EODESC
             pattern => '^\p{PosixPrint}{1,998}$',
             default => 'Proxmox Mail Gateway <postmaster>',
         },
+        'consent-text' => {
+            description => "Consent text that is displayed before logging in.",
+            type => 'string',
+            maxLength => 64*1024,
+            default => '',
+        },
     };
 }
 
@@ -175,6 +181,7 @@ sub options {
         dkim_selector => { optional => 1 },
         'dkim-use-domain' => { optional => 1 },
         'admin-mail-from' => { optional => 1 },
+        'consent-text' => { optional => 1 },
     };
 }
 
-- 
2.47.3





  parent reply	other threads:[~2026-06-08  6:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-08  6:56 [PATCH pmg-api/pmg-docs/pmg-gui 0/5] add optional consent-banner to be shown before login Stoiko Ivanov
2026-06-08  6:56 ` [PATCH pmg-docs 1/5] pmgconfig: add short documentation of the consent banner Stoiko Ivanov
2026-06-08  6:56 ` Stoiko Ivanov [this message]
2026-06-08  6:56 ` [PATCH pmg-api 3/5] pmgproxy: pass consent-text as template variable to index Stoiko Ivanov
2026-06-08  6:56 ` [PATCH pmg-gui 4/5] login: show optional consent-banner before login Stoiko Ivanov
2026-06-08  6:56 ` [PATCH pmg-gui 5/5] system options: add online help link for consent banner Stoiko Ivanov
2026-06-08  7:19 ` [PATCH pmg-api/pmg-docs/pmg-gui 0/5] add optional consent-banner to be shown before login Dominik Csapak
2026-06-08  7:42   ` Stoiko Ivanov
2026-06-08 11:01 ` applied: " Thomas Lamprecht

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=20260608065653.624545-3-s.ivanov@proxmox.com \
    --to=s.ivanov@proxmox.com \
    --cc=pmg-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