added force legacy encryption
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-09-10 10:48:13 -05:00
parent 873c82b84e
commit 4f4323d7b7
2 changed files with 19 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ Map<String, dynamic> createDefaultSettings(String mountType) {
'S3Config': { 'S3Config': {
'AccessKey': '', 'AccessKey': '',
'Bucket': '', 'Bucket': '',
'ForceLegacyEncryption': false,
'Region': 'any', 'Region': 'any',
'SecretKey': '', 'SecretKey': '',
'URL': '', 'URL': '',
@@ -195,6 +196,8 @@ String? getSettingDescription(String settingPath) {
return "HTTP authentication user"; return "HTTP authentication user";
case 'HostConfig.ApiPassword': case 'HostConfig.ApiPassword':
return "RENTERD_API_PASSWORD"; return "RENTERD_API_PASSWORD";
case 'S3Config.ForceLegacyEncryption':
return "Effectively disables Argon2id KDF";
default: default:
return null; return null;
} }

View File

@@ -697,6 +697,22 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
); );
} }
break; break;
case 'ForceLegacyEncryption':
{
createBooleanSetting(
context,
s3ConfigSettings,
widget.settings[key],
subKey,
subValue,
false,
widget.showAdvanced,
widget,
setState,
description: getSettingDescription('$key.$subKey'),
);
}
break;
case 'Region': case 'Region':
{ {
createStringSetting( createStringSetting(