diff options
Diffstat (limited to 'weed/iam/sts/sts_service.go')
| -rw-r--r-- | weed/iam/sts/sts_service.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/iam/sts/sts_service.go b/weed/iam/sts/sts_service.go index 7305adb4b..3d9f9af35 100644 --- a/weed/iam/sts/sts_service.go +++ b/weed/iam/sts/sts_service.go @@ -683,7 +683,7 @@ func (s *STSService) validateRoleAssumptionForWebIdentity(ctx context.Context, r } // Basic role ARN format validation - expectedPrefix := "arn:seaweed:iam::role/" + expectedPrefix := "arn:aws:iam::role/" if len(roleArn) < len(expectedPrefix) || roleArn[:len(expectedPrefix)] != expectedPrefix { return fmt.Errorf("invalid role ARN format: got %s, expected format: %s*", roleArn, expectedPrefix) } @@ -720,7 +720,7 @@ func (s *STSService) validateRoleAssumptionForCredentials(ctx context.Context, r } // Basic role ARN format validation - expectedPrefix := "arn:seaweed:iam::role/" + expectedPrefix := "arn:aws:iam::role/" if len(roleArn) < len(expectedPrefix) || roleArn[:len(expectedPrefix)] != expectedPrefix { return fmt.Errorf("invalid role ARN format: got %s, expected format: %s*", roleArn, expectedPrefix) } |
