Compare commits

..

No commits in common. "e9a9b74cb476d81308435ed6182c5573b60576b4" and "054f61d6c1b3c9bdef0ad7a98bb4703b5acacad4" have entirely different histories.

4 changed files with 3 additions and 12 deletions

View File

@ -38,7 +38,7 @@
},
"principalAWSUserArn": {
"type": "string",
"pattern": "^arn:aws:iam::[0-9]{12}:user/(?!\\*)[\\w+=,.@ -/]{1,2017}$"
"pattern": "^arn:aws:iam::[0-9]{12}:user/(?!\\*)[\\w+=,.@ -/]{1,64}$"
},
"principalAWSRoleArn": {
"type": "string",
@ -360,9 +360,6 @@
"type": "string",
"const": "2012-10-17"
},
"Id": {
"type": "string"
},
"Statement": {
"oneOf": [
{

View File

@ -28,7 +28,7 @@
},
"principalAWSUserArn": {
"type": "string",
"pattern": "^arn:aws:iam::[0-9]{12}:user/(?!\\*)[\\w+=,.@ -/]{1,2017}$"
"pattern": "^arn:aws:iam::[0-9]{12}:user/(?!\\*)[\\w+=,.@ -/]{1,64}$"
},
"principalAWSRoleArn": {
"type": "string",

View File

@ -3,7 +3,7 @@
"engines": {
"node": ">=16"
},
"version": "7.10.43-1",
"version": "7.10.43",
"description": "Common utilities for the S3 project components",
"main": "build/index.js",
"repository": {

View File

@ -16,7 +16,6 @@ const sampleUserPolicy = {
};
const sampleResourcePolicy = {
Version: '2012-10-17',
Id: 'cd3ad3d9-2776-4ef1-a904-4c229d1642ee',
Statement: [
{
Sid: 'ResourcePolicy1',
@ -188,11 +187,6 @@ describe('Policies validation - Principal', () => {
value: { AWS: 'arn:aws:iam::111111111111:user/path/in/org/leaf' },
policyType: [user, resource],
},
{
name: 'user arn with vault made path',
value: { AWS: 'arn:aws:iam::767707094035:user/user2/TENANT_USER/null/5417be27-8709-48bd-adfb-865ebc58b9f0/1a464be02ea631bdaf2a9ee884434233374a457460e925bf10d9e4665f8fa796/c1d83067-a3f3-41a4-bd45-d6bf47270bd0' }, // eslint-disable-line max-len
policyType: [user, resource],
},
{
name: 'multiple user arns',
value: {