Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 58a6e59

Browse files
committed
Add browser and license ingest keys to config and sandbox env
1 parent 41a0758 commit 58a6e59

6 files changed

Lines changed: 34 additions & 2 deletions

File tree

sandbox/shared/sandbox_config.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ function sbcfg_initialize {
9898
echo "CSSVC_CFG_FILE=$CSSVC_CFG_FILE"
9999
fi
100100

101+
# For instrumenting backend services
102+
[ -z "$CSSVC_NEWRELIC_LICENSE_KEY" ] && export CSSVC_NEWRELIC_LICENSE_KEY=$(get-json-property -j $CSSVC_CFG_FILE -p integrations.newrelic.cloud.licenseIngestKey)
103+
104+
101105
# ----- REMOTE DEVELOPMENT SANDBOXES
102106
# local development on ec2 instances (remote hosts) should reference their
103107
# hostname and not 'localhost' when constructing URLs so we set

shared/codestream_configs/README.parameter-definitions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@
171171
"disabled": "disable integration"
172172
}
173173
},
174+
"newrelic": {
175+
"<appProvider>": {
176+
"browserIngestKey": "NR1 ingest browser key [CSSVC_NEWRELIC_BROWSER_KEY]",
177+
"licenseIngestKey": "NR1 ingest license key [CSSVC_NEWRELIC_LICENSE_KEY]"
178+
}
179+
},
174180
"okta": {
175181
"<appProvider>": {
176182
"appClientId": "Okta API client Id",

shared/codestream_configs/parameters.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,18 @@
549549
}
550550
}
551551
},
552+
"newrelic": {
553+
"<appProvider>": {
554+
"browserIngestKey": {
555+
"desc": "NR1 ingest browser key",
556+
"env": "CSSVC_NEWRELIC_BROWSER_KEY"
557+
},
558+
"licenseIngestKey": {
559+
"desc": "NR1 ingest license key",
560+
"env": "CSSVC_NEWRELIC_LICENSE_KEY"
561+
}
562+
}
563+
},
552564
"okta": {
553565
"<appProvider>": {
554566
"appClientId": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
21

shared/codestream_configs/profiles/cloud.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,16 @@
248248
"stg": {}
249249
}
250250
},
251+
"newrelic": {
252+
"cloud": {
253+
"defaultEnv": {
254+
"_loadSecretsFile": "newrelic/nr1-staging.dev.cfg"
255+
},
256+
"prod": {
257+
"_loadSecretsFile": "newrelic/nr1-staging.prod.cfg"
258+
}
259+
}
260+
},
251261
"okta": {
252262
"localInstallation": {
253263
"defaultEnv": {}

shared/server_utils/custom_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ module.exports = function customConfigFunc(nativeCfg) {
297297
gitlab_enterprise: { appClientId: 'placeholder' },
298298
jiraserver: { appClientId: 'placeholder' },
299299
clubhouse: { appClientId: 'placeholder' },
300-
newrelic: { appClientId: 'placeholder' }
300+
newrelic: {}
301301
};
302302
// THIS WILL OVERWRITE CONFIG DATA IF >1 REPEATING BLOCK (installation) EXISTS FOR A GIVEN PROVIDER
303303
// The plan is to remove the repeating blocks from the schema.

0 commit comments

Comments
 (0)