这是indexloc提供的服务,不要输入任何密码
Skip to content

AV-2443: Update cloudstorage and show validation errors in the UI #2795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions cdk/lib/ckan-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,7 @@
ckanContainerEnv['CKAN_CLOUDSTORAGE_ENABLED'] = 'true';
ckanContainerEnv['CKAN_CLOUDSTORAGE_DRIVER'] = pCkanCloudstorageDriver.stringValue;
ckanContainerEnv['CKAN_CLOUDSTORAGE_CONTAINER_NAME'] = pCkanCloudstorageContainerName.stringValue;
ckanContainerEnv['CKAN_CLOUDSTORAGE_USE_SECURE_URLS'] = pCkanCloudstorageUseSecureUrls.stringValue;
ckanContainerEnv['CKAN_CLOUDSTORAGE_AWS_USE_BOTO3_SESSIONS'] = '1';
ckanContainerEnv['CKAN_CLOUDSTORAGE_USE_SECURE_URLS'] = 'true'
ckanContainerEnv['CKAN_CLOUDSTORAGE_DRIVER_OPTIONS'] = '';

ckanTaskPolicyAllowCloudstorage = new iam.PolicyStatement({
Expand All @@ -393,8 +392,7 @@
ckanContainerEnv['CKAN_CLOUDSTORAGE_ENABLED'] = 'false';
ckanContainerEnv['CKAN_CLOUDSTORAGE_DRIVER'] = '';
ckanContainerEnv['CKAN_CLOUDSTORAGE_CONTAINER_NAME'] = '';
ckanContainerEnv['CKAN_CLOUDSTORAGE_USE_SECURE_URLS'] = '';
ckanContainerEnv['CKAN_CLOUDSTORAGE_AWS_USE_BOTO3_SESSIONS'] = '0';
ckanContainerEnv['CKAN_CLOUDSTORAGE_USE_SECURE_URLS'] = 'false';

Check warning on line 395 in cdk/lib/ckan-stack.ts

View check run for this annotation

Codecov / codecov/patch

cdk/lib/ckan-stack.ts#L395

Added line #L395 was not covered by tests
}

const ckanLogGroup = new logs.LogGroup(this, 'ckanLogGroup', {
Expand Down
1 change: 0 additions & 1 deletion ckan/templates/production.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ ckanext.reminder.email_field = maintainer_email
ckanext.cloudstorage.driver = {{ environ('CKAN_CLOUDSTORAGE_DRIVER') }}
ckanext.cloudstorage.container_name = {{ environ('CKAN_CLOUDSTORAGE_CONTAINER_NAME') }}
ckanext.cloudstorage.use_secure_urls = {{ environ('CKAN_CLOUDSTORAGE_USE_SECURE_URLS') }}
ckanext.cloudstorage.aws_use_boto3_sessions = {{ environ('CKAN_CLOUDSTORAGE_AWS_USE_BOTO3_SESSIONS') }}
ckanext.cloudstorage.driver_options = {{ environ('CKAN_CLOUDSTORAGE_DRIVER_OPTIONS') }}
ckanext.cloudstorage.datapusher.formats = csv xls xlsx tsv application/csv application/vnd.ms-excel application/vnd.openxmlformats-officedocument.spreadsheetml.sheet ods application/vnd.oasis.opendocument.spreadsheet
ckan.datapusher.formats = nonexistingformat
Expand Down
3 changes: 1 addition & 2 deletions docker/.env.ckan.local
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ CKAN_CLOUDSTORAGE_ENABLED=false
CKAN_CLOUDSTORAGE_DRIVER="S3_EU_WEST"
CKAN_CLOUDSTORAGE_DRIVER_OPTIONS=""
CKAN_CLOUDSTORAGE_CONTAINER_NAME=""
CKAN_CLOUDSTORAGE_USE_SECURE_URLS=1
CKAN_CLOUDSTORAGE_AWS_USE_BOTO3_SESSIONS=1
CKAN_CLOUDSTORAGE_USE_SECURE_URLS=true
AWS_ACCESS_KEY_ID=""
AWS_SECRET_ACCESS_KEY=""
ZULIP_API_URL=
Expand Down
Loading