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

control: formatted duration for config trustengine.cache.expiration #4417

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

matzf
Copy link
Contributor

@matzf matzf commented Oct 10, 2023

The trustengine.cache.expiration configuration option would accept durations as number of nanoseconds. Most likely, this was accidental, all other configuration options for durations accept formatted duration strings, with unit suffix.

Change trustengine.cache.expiration to accept (only) formatted duration strings.

This is a potentially compatibility breaking change for existing control service configuration files.
The trustengine.cache configuration block is marked as experimental and is likely not widely used, so no transition mechanism is added.


This change is Reviewable

@matzf matzf requested a review from oncilla as a code owner October 10, 2023 11:46
Copy link
Contributor

@oncilla oncilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @matzf)

@matzf matzf force-pushed the control-trust-cfg-durwrap branch 2 times, most recently from 27b77e2 to 83ada65 Compare October 10, 2023 13:16
@matzf matzf requested a review from oncilla October 12, 2023 10:10
@matzf matzf force-pushed the control-trust-cfg-durwrap branch from 77fdef1 to fbeed3d Compare October 12, 2023 12:18
Copy link
Contributor

@oncilla oncilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 3 files at r2, 2 of 2 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @matzf)

The `trustengine.cache.expiration` configuration option would accept
durations as number of nanoseconds. Most likely, this was accidental,
all other configuration options for durations accept formatted duration
strings, with unit suffix.

Change `trustengine.cache.expiration` to accept (only) formatted
duration strings.

This is a potentially compatibility breaking change for existing control
service configuration files.
The `trustengine.cache` configuration block is marked as experimental
and is likely not widely used, so no transition mechanism is added.
@matzf matzf force-pushed the control-trust-cfg-durwrap branch from fbeed3d to 3d1cc70 Compare October 16, 2023 09:14
@matzf matzf merged commit 46b055a into scionproto:master Oct 16, 2023
1 check passed
@matzf matzf deleted the control-trust-cfg-durwrap branch October 16, 2023 09:31
@matzf matzf mentioned this pull request Oct 16, 2023
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