Feat: add s3-compatible storage boxes (#11313)

### What problem does this PR solve?

PR for implementing s3 compatible storage units #11240 

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Jonah Hartmann
2025-11-18 02:39:25 +01:00
committed by GitHub
parent 1dba6b5bf9
commit 89e8818dda
6 changed files with 48 additions and 5 deletions

View File

@ -105,9 +105,21 @@ export const DataSourceFormFields = {
{ label: 'R2', value: 'r2' },
{ label: 'Google Cloud Storage', value: 'google_cloud_storage' },
{ label: 'OCI Storage', value: 'oci_storage' },
{ label: 'S3 Compatible', value: 's3_compatible' },
],
required: true,
},
{
label: 'Endpoint URL',
name: 'config.credentials.endpoint_url',
type: FormFieldType.Text,
required: false,
placeholder: 'https://fsn1.your-objectstorage.com',
tooltip: t('setting.S3CompatibleEndpointUrlTip'),
shouldRender: (formValues) => {
return formValues?.config?.bucket_type === 's3_compatible';
},
},
{
label: 'Prefix',
name: 'config.prefix',
@ -483,6 +495,7 @@ export const DataSourceFormDefaultValues = {
credentials: {
aws_access_key_id: '',
aws_secret_access_key: '',
endpoint_url: '',
},
},
},