Skip to content

Conversation

@jpetto
Copy link
Collaborator

@jpetto jpetto commented Feb 14, 2025

Goal

add section manager lambda key id to config.

also removing dependency on terraform cloud (SRE initiative, see Pocket/content-monorepo#253).

@jpetto jpetto requested a review from a team as a code owner February 14, 2025 20:17
@jpetto jpetto requested review from katerinachinnappan and kschelonka and removed request for a team February 14, 2025 20:17
@jpetto jpetto force-pushed the SHIPIT-0214-add-section-manager-lambda-keyid branch from 7ced41e to f679a3e Compare February 14, 2025 20:30
// COGNITO_JWT_ISSUER is not set in this repo (or anywhere?)
process.env.COGNITO_JWT_ISSUER ||
'cognito-idp.us-east-1.amazonaws.com/us-east-1_1alKls4qw',
// COGNITO_KIDS is not set in this repo (or anywhere?)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the env is meant to override it for local development or testing? (Just a guess.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

best guess here is premature optimization. there were probably talks of creating env vars but it never happened.

src/config.ts Outdated
process.env.NODE_ENV === 'production'
? ['CURMIG', 'CORPSL']
? ['CURMIG', 'CORPSL', 'SEMGRL']
: ['CMGDEV', 'CORDEV'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not need authentication in our Pocket-Dev environment? If we do, please generate separate credentials, because Pocket-Dev is used as a sandbox and not a secure place for production secrets.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a dev key in a new commit!

- clean up a buggy spec test
@jpetto jpetto merged commit 7cbaa95 into main Feb 18, 2025
7 checks passed
@jpetto jpetto deleted the SHIPIT-0214-add-section-manager-lambda-keyid branch February 18, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants