discourse/app/models
Martin Brennan 0568d36133
FIX: Use dualstack S3 endpoint for direct uploads (#29611)
When we added direct S3 uploads to Discourse, which use
presigned URLs, we never took into account the dualstack
endpoints for IPv6 on S3.

This commit fixes the issue by using the dualstack endpoints
for presigned URLs and requests, which are used in the
get-presigned-put and batch-presign-urls endpoints used when
directly uploading to S3.

It also makes regular S3 requests for `put` and so on use
dualstack URLs. It doesn't seem like there is a downside to
doing this, but a bunch of specs needed to be updated to reflect this.
2024-11-07 11:06:39 +10:00
..
concerns FEATURE: Revive legacy pageview reports (#29308) 2024-10-22 10:06:22 +10:00
about.rb FEATURE: Enable the new /about page for everyone (#29390) 2024-10-29 18:40:11 +03:00
admin_dashboard_data.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
admin_dashboard_general_data.rb
admin_dashboard_index_data.rb
admin_notice.rb DEV: Database backed admin notices (#26192) 2024-05-23 09:29:08 +08:00
allowed_pm_user.rb
anonymous_user.rb
api_key_scope.rb DEV: Add API scopes for post revisions (#26183) 2024-03-14 15:24:54 -06:00
api_key.rb
application_request.rb FEATURE: Add estimated number of global and EU visitors to the about page (#28382) 2024-08-21 00:03:42 +03:00
associated_group.rb
auto_track_duration_site_setting.rb
backup_draft_post.rb
backup_draft_topic.rb
backup_file.rb
backup_location_site_setting.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
backup_metadata.rb
badge_grouping.rb
badge_type.rb
badge.rb DEV: Drop deprecated Badge#image column (#25536) 2024-02-02 14:09:55 +08:00
base_font_setting.rb
bookmark.rb Dev fix some types (#29547) 2024-11-01 19:19:25 +02:00
category_and_topic_lists.rb
category_custom_field.rb
category_featured_topic.rb
category_form_template.rb
category_group.rb
category_list.rb FEATURE: Conditionally force optimized category style (#29473) 2024-10-30 16:46:56 +02:00
category_moderation_group.rb FEATURE: Support designating multiple groups as mods on category (#28655) 2024-09-04 04:38:46 +03:00
category_page_style.rb FEATURE: Introduce an optimized style for category page (#29239) 2024-10-24 13:46:42 +03:00
category_required_tag_group.rb
category_search_data.rb
category_setting.rb
category_tag_group.rb
category_tag_stat.rb
category_tag.rb
category_user.rb
category.rb DEV: Bump rubocop_discourse (#29608) 2024-11-06 06:27:49 +08:00
child_theme.rb
color_scheme_color.rb
color_scheme_setting.rb
color_scheme.rb UX: Update selected colour var (#25500) 2024-01-31 09:32:38 +01:00
custom_emoji.rb FEATURE: Add creator and logging for CustomEmoji (#28004) 2024-07-22 14:44:49 +08:00
developer.rb
digest_email_site_setting.rb
directory_column.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
directory_item.rb FIX: Remove anonymous users from users directory (#28892) 2024-09-13 15:12:57 +03:00
discourse_connect.rb FIX: invalid user locale when accepting group membership 2024-06-27 19:22:55 +02:00
discourse_version_check.rb
dismissed_topic_user.rb
do_not_disturb_timing.rb
draft_sequence.rb FIX: Destroy Drafts when increasing sequences (#27739) 2024-07-10 10:43:11 +03:00
draft.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
email_change_request.rb
email_level_site_setting.rb
email_log.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
email_style.rb
email_token.rb DEV: Improve code comment about when ignored columns can be removed (#26894) 2024-05-07 11:06:31 +08:00
embeddable_host_tag.rb FEATURE: Extend embeddable hosts with Individual tags and author assignments (#26868) 2024-05-16 15:47:01 -04:00
embeddable_host.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
embedding.rb
emoji_set_site_setting.rb
emoji.rb FEATURE - Add username column to custom emoji table (#29522) 2024-11-01 10:32:59 -05:00
external_upload_stub.rb DEV: Improve external upload debugging (#28627) 2024-08-30 10:25:04 +10:00
flag.rb FIX: use a custom prefix for custom flags (#28839) 2024-09-11 15:30:20 +10:00
form_template.rb FIX: Form template limit validation (#28791) 2024-09-10 08:11:44 -07:00
given_daily_like.rb
global_setting.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
group_archived_message.rb
group_associated_group.rb
group_category_notification_default.rb
group_custom_field.rb
group_history.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
group_mention.rb
group_request.rb
group_tag_notification_default.rb FIX: Error when moving the group default notification state (#28910) 2024-09-13 16:01:20 -03:00
group_user.rb DEV: Make more group-based settings client: false (#25585) 2024-02-08 09:43:34 +10:00
group.rb FEATURE: Support designating multiple groups as mods on category (#28655) 2024-09-04 04:38:46 +03:00
ignored_user.rb
imap_sync_log.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
incoming_domain.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
incoming_email.rb DEV: add topic_id index to incoming_emails table (#26004) 2024-03-04 13:50:01 +10:00
incoming_link.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
incoming_links_report.rb FIX: Respect date range in top traffic sources report (#25599) 2024-02-08 11:17:59 -05:00
incoming_referer.rb
invite_redeemer.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
invite.rb DEV: Improve code comment about when ignored columns can be removed (#26894) 2024-05-07 11:06:31 +08:00
invited_group.rb
invited_user.rb
javascript_cache.rb
like_notification_frequency_site_setting.rb
linked_topic.rb
locale_site_setting.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
mailing_list_mode_site_setting.rb
muted_user.rb
navigation_menu_site_setting.rb
new_topic_duration_site_setting.rb
notification_level_when_replying_site_setting.rb
notification.rb DEV: Drop old notification id columns (#28550) 2024-10-15 11:58:57 +03:00
oauth2_user_info.rb
onceoff_log.rb
optimized_image.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
permalink.rb FIX: Store special characters in permalink URL as encoded characters 2024-06-03 13:20:24 +02:00
plugin_store_row.rb
plugin_store.rb
post_action_type.rb FIX: flaky flags system spec (#29039) 2024-10-08 08:38:42 +11:00
post_action.rb FIX: serialize Flags instead of PostActionType (#28362) 2024-08-14 12:13:46 +10:00
post_analyzer.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
post_custom_field.rb DEV: Move array type custom fields to JSON type in automation (#26939) 2024-05-10 18:47:12 +03:00
post_detail.rb
post_hotlinked_media.rb
post_mover.rb FEATURE: Add option to immediately delete stub topics upon merge (#28228) 2024-08-07 10:05:40 -03:00
post_reply_key.rb
post_reply.rb
post_revision.rb DEV: Enable Rails 7.1 defaults 2024-08-12 10:41:13 +02:00
post_search_data.rb
post_stat.rb
post_stripper.rb
post_timing.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
post.rb DEV: Bump rubocop_discourse (#29608) 2024-11-06 06:27:49 +08:00
previous_replies_site_setting.rb
private_message_topic_tracking_state.rb PERF: avoid publishing user actions to the user who did the action (#26225) 2024-03-18 18:05:46 +01:00
problem_check_tracker.rb FIX: Avoid duplicate problem admin notices (#29329) 2024-10-22 11:17:27 +08:00
problem_check.rb FIX: Make problem check tracker unique constraint work on PG13 (#29272) 2024-10-21 10:45:09 +08:00
published_page.rb
push_subscription.rb
quoted_post.rb
redelivering_webhook_event.rb FEATURE: Add Mechanism to redeliver all failed webhook events (#27609) 2024-07-08 15:43:16 -05:00
remote_theme.rb FEATURE: Allow themes to define screenshots (#29079) 2024-10-28 10:10:20 +10:00
remove_muted_tags_from_latest_site_setting.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
report.rb FIX: Blank "Legacy Pageviews" report showed no data (#29502) 2024-10-31 12:51:29 +10:00
reviewable_claimed_topic.rb
reviewable_flagged_post.rb DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
reviewable_history.rb
reviewable_post.rb DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
reviewable_priority_setting.rb
reviewable_queued_post.rb FIX: Use site contact user + group for Revise... review action (#29271) 2024-10-28 09:40:10 +10:00
reviewable_score.rb FEATURE: admin can disable flags (#27171) 2024-05-29 14:39:58 +10:00
reviewable_sensitivity_setting.rb
reviewable_user.rb FEATURE: Support designating multiple groups as mods on category (#28655) 2024-09-04 04:38:46 +03:00
reviewable.rb DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
s3_region_site_setting.rb
screened_email.rb
screened_ip_address.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
screened_url.rb
search_log.rb DEV: Add search_log modifier to prevent search log logging (#28279) 2024-08-08 12:41:10 -05:00
search_sort_order_site_setting.rb
shared_draft.rb
shelved_notification.rb DEV: Drop old notification id columns (#28550) 2024-10-15 11:58:57 +03:00
sidebar_section_link.rb
sidebar_section.rb DEV: Limit the number of category sidebar links a user can have (#26756) 2024-04-25 13:21:39 -05:00
sidebar_url.rb FEATURE: Add invite link to the sidebar (#29448) 2024-10-30 05:31:14 +03:00
single_sign_on_record.rb DEV: Increases external avatar url limit (#28893) 2024-09-13 01:08:01 +02:00
site_setting.rb FIX: Use dualstack S3 endpoint for direct uploads (#29611) 2024-11-07 11:06:39 +10:00
site.rb FIX: Preload all ancestors of sidebar categories (#26715) 2024-05-06 11:55:20 -05:00
sitemap.rb FIX: Ensure sitemaps include all topics with no duplicates (#26289) 2024-03-21 13:19:53 +00:00
skipped_email_log.rb
slug_setting.rb
stat.rb FEATURE: Enable the new /about page for everyone (#29390) 2024-10-29 18:40:11 +03:00
stylesheet_cache.rb
summarization_strategy.rb DEV: Remove summarization code (#27373) 2024-07-02 08:51:47 -07:00
tag_group_membership.rb
tag_group_permission.rb
tag_group.rb SECURITY: Fixes for main (#28137) 2024-07-30 14:19:01 +08:00
tag_search_data.rb
tag_user.rb DEV: Ensure unique notification level per tag user (#28638) 2024-09-03 15:43:02 +08:00
tag.rb FIX: Include permissions in the tag serializer (#27849) 2024-07-11 19:59:57 +03:00
theme_field.rb FEATURE: Allow themes to define screenshots (#29079) 2024-10-28 10:10:20 +10:00
theme_modifier_set.rb FIX: Invalid raise syntax (#29364) 2024-10-23 11:40:14 +02:00
theme_setting.rb FEATURE: theme_modifiers can depend on theme settings (plus serialize_post_user_badges) (#29227) 2024-10-17 15:16:16 +01:00
theme_settings_migration.rb DEV: Introduce run_theme_migration spec helper in test environment (#26845) 2024-05-03 06:29:18 +08:00
theme_svg_sprite.rb
theme_translation_override.rb
theme.rb FEATURE: theme_modifiers can depend on theme settings (plus serialize_post_user_badges) (#29227) 2024-10-17 15:16:16 +01:00
top_lists.rb
top_menu_item.rb
top_topic.rb FIX: Don't error out on nested top topic period param (#29275) 2024-10-21 10:44:43 +08:00
topic_allowed_group.rb
topic_allowed_user.rb
topic_converter.rb FIX: display validation errors when converting topics (#27064) 2024-05-17 16:36:25 +02:00
topic_custom_field.rb DEV: Move array type custom fields to JSON type in automation (#26939) 2024-05-10 18:47:12 +03:00
topic_embed.rb FIX: topic embed blank tags or passed with nil do not blank out existing topic tags (#27699) 2024-07-03 14:50:59 -07:00
topic_featured_users.rb
topic_group.rb
topic_hot_score.rb DEV: Trigger an event after updating topic hot scores (#29261) 2024-10-18 11:08:48 -03:00
topic_invite.rb
topic_link_click.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
topic_link.rb FEATURE: support silent internal links (#25472) 2024-01-30 17:03:58 +11:00
topic_list.rb FIX: Serialize parent categories first (#26294) 2024-03-21 19:51:41 +02:00
topic_notifier.rb
topic_participant_groups_summary.rb
topic_participants_summary.rb
topic_poster.rb
topic_posters_summary.rb
topic_search_data.rb
topic_tag.rb
topic_thumbnail.rb
topic_timer.rb
topic_tracking_state.rb DEV: Dedicated route for current user notification counts (#26106) 2024-03-15 12:08:37 -04:00
topic_user.rb DEV: Publish DiscourseEvent in TopicUser.track_visit for first visit (#27975) 2024-07-19 10:53:12 -05:00
topic_view_item.rb DEV: Fix flaky request tracker system spec (#29136) 2024-10-09 07:53:08 +08:00
topic_view_stat.rb FEATURE: topic_view_stats table with daily fidelity (#27197) 2024-05-27 15:25:32 +10:00
topic.rb This commit fixes an undesirable geometric query memory usage introduced in b908abe35a (#29539) 2024-11-04 09:00:03 +11:00
translation_override.rb FIX: Allow target attribute in translation overrides (#29503) 2024-11-01 09:48:07 +10:00
trust_level_and_staff_and_disabled_setting.rb
trust_level_and_staff_setting.rb
trust_level_setting.rb
trust_level3_requirements.rb
unsubscribe_key.rb
upload_reference.rb Revert "FIX: Post uploads setting access_control_post_id unnecessarily (#26627)" (#26643) 2024-04-16 14:10:25 +10:00
upload.rb DEV: Bump rubocop_discourse (#29608) 2024-11-06 06:27:49 +08:00
user_action.rb FEATURE: User Notifications Links Page (#26609) 2024-04-11 15:54:28 -06:00
user_api_key_scope.rb DEV: Allow user api key scope for notifications#totals (#26205) 2024-03-15 16:06:32 -04:00
user_api_key.rb DEV: Improve code comment about when ignored columns can be removed (#26894) 2024-05-07 11:06:31 +08:00
user_archived_message.rb
user_associated_account.rb
user_associated_group.rb
user_auth_token_log.rb
user_auth_token.rb FIX: store information about the login method in the database. (#28054) 2024-07-24 17:19:58 +10:00
user_avatar.rb PERF: Better query performance for user avatar consistency check. (#25342) 2024-01-22 18:33:39 +01:00
user_badge.rb DEV: Drop old notification id columns (#28550) 2024-10-15 11:58:57 +03:00
user_badges.rb
user_bookmark_list.rb FIX: Serialize categories for bookmarks (#26606) 2024-04-17 17:23:47 +03:00
user_custom_field.rb DEV: Move array type custom fields to JSON type in automation (#26939) 2024-05-10 18:47:12 +03:00
user_email.rb DEV: Catch missing translations during test runs (#26258) 2024-05-24 22:15:53 +08:00
user_export.rb
user_field_option.rb
user_field.rb FEATURE: User fields required for existing users - Part 2 (#27172) 2024-06-25 19:32:18 +08:00
user_history.rb FEAT: Allow admin delete user's associated accounts (#29018) 2024-09-27 20:08:05 +08:00
user_ip_address_history.rb
user_notification_schedule.rb
user_open_id.rb
user_option.rb FEATURE: Add user preference to disable smart lists (#29434) 2024-10-28 14:18:15 +10:00
user_password.rb FIX: setting new password should reset password_expired_at (#29296) 2024-10-21 07:24:43 +08:00
user_profile_view.rb
user_profile.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
user_required_fields_version.rb FEATURE: User fields required for existing users - Part 2 (#27172) 2024-06-25 19:32:18 +08:00
user_search_data.rb
user_search.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
user_second_factor.rb
user_security_key.rb
user_stat.rb DEV: Improve code comment about when ignored columns can be removed (#26894) 2024-05-07 11:06:31 +08:00
user_status.rb
user_summary.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
user_upload.rb
user_visit.rb
user_warning.rb
user.rb DEV: drop password-related columns from users table (#29187) 2024-10-23 13:42:35 +08:00
username_validator.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
watched_word_group.rb SECURITY: limit the number of characters in watched word replacements. 2024-07-15 19:25:17 +08:00
watched_word.rb SECURITY: limit the number of characters in watched word replacements. 2024-07-15 19:25:17 +08:00
web_crawler_request.rb
web_hook_event_type.rb DEV: Add 'custom' WebHook event type group (#29549) 2024-11-01 13:30:37 -05:00
web_hook_event_types_hook.rb
web_hook_event.rb FEATURE: Add Mechanism to redeliver all failed webhook events (#27609) 2024-07-08 15:43:16 -05:00
web_hook_events_daily_aggregate.rb FIX: Division by zero error on WebHookEventsDailyAggregate (#27667) 2024-07-01 15:40:52 -03:00
web_hook.rb DEV: Delete plugin specific webhook event types (#29374) 2024-10-24 11:02:58 -05:00