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

janus_client: Cache HPKE configs based on cache-control header #3159

Open
tgeoghegan opened this issue May 21, 2024 · 1 comment
Open

janus_client: Cache HPKE configs based on cache-control header #3159

tgeoghegan opened this issue May 21, 2024 · 1 comment

Comments

@tgeoghegan
Copy link
Contributor

Unless configs are provided to the builder, janus_client will fetch leader and helper HPKE configurations during construction and use them indefinitely, ignoring whatever cache-control HTTP header the aggregator may have provided. This is fine, since janus_client is generally used ephemerally and so whatever keys it sees will almost certainly remain valid for the lifetime in memory of the structure. But it'd be nice if we supported caching keys and automatically refetching them when they expire.

This is only particularly useful if keys are being stored somewhere besides memory, so we would want to introduce some kind of storage/cache abstraction for janus_client to use.

@tgeoghegan
Copy link
Contributor Author

If we do this for DAP HPKE configs, we should also do it for OHTTP keys.

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

No branches or pull requests

1 participant