From 20eabc8acadbc5d15fafe7c92562fb9cf3ead81f Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Sun, 4 May 2014 14:02:38 +0200 Subject: [PATCH] Fix #21, check the AWS user-id on S3 manifests --- bootstrapvz/providers/ec2/manifest-schema-s3.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrapvz/providers/ec2/manifest-schema-s3.json b/bootstrapvz/providers/ec2/manifest-schema-s3.json index ef23e51..79cd334 100644 --- a/bootstrapvz/providers/ec2/manifest-schema-s3.json +++ b/bootstrapvz/providers/ec2/manifest-schema-s3.json @@ -13,7 +13,8 @@ "type": "string" }, "user-id": { - "type": "string" + "type": "string", + "pattern": "(^arn:aws:iam::\\d*:user/\\w.*$)|(^\\d{4}-\\d{4}-\\d{4}$)" } } },