FIX: S3 buckets' regular expression wasn't strict enough

This commit is contained in:
Régis Hanol 2016-05-13 15:09:37 +02:00
parent d7d8df7d3a
commit 545a2355a2

View file

@ -231,10 +231,10 @@ login:
default: false default: false
twitter_consumer_key: twitter_consumer_key:
default: '' default: ''
regex: "^[a-zA-Z0-9_+-]+$" regex: "^[\\w+-]+$"
twitter_consumer_secret: twitter_consumer_secret:
default: '' default: ''
regex: "^[a-zA-Z0-9_+-]+$" regex: "^[\\w+-]+$"
enable_instagram_logins: enable_instagram_logins:
client: true client: true
default: false default: false
@ -625,7 +625,7 @@ files:
enum: 'S3RegionSiteSetting' enum: 'S3RegionSiteSetting'
s3_upload_bucket: s3_upload_bucket:
default: '' default: ''
regex: '^[^A-Z_.]+$' # can't use '.' when using HTTPS regex: "^[a-z0-9-]+$" # can't use '.' when using HTTPS
s3_cdn_url: s3_cdn_url:
default: '' default: ''
regex: '^https?:\/\/.+[^\/]$' regex: '^https?:\/\/.+[^\/]$'
@ -930,7 +930,7 @@ backups:
shadowed_by_global: true shadowed_by_global: true
s3_backup_bucket: s3_backup_bucket:
default: '' default: ''
regex: "^[^A-Z_.]+$" # can't use '.' when using HTTPS regex: "^[a-z0-9-]+$" # can't use '.' when using HTTPS
shadowed_by_global: true shadowed_by_global: true
s3_disable_cleanup: s3_disable_cleanup:
default: false default: false