Skip to content

Commit 7ced41e

Browse files
committed
chore: add section manager lambda key id to config
1 parent 0a82c25 commit 7ced41e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/config.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,40 @@ const config = {
2626
//Mozilla Auth Proxy supports a larger number of user groups for a user.
2727
cognito: {
2828
jwtIssuer:
29+
// COGNITO_JWT_ISSUER is not set in this repo (or anywhere?)
2930
process.env.COGNITO_JWT_ISSUER ||
3031
'cognito-idp.us-east-1.amazonaws.com/us-east-1_1alKls4qw',
32+
// COGNITO_KIDS is not set in this repo (or anywhere?)
3133
kids: process.env.COGNITO_KIDS?.split(',') || [
3234
'kze4M0CiXoDO7Qkpig1oH0F6OInzZg6ugk0PyojOlzc=',
3335
'4w35mrh4EBECpjJnyIjdQ60yjh3xeI1m0VF1H/z0T/c=',
3436
],
3537
},
3638
mozillaAuthProxy: {
3739
jwtIssuer:
40+
// MOZILLA_AUTH_PROXY_JWT_ISSUER is not set in this repo (or anywhere?)
3841
process.env.MOZILLA_AUTH_PROXY_JWT_ISSUER ||
3942
'cognito-idp.us-east-1.amazonaws.com/us-east-1_qYkccPmmu',
43+
// MOZILLA_AUTH_PROXY_KIDS is not set in this repo (or anywhere?)
4044
kids: process.env.MOZILLA_AUTH_PROXY_KIDS?.split(',') || [
4145
'OR8erz5A8/hCkVdHczk879k2zUQXoAke9p8TQXsgKLQ=',
4246
'QtBbT/twDz6JmT99PQkAOB+QBhG4eJvxk8pOr7YzfWU=',
4347
],
4448
},
4549
pocket: {
50+
// POCKET_JWT_ISSUER is not set in this repo (or anywhere?)
4651
jwtIssuer: process.env.POCKET_JWT_ISSUER || 'getpocket.com',
4752
kids:
53+
// POCKET_KIDS is not set in this repo (or anywhere?)
4854
process.env.POCKET_KIDS?.split(',') ||
55+
// if you add a new JWK to https://github.com/Pocket/dotcom-gateway/blob/main/static/.well-known/jwk
56+
// you must also specify it here for the environment you want
4957
process.env.NODE_ENV === 'production'
50-
? ['CURMIG', 'CORPSL']
58+
? ['CURMIG', 'CORPSL', 'SEMGRL']
5159
: ['CMGDEV', 'CORDEV'],
5260
},
5361
defaultKid:
62+
// DEFAULT_KID is not set in this repo (or anywhere?)
5463
process.env.DEFAULT_KID || 'OR8erz5A8/hCkVdHczk879k2zUQXoAke9p8TQXsgKLQ=',
5564
},
5665
};

0 commit comments

Comments
 (0)