discourse/app/services/video_conversion
Alan Guo Xiang Tan fae7cd138d
FEATURE: Add opt-in IAM role assumption for S3 operations (#39174)
This commit adds support for assuming an IAM role when performing S3
operations. When `s3_role_arn` is configured alongside static access
keys, Discourse will use AWS STS AssumeRole to obtain temporary, scoped
credentials instead of using the static keys directly.

Two new settings are introduced:

1. `s3_role_arn`: The ARN of the IAM role to assume.
2. `s3_role_session_name`: An optional session name which falls back to
the server hostname when blank.

Both are available as GlobalSettings (env vars) and SiteSettings (admin
UI). The feature is entirely opt-in, when `s3_role_arn` is blank
everything behaves exactly as before.

Co-authored-by: ducks <868959+ducks@users.noreply.github.com>
2026-04-15 04:29:50 +08:00
..
adapter_factory.rb
aws_media_convert_adapter.rb FEATURE: Add opt-in IAM role assumption for S3 operations (#39174) 2026-04-15 04:29:50 +08:00
base_adapter.rb DEV: Add video conversion support for chat messages (#36275) 2025-12-01 12:34:56 -07:00