added force legacy encryption
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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(
|
||||||
|
Reference in New Issue
Block a user