Add support for SSE-S3 server side encryption with vault (#6192)

Add support for sse-s3 encryption with vault as KMS.

Also refactoring code to make use of headers and functions defined in
crypto package and clean up duplicated code.
This commit is contained in:
poornas
2018-08-17 12:52:14 -07:00
committed by kannappanr
parent 3d197c1449
commit e71ef905f9
236 changed files with 23463 additions and 608 deletions
+5
View File
@@ -0,0 +1,5 @@
resource = [{
foo = [{
bar = {}
}]
}]
+2
View File
@@ -0,0 +1,2 @@
foo = "bar"
bar = "${file("bing/bong.txt")}"
+1
View File
@@ -0,0 +1 @@
count = "3"
+3
View File
@@ -0,0 +1,3 @@
foo="bar"
bar="${file("bing/bong.txt")}"
foo-bar="baz"
+2
View File
@@ -0,0 +1,2 @@
environment = "aws" {
}
+15
View File
@@ -0,0 +1,15 @@
key "" {
policy = "read"
}
key "foo/" {
policy = "write"
}
key "foo/bar/" {
policy = "read"
}
key "foo/bar/baz" {
policy = "deny"
}
+10
View File
@@ -0,0 +1,10 @@
variable "foo" {
default = "bar"
description = "bar"
}
variable "amis" {
default = {
east = "foo"
}
}
+1
View File
@@ -0,0 +1 @@
resource "foo" {}
+6
View File
@@ -0,0 +1,6 @@
foo = "bar\"baz\\n"
bar = "new\nline"
qux = "back\\slash"
qax = "slash\\:colon"
nested = "${HH\\:mm\\:ss}"
nestedquotes = "${"\"stringwrappedinquotes\""}"
+5
View File
@@ -0,0 +1,5 @@
output {
one = "${replace(var.sub_domain, ".", "\\.")}"
two = "${replace(var.sub_domain, ".", "\\\\.")}"
many = "${replace(var.sub_domain, ".", "\\\\\\\\.")}"
}
+2
View File
@@ -0,0 +1,2 @@
foo = "bar"
Key = 7
+2
View File
@@ -0,0 +1,2 @@
a = 1.02
b = 2
Binary file not shown.
+2
View File
@@ -0,0 +1,2 @@
foo = [["foo"], ["bar"]]
+4
View File
@@ -0,0 +1,4 @@
foo = [
{somekey1 = "someval1"},
{somekey2 = "someval2", someextrakey = "someextraval"},
]
+4
View File
@@ -0,0 +1,4 @@
foo = <<EOF
bar
baz
EOF
+4
View File
@@ -0,0 +1,4 @@
foo = <EOF
bar
baz
EOF
+4
View File
@@ -0,0 +1,4 @@
foo = <<-EOF
bar
baz
EOF
+2
View File
@@ -0,0 +1,2 @@
multiline_literal = "hello
world"
@@ -0,0 +1,2 @@
multiline_literal_with_hil = "${hello
world}"
+5
View File
@@ -0,0 +1,5 @@
foo = <<EOF
bar
baz
EOF
key = "value"
@@ -0,0 +1,5 @@
foo = <<-EOF
baz
bar
foo
EOF
@@ -0,0 +1 @@
foo = <<
@@ -0,0 +1,5 @@
/*
foo = "bar/*"
*/
bar = "value"
@@ -0,0 +1,5 @@
resource "aws" "web" {
provider = "aws" {
region = "us-west-2"
}
}
+6
View File
@@ -0,0 +1,6 @@
path {
policy = "write"
permissions = {
"bool" = [false]
}
}
+6
View File
@@ -0,0 +1,6 @@
a = 1e-10
b = 1e+10
c = 1e10
d = 1.2e-10
e = 1.2e+10
f = 1.2e10
+7
View File
@@ -0,0 +1,7 @@
service "my-service-0" {
key = "value"
}
service "my-service-1" {
key = "value"
}
+5
View File
@@ -0,0 +1,5 @@
// This is a test structure for the lexer
foo "baz" {
key = 7
foo = "bar"
}
+9
View File
@@ -0,0 +1,9 @@
// This is a test structure for the lexer
foo "baz" {
key = 7
foo = "bar"
}
foo {
key = 7
}
+7
View File
@@ -0,0 +1,7 @@
foo {
key = 7
}
foo {
foo = "bar"
}
+6
View File
@@ -0,0 +1,6 @@
foo {
key = 7
}
foo {
key = 12
}
+7
View File
@@ -0,0 +1,7 @@
foo "baz" {
key = 7
}
foo "bar" {
key = 12
}
+5
View File
@@ -0,0 +1,5 @@
name = "terraform-test-app"
config_vars {
FOO = "bar"
}
+3
View File
@@ -0,0 +1,3 @@
regularvar = "Should work"
map.key1 = "Value"
map.key2 = "Other value"
@@ -0,0 +1,2 @@
/*
Foo
+2
View File
@@ -0,0 +1,2 @@
foo "baz" {
bar = "baz"