R2 Access Key ID and Secret Access Key Regex Compatibility with AWS

Suggest R2 access key ID and secret access key be regex compatible with those in AWS. This way R2 can be more compatible with tools that connects to AWS S3, and are using regex to validate inputs.

Suggested access key IDs regex: (?<![A-Z0-9])[A-Z0-9]{20}(?![A-Z0-9])
Suggested secret access keys regex: (?<![A-Za-z0-9/+=])[A-Za-z0-9/+=]{40}(?![A-Za-z0-9/+=]).

Refer to the following link:
https://aws.amazon.com/blogs/security/a-safer-way-to-distribute-aws-credentials-to-ec2/

1 Like