Hi there,
We’re using Snowplow Micro to test events being sent and all works well. However, we want to send an API key for the connection to our Iglu Server but keep the key as an environment variable. Our iglu.json
looks something like this:
{
"schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-1",
"data": {
"cacheSize": 5000,
"repositories": [
{
"name": "Iglu Central",
"priority": 0,
"vendorPrefixes": [ "com.snowplowanalytics" ],
"connection": {
"http": {
"uri": "http://iglucentral.com"
}
}
},
{
"name": "***",
"priority": 5,
"vendorPrefixes": [ "***" ],
"connection": {
"http": {
"uri": "***",
"apikey": "DON'T WANT TO COMMIT API KEY"
}
}
}
]
}
}
Adding the API key to iglu.json
works but we don’t want to commit that to Git. Is there a way, when passing iglu.json
to Snowplow Micro, that we can pass the API key separately? Something like:
docker run \
--mount type=bind,source=$(pwd)/example,destination=/config \
-p 9090:9090 \
snowplow/snowplow-micro:1.2.1 \
--collector-config /config/micro.conf \
--iglu /config/iglu.json \
--PASS API KEY FROM ENV
Hopefully I’ve got all the terminology right.
Thanks in advance,
Rob