Skip to content
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

How to handle cache in signatures #2134

Closed
jricher opened this issue May 26, 2022 · 5 comments
Closed

How to handle cache in signatures #2134

jricher opened this issue May 26, 2022 · 5 comments
Labels
discuss A candidate for discussion at a meeting signatures

Comments

@jricher
Copy link
Contributor

jricher commented May 26, 2022

What should the requirements for cache be in signatures?

See some context:

Originally posted by @jricher in #2105 (comment)

@jricher jricher added the discuss A candidate for discussion at a meeting label Jul 14, 2022
@jricher
Copy link
Contributor Author

jricher commented Jul 14, 2022

Still needs input from the WG to make sure current text is ok.

@mnot
Copy link
Member

mnot commented Jul 28, 2022

@jricher you mentioned that there's already text for this -- can you point to it?

@jricher
Copy link
Contributor Author

jricher commented Aug 3, 2022

We've got this paragraph in §5 about Accept-Signature:

When the Accept-Signature field is sent in an HTTP request message, the field indicates that the client desires the server to sign the response using the identified parameters, and the target message is the response to this request. All responses from resources that support such signature negotiation SHOULD either be uncacheable or contain a Vary header field that lists Accept-Signature, in order to prevent a cache from returning a response with a signature intended for a different request.

But apart from that and an oblique mention of lazy caching in the security considerations, we remain pretty silent about what to do about cache for both request and response. Maybe that's ok, but I want to make sure we don't need to say something more specific. For example:

  • If a request is signed, is it OK to return a cached response? Do you need to check the signature on the request at the cache?
  • If a response is signed, is it OK to return that signed response from a cache?

@mnot
Copy link
Member

mnot commented Sep 9, 2022

I think the current text works fine; it should be OK for responses to be cacheable as long as that advice is followed.

Your questions are a bit malformed -- we can't create special rules for caches regarding signatures, because they're generic software that's already widely deployed.

@jricher
Copy link
Contributor Author

jricher commented Sep 14, 2022

OK, closing the issue based on that feedback.

@jricher jricher closed this as completed Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss A candidate for discussion at a meeting signatures
Development

No branches or pull requests

2 participants