Skip to content

Commit

Permalink
Authenticate Iglu schema registry access from Stream Enrich (closes #92)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldemirenes committed Jul 4, 2017
1 parent d4d81f7 commit d1ea872
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/configs/iglu-resolver.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-0",
"schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-1",
"data": {
"cacheSize": 500,
"repositories": [
Expand All @@ -23,7 +23,8 @@
],
"connection": {
"http": {
"uri": "http://localhost:8081/api"
"uri": "http://localhost:8081/api",
"apikey": ""
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions resources/scripts/user_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
iglu_server_super_uid="980ae3ab-3aba-4ffe-a3c2-3b2e24e2ffce"

# DO NOT ALTER BELOW #
iglu_resolver_config_dir="/home/ubuntu/snowplow/configs/iglu-resolver.json"
sed -i 's/\(.*"apikey":\)\(.*\)/\1 "'$iglu_server_super_uid'"/' $iglu_resolver_config_dir

export PGPASSWORD=snowplow
iglu_server_setup="INSERT INTO apikeys (uid, vendor_prefix, permission, createdat) VALUES ('${iglu_server_super_uid}','*','super',current_timestamp);"
Expand Down

0 comments on commit d1ea872

Please sign in to comment.