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

Use Cache-Control header to determine cache expiry time #108

Closed
wants to merge 4 commits into from

Conversation

deschuma
Copy link
Collaborator

@deschuma deschuma commented Jun 9, 2020

This PR allows PCK Cache to determine how long to cache collateral. Ordinarily, collateral should always be cached for 24 hours but PCK cache will now examine the expiration time of the collateral and notify the Azure DCAP Client how long the collateral should be cached for.

For example, if the collateral will expire in 3 hours, the cache-control header will tell Azure DCAP Client to cache the collateral for only three hours so Azure DCAP client will re-query for newer collateral in that time frame

This PR also addresses issue #114 by re-classifying errors reading environment variables to be warning instead of errors. The library is configured to operate with sensible defaults if no environment variables are defined.

@deschuma deschuma marked this pull request as ready for review June 9, 2020 23:14
@deschuma deschuma requested a review from gkostal June 9, 2020 23:29
@deschuma deschuma force-pushed the dev_deschuma_cache_from_headers branch from 02917ef to 951686b Compare July 17, 2020 20:30
@deschuma deschuma force-pushed the dev_deschuma_cache_from_headers branch from 951686b to 856b7f7 Compare July 22, 2020 04:42
@deschuma deschuma force-pushed the dev_deschuma_cache_from_headers branch from 856b7f7 to 1410d32 Compare July 22, 2020 18:22
@deschuma deschuma closed this Jul 22, 2020
@deschuma deschuma reopened this Jul 22, 2020
@deschuma deschuma closed this Jul 22, 2020
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.

1 participant