View a markdown version of this page

Secure job attachment and software buckets - AWS Deadline Cloud

Secure job attachment and software buckets

Each queue stores its job attachments in an Amazon S3 bucket that you own. Three pieces configure the connection between a queue and its bucket:

  • Job attachments write to and read from a root prefix in the Amazon S3 bucket. You specify this root prefix in the CreateQueue API call.

  • The bucket has a corresponding Queue Role, which specifies the role that grants queue users access to the bucket and root prefix. When creating a queue, you specify the Queue Role Amazon Resource Name (ARN) alongside the job attachments bucket and root prefix.

  • Authorized calls to the AssumeQueueRoleForRead, AssumeQueueRoleForUser, and AssumeQueueRoleForWorker API operations return a set of temporary security credentials for the Queue Role.

Queues that share an Amazon S3 bucket and root prefix also share access to the job attachments stored there. Give each queue its own bucket and root prefix so that queue permission boundaries also apply to job attachments. For example, when QueueA and QueueB have separate buckets, an artist with access to only QueueA can't read QueueB's job attachments. If several queues belong to the same security boundary, such as the queues for one show, sharing a bucket between them is a reasonable simplification. The console sets up each queue with its own bucket and root prefix by default.

Separate buckets keep job attachments separated in Amazon S3. On the worker host, a job runs code as the queue's operating system user. The job can write files to any location that user can write to, including locations that other queues' users can read. Separation on the host comes from the queue operating system users. For more information, see Run jobs as dedicated OS users.

To isolate your queues, you must configure the Queue Role to only allow queue access to the bucket and root prefix. In the following example, replace each placeholder with your resource-specific information.

JSON
{ "Version":"2012-10-17", "Statement": [ { "Action": [ "s3:GetObject", "s3:PutObject", "s3:ListBucket", "s3:GetBucketLocation" ], "Effect": "Allow", "Resource": [ "arn:aws:s3:::JOB_ATTACHMENTS_BUCKET_NAME", "arn:aws:s3:::JOB_ATTACHMENTS_BUCKET_NAME/JOB_ATTACHMENTS_ROOT_PREFIX/*" ], "Condition": { "StringEquals": { "aws:ResourceAccount": "111122223333" } } }, { "Action": [ "logs:GetLogEvents" ], "Effect": "Allow", "Resource": "arn:aws:logs:us-east-1:111122223333:log-group:/aws/deadline/FARM_ID/*" } ] }

You must also set a trust policy on the role. In the following example, replace the placeholder text with your resource-specific information.

JSON
{ "Version":"2012-10-17", "Statement": [ { "Action": [ "sts:AssumeRole" ], "Effect": "Allow", "Principal": { "Service": "deadline.amazonaws.com" }, "Condition": { "StringEquals": { "aws:SourceAccount": "111122223333" }, "ArnEquals": { "aws:SourceArn": "arn:aws:deadline:us-east-1:111122223333:farm/FARM_ID" } } }, { "Action": [ "sts:AssumeRole" ], "Effect": "Allow", "Principal": { "Service": "credentials.deadline.amazonaws.com" }, "Condition": { "StringEquals": { "aws:SourceAccount": "111122223333" }, "ArnEquals": { "aws:SourceArn": "arn:aws:deadline:us-east-1:111122223333:farm/FARM_ID" } } } ] }

Bucket settings and what Deadline Cloud configures

When you create a queue in the console and let Deadline Cloud create a new bucket for it, Deadline Cloud blocks all public access to the bucket and adds a bucket policy that denies requests made with a TLS version earlier than 1.2. Deadline Cloud doesn't change the settings of a bucket that already exists, so when you select your own bucket, confirm those two settings yourself.

The remaining settings are yours to choose. The following table lists the setting, the default for a bucket that Deadline Cloud creates, and where to change it.

Job attachments bucket settings
Setting Default Where to change it

Block Public Access

All four settings enabled

Amazon S3. Job attachments never needs public access, so leave the settings enabled.

Minimum TLS version

A bucket policy denies requests below TLS 1.2

Amazon S3 bucket policy. To require TLS 1.3, raise the value in the policy.

Encryption at rest

Amazon S3 managed keys (SSE-S3), which Amazon S3 applies to every new object

Amazon S3. To use your own key, configure the bucket for SSE-KMS and grant the queue role access to the key. See Encryption for job attachment S3 buckets.

Versioning

Off

Amazon S3. Turn versioning on to keep a recoverable copy of overwritten or deleted objects.

Access logging

Off

CloudTrail data events or Amazon S3 server access logs, either of which records per-object access. For more information, see Audit and access logging sources.

Lifecycle configuration

None, so objects stay until you delete them

Amazon S3. Add a lifecycle rule to expire old job attachments. For more information, see Managing job attachments in S3 buckets in the Deadline Cloud User Guide.

The job attachments feature doesn't restrict files by file name extension. Two controls shape what a job can bring with it and what it can reach:

  • Storage profiles declare the file system locations that a queue expects. If a scene references files outside those locations, the submitter warns you before you submit the job. For more information, see Storage profiles in the Deadline Cloud User Guide.

  • What a job can do with a file it receives comes from the operating system user that job processes run as, and from the queue role. For more information, see Run jobs as dedicated OS users.

Custom software Amazon S3 buckets

You can add the following statement to your Queue Role to access custom software in your Amazon S3 bucket. In the following example, replace SOFTWARE_BUCKET_NAME with the name of your S3 bucket and BUCKET_ACCOUNT_OWNER with the AWS account ID that owns the bucket.

"Statement": [ { "Action": [ "s3:GetObject", "s3:ListBucket" ], "Effect": "Allow", "Resource": [ "arn:aws:s3:::SOFTWARE_BUCKET_NAME", "arn:aws:s3:::SOFTWARE_BUCKET_NAME/*" ], "Condition": { "StringEquals": { "aws:ResourceAccount": "BUCKET_ACCOUNT_OWNER" } } } ]

For more information about Amazon S3 security best practices, see Security best practices for Amazon S3 in the Amazon Simple Storage Service User Guide.