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

set cache default values as documented #460

Merged
merged 1 commit into from
Apr 12, 2024
Merged

set cache default values as documented #460

merged 1 commit into from
Apr 12, 2024

Conversation

aead
Copy link
Member

@aead aead commented Apr 12, 2024

This commit fixes a bug in the cache configuration logic. As documented in https://github.com/minio/kes/blob/master/server-config.yaml#L147 KES is supposed to apply a default KES configuration when none is provided.

With this commit, a KES server (started via the kes server command) applies a default cache config, if none is set. The kes/kesconf package does not implement the default configuration since we don't want to modify the user input at this level.

@aead aead requested a review from allanrogerr April 12, 2024 12:32
@aead aead force-pushed the fix-cache-defaults branch 2 times, most recently from 60d4037 to 00e0416 Compare April 12, 2024 13:16
This commit fixes a two bugs in the cache configuration logic.

  1. KES now applies a default cache configuration as documented here:
     https://github.com/minio/kes/blob/master/server-config.yaml#L147

  2. KES now removes entry from the offline cache if no offline cache
     expiry is specified. Before, KES used to not clear the cache if
     no offline cache configuration has been specified (docs claim that
     KES disables offline caching without explicit configuration).

Signed-off-by: Andreas Auernhammer <github@aead.dev>
@aead aead force-pushed the fix-cache-defaults branch from 00e0416 to 4c61cba Compare April 12, 2024 13:16
@aead aead merged commit f7b150f into master Apr 12, 2024
7 checks passed
@aead aead deleted the fix-cache-defaults branch April 12, 2024 13:50
ramondeklein pushed a commit to ramondeklein/kes that referenced this pull request Apr 17, 2024
This commit fixes a two bugs in the cache configuration logic.

  1. KES now applies a default cache configuration as documented here:
     https://github.com/minio/kes/blob/master/server-config.yaml#L147

  2. KES now removes entry from the offline cache if no offline cache
     expiry is specified. Before, KES used to not clear the cache if
     no offline cache configuration has been specified (docs claim that
     KES disables offline caching without explicit configuration).

Signed-off-by: Andreas Auernhammer <github@aead.dev>
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.

2 participants