-
Notifications
You must be signed in to change notification settings - Fork 4
feat: [MC-690] Distinct Pocket dev JWK key ids #361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Possibly admin-api can't find the key id when it's not cached..? Locally it works fine, but on Pocket-Dev the following error occurs for the same request: Context creation failed: Could not validate User: secret or public key must be provided
I pulled the latest image from Pocket-Dev and it's set to production # echo $NODE_ENV production
katerinachinnappan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
Required 'Lint Code Base' failed to run.
| ], | ||
| envVars: [ | ||
| { | ||
| name: 'ENVIRONMENT', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked that ENVIRONMENT was not used by searching the codebase.
| return jwksClient({ | ||
| jwksUri, | ||
| cache: true, // Default Value | ||
| cacheMaxEntries: 5, // Default value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We increased the number of keys. Increasing cacheMaxEntries might prevent performance issues, if we have more than 5 keys. The number 100 was chosen arbitrarily.
Error: When a manual configuration is not provided, gateway requires an Apollo configuration. Local development should use NODE_END=local since #361
Error: When a manual configuration is not provided, gateway requires an Apollo configuration. Local development should use NODE_END=local since #361
Goal
Use different jwk keys in development and production for the Content team's Pocket JWKs.
What changed
--elv2-license acceptto start:dev script.NODE_ENVto 'development' in Pocket-Dev. Previously it was set to 'production'. 😕Implementation Decisions
References
JIRA ticket:
dotcom-gateway PR: