Skip to content

Commit 790aa22

Browse files
authored
Add encryption and canary naming (#446)
1 parent bea2feb commit 790aa22

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tools/telemetry-generator.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import yargs from 'yargs';
66
import { hideBin } from 'yargs/helpers';
77
import { AwsMetadata } from '../src/server/InitParams';
88
import { staticInitialize } from '../src/app/initialize';
9+
import { randomBytes } from 'crypto';
910

1011
const argv = yargs(hideBin(process.argv))
1112
.option('templates', {
@@ -39,7 +40,7 @@ const argv = yargs(hideBin(process.argv))
3940
})
4041
.option('extension-version', {
4142
type: 'string',
42-
default: '0.0.0',
43+
default: '0.0.0 (canary)',
4344
description: 'Extension version for telemetry metadata',
4445
})
4546
.option('interval', {
@@ -79,6 +80,10 @@ const awsMetadata: AwsMetadata = {
7980
},
8081
logLevel: isDebug ? 'info' : 'warn',
8182
storageDir: join(process.cwd(), 'node_modules', '.cache', 'telemetry-generator', id),
83+
encryption: {
84+
key: randomBytes(32).toString('base64'),
85+
mode: 'JWT',
86+
},
8287
};
8388
staticInitialize(awsMetadata?.clientInfo?.extension, awsMetadata);
8489

0 commit comments

Comments
 (0)