This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/spec
Penar Musaraj 102909edb3 FEATURE: Add support for secure media (#7888)
This PR introduces a new secure media setting. When enabled, it prevent unathorized access to media uploads (files of type image, video and audio). When the `login_required` setting is enabled, then all media uploads will be protected from unauthorized (anonymous) access. When `login_required`is disabled, only media in private messages will be protected from unauthorized access. 

A few notes: 

- the `prevent_anons_from_downloading_files` setting no longer applies to audio and video uploads
- the `secure_media` setting can only be enabled if S3 uploads are already enabled and configured
- upload records have a new column, `secure`, which is a boolean `true/false` of the upload's secure status
- when creating a public post with an upload that has already been uploaded and is marked as secure, the post creator will raise an error
- when enabling or disabling the setting on a site with existing uploads, the rake task `uploads:ensure_correct_acl` should be used to update all uploads' secure status and their ACL on S3
2019-11-18 11:25:42 +10:00
..
components FEATURE: Add support for secure media (#7888) 2019-11-18 11:25:42 +10:00
fabricators FEATURE: Webauthn authenticator management with 2FA login (Security Keys) (#8099) 2019-10-01 19:08:41 -07:00
fixtures FEATURE: add SES spam header to recognised spam headers (#8254) 2019-10-28 12:46:53 -04:00
helpers DEV: improve usability of subfolder specs 2019-11-15 16:48:24 +11:00
import_export DEV: clean up dependencies in spec 2019-10-02 14:50:54 +10:00
integration REFACTOR: redo DiscourseTagging.filter_allowed_tags (#8328) 2019-11-12 14:28:44 -05:00
integrity DEV: Update markdown-it from 8.4.1 to 10.0.0 (#8164) 2019-10-08 13:00:22 +02:00
jobs FIX: Do not deactivate admin accounts with recent posts or api keys (#8342) 2019-11-12 16:56:01 +00:00
lib FEATURE: Add support for secure media (#7888) 2019-11-18 11:25:42 +10:00
mailers FEATURE: Add support for secure media (#7888) 2019-11-18 11:25:42 +10:00
models FEATURE: Add support for secure media (#7888) 2019-11-18 11:25:42 +10:00
multisite FEATURE: Add support for secure media (#7888) 2019-11-18 11:25:42 +10:00
requests FEATURE: Add support for secure media (#7888) 2019-11-18 11:25:42 +10:00
serializers Fix the actual failing test 2019-11-14 16:20:45 -08:00
services DEV: improve usability of subfolder specs 2019-11-15 16:48:24 +11:00
support DEV: improve usability of subfolder specs 2019-11-15 16:48:24 +11:00
tasks FEATURE: Remove attachments and truncate raw field for incoming emails (#8253) 2019-10-30 16:54:35 +11:00
views/omniauth_callbacks FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
rails_helper.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00