这是indexloc提供的服务,不要输入任何密码
Skip to content

server regression: JWK is rejected due to Cache-Control header parsing #3655

@lexi-lambda

Description

@lexi-lambda

As reported on Discord, the changes in #3446 do not always properly parse the value of the Cache-Control header, causing the server to fail to start. For example, the response returned by Google Cloud IAM includes a header of the shape

cache-control: public, max-age=18341, must-revalidate, no-transform

and this is rejected by graphql-engine on startup, causing it to exit with the following somewhat unhelpful message:

Failed parsing Cache-Control header from JWK response. Could not find max-age or s-maxage

It would be nice if we could use some existing, off-the-shelf parser to parse this information, not roll our own.

Metadata

Metadata

Assignees

Labels

c/serverRelated to serverk/bugSomething isn't workingp/urgentImmediate action required

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions