[pve-devel] [PATCH cluster 2/3] add consent-text paramter to datacenter config file
Gabriel Goller
g.goller at proxmox.com
Wed Dec 4 10:16:49 CET 2024
On 03.12.2024 18:24, Thomas Lamprecht wrote:
>Am 03.12.24 um 16:29 schrieb Gabriel Goller:
>> The consent-text paramter is the base64-encoded content of the optional
>> consent-banner which can be displayed before login.
>
>This can get quite big, would be good to set some relatively high limit here,
>I think, as our pmxcfs files have a max size and not being able to change other
>options due to this property being close to the pmxcfs file size limit would
>not be ideal.
To keep the textareafield widget generic, I would add the maxLength
parameters to pbs and pve separately.
About the limit itself, the example banner in the bug report [0] has 500
characters and these legal texts can sometimes get quite long – so maybe
a limit of 1000 characters?
[0]: https://bugzilla.proxmox.com/show_bug.cgi?id=5463
>btw. Did we ever talk about placing this into a dedicated, separate file?
>(just out of interest, might be also an option to consider here if we did
>not talked already about it)
Yep, my first version used a separate file – this was discussed here:
https://lore.proxmox.com/pbs-devel/fc22ec23-a300-488d-821f-bea1285881a8@proxmox.com/
>>
>> Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
>> ---
>> src/PVE/DataCenterConfig.pm | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/src/PVE/DataCenterConfig.pm b/src/PVE/DataCenterConfig.pm
>> index abd0bbfd4532..0347bd5ae19f 100644
>> --- a/src/PVE/DataCenterConfig.pm
>> +++ b/src/PVE/DataCenterConfig.pm
>> @@ -449,6 +449,11 @@ my $datacenter_schema = {
>> pattern => "(?:${PVE::JSONSchema::PVE_TAG_RE};)*${PVE::JSONSchema::PVE_TAG_RE}",
>> typetext => "<tag>[;<tag>...]",
>> },
>> + 'consent-text' => {
>> + optional => 1,
>> + type => 'string',
>> + description => "Consent text that is displayed before logging in."
>> + },
>> },
>> };
>>
>
More information about the pve-devel
mailing list