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

server/rotation.go: avoid displaying the "keys already rotated" error #905

Merged
merged 1 commit into from
Apr 11, 2017

Conversation

rithujohn191
Copy link
Contributor

Fixes #890.

If the user is running multiple instances of dex, it is possible that one instance can rotate the keys before another gets around to doing it. Since this is an acceptable situation, we can avoid logging this as an error.

if tNow.Before(keys.NextRotation) {
return storage.Keys{}, errors.New("keys already rotated")
Copy link
Contributor

Choose a reason for hiding this comment

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

can we have an info level log message here? Maybe explain that another server already rotated it?

Copy link
Contributor

@ericchiang ericchiang left a comment

Choose a reason for hiding this comment

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

lgtm

@rithujohn191 rithujohn191 merged commit 9b0af83 into dexidp:master Apr 11, 2017
@rithujohn191 rithujohn191 deleted the error-msg branch April 11, 2017 21:17
mmrath pushed a commit to mmrath/dex that referenced this pull request Sep 2, 2019
server/rotation.go: avoid displaying the "keys already rotated" error
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