Research and Engineering Studio (RES) is an AWS supported open source product that enables IT administrators to provide an easy-to-use web portal for scientists and engineers to run technical computing workloads on AWS.
RES 2024.06 fails to apply snapshots from prior versions if the AD groups contain space(s) in their name(s).
The cluster-manager CloudWatch logs (under the /cluster-manager log group) will include the following error during AD sync:
[apply-snapshot] authz.role-assignments/<Group name with spaces>:group#<projectID>:project FAILED_APPLY because: [INVALID_PARAMS] Actor key doesn't match the regex pattern ^[a-zA-Z0-9_.][a-zA-Z0-9_.-]{1,20}:(user|group)$
The error results from RES only accepting group names with the following requirements:
It can only contain lower case and uppercase ASCII letters, digits, dash(-), period (.), underscore (_)
A dash (-) is not allowed as the first character
It cannot contain spaces.
Affected versions
2024.06
Mitigation
Download patch.py and groupname_regex.patch by replacing <output-directory> with the directory to download the patch script and patch file and <environment-name> with the name of your RES environment in the command below:
a. The patch only applies to RES 2024.06
b. The patch script requires AWS CLI v2, Python 3.9.16 or above, and Boto3.
c. Configure the AWS CLI for the account / region where RES is deployed, and make sure that you have S3 permissions to write to the bucket created by RES.
Restart the Cluster Manager instance for your environment by replacing with the name of your RES environment in the commands below. You may also terminate the instance from the Amazon EC2 Management Console.
Note: The patch allows AD group names to contain lower case and uppercase ASCII letters, digits, dash(-), period (.), underscore (_), and spaces with a total length between 1 and 30, inclusive.
Bug description
RES 2024.06 fails to apply snapshots from prior versions if the AD groups contain space(s) in their name(s).
The cluster-manager CloudWatch logs (under the/cluster-manager log group) will include the following error during AD sync:
The error results from RES only accepting group names with the following requirements:
Affected versions
2024.06
Mitigation
Download patch.py and groupname_regex.patch by replacing
<output-directory>
with the directory to download the patch script and patch file and<environment-name>
with the name of your RES environment in the command below: a. The patch only applies to RES 2024.06 b. The patch script requires AWS CLI v2, Python 3.9.16 or above, and Boto3. c. Configure the AWS CLI for the account / region where RES is deployed, and make sure that you have S3 permissions to write to the bucket created by RES.Note: The patch allows AD group names to contain lower case and uppercase ASCII letters, digits, dash(-), period (.), underscore (_), and spaces with a total length between 1 and 30, inclusive.