-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* v0.18.0 * feat: extend cors (#578) * fix: cors not applied to all routes (#577) * feat: improve schema read (#576) * feat: collect ip fingerprint and better tstamp (#575) * feat: log schema metadata (#574) * feat: more lambda config options (#573) * fet: more lambda config options * chore: remove unused var * review --------- Co-authored-by: Léonard Henriquez <[email protected]>
- Loading branch information
1 parent
c251aed
commit 2f1908d
Showing
16 changed files
with
211 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.17.0 | ||
v0.18.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
locals { | ||
domain_parts = split(".", var.buz_domain) | ||
cookie_domain = join(".", slice(local.domain_parts, 1, length(local.domain_parts))) # Assumes Buz is running on a subdomain and the cookie should be on root | ||
buz_debug_var = "DEBUG" | ||
buz_config_var = "BUZ_CONFIG_PATH" | ||
buz_config_path = "/etc/buz/config.yml" | ||
system_env_base = "${var.system}-${var.env}-" | ||
artifact_repository = "${local.system_env_base}img" | ||
image = "buz:${var.buz_version}" | ||
buz_source_image = "ghcr.io/silverton-io/${local.image}" | ||
service_name = "${local.system_env_base}collector" | ||
config = "${local.system_env_base}config" | ||
schema_bucket = "${local.system_env_base}${var.schema_bucket_name}" | ||
events_bucket = "${local.system_env_base}${var.events_bucket_name}" | ||
default_output = "buz_events" | ||
deadletter_output = "buz_invalid_events" | ||
domain_parts = split(".", var.buz_domain) | ||
cookie_domain = join(".", slice(local.domain_parts, 1, length(local.domain_parts))) # Assumes Buz is running on a subdomain and the cookie should be on root | ||
buz_debug_var = "DEBUG" | ||
buz_config_var = "BUZ_CONFIG_PATH" | ||
buz_config_path = "/etc/buz/config.yml" | ||
system_env_base = "${var.system}-${var.env}-" | ||
artifact_repository = "${local.system_env_base}img" | ||
image = "buz:${var.buz_version}" | ||
buz_source_image = "${var.buz_image_repo}/${local.image}" | ||
service_name = "${local.system_env_base}collector" | ||
config = "${local.system_env_base}config" | ||
schema_bucket = "${local.system_env_base}${var.schema_bucket_name}" | ||
events_bucket = "${local.system_env_base}${var.events_bucket_name}" | ||
default_output = "buz_events" | ||
deadletter_output = "buz_invalid_events" | ||
metadata_extraction_params = "{isValid:.isValid,vendor:.vendor,namespace:.namespace,version:.version}" | ||
s3_dynamic_prefix = "isValid=!{partitionKeyFromQuery:isValid}/vendor=!{partitionKeyFromQuery:vendor}/namespace=!{partitionKeyFromQuery:namespace}/version=!{partitionKeyFromQuery:version}/year=!{timestamp:yyyy}/month=!{timestamp:MM}/day=!{timestamp:dd}/" | ||
s3_dynamic_prefix = "isValid=!{partitionKeyFromQuery:isValid}/vendor=!{partitionKeyFromQuery:vendor}/namespace=!{partitionKeyFromQuery:namespace}/version=!{partitionKeyFromQuery:version}/year=!{timestamp:yyyy}/month=!{timestamp:MM}/day=!{timestamp:dd}/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ terraform { | |
} | ||
|
||
provider "aws" { | ||
region = var.aws_region | ||
} | ||
region = var.aws_region | ||
profile = var.aws_profile | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package annotator | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestGetSchemaMetadata(t *testing.T) { | ||
testData := []struct { | ||
name string | ||
input []byte | ||
expected schemaMetadata | ||
}{ | ||
{ | ||
name: "Valid JSON", | ||
input: []byte(`{"self":{"vendor":"testVendor","namespace":"testNamespace","version":"testVersion"},"disableValidation":true}`), | ||
expected: schemaMetadata{ | ||
Vendor: "testVendor", | ||
Namespace: "testNamespace", | ||
Version: "testVersion", | ||
DisableValidation: true, | ||
}, | ||
}, | ||
} | ||
|
||
for _, tc := range testData { | ||
t.Run(tc.name, func(t *testing.T) { | ||
result := getSchemaMetadata(tc.input) | ||
assert.Equal(t, tc.expected, result) | ||
}) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.