Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

set cache default values as documented#460

Merged
aead merged 1 commit intomasterfrom
fix-cache-defaults
Apr 12, 2024
Merged

set cache default values as documented#460
aead merged 1 commit intomasterfrom
fix-cache-defaults

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
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants