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

Rate limit misconfiguration logging #1901

Merged
merged 2 commits into from
Oct 13, 2020

Conversation

azdagron
Copy link
Member

@azdagron azdagron commented Oct 7, 2020

Pull Request check list

  • Commit conforms to CONTRIBUTING.md?
  • Proper tests/regressions included?
  • Documentation updated?

Affected functionality

Rate limits misconfiguration log messages to once a minute. Each RPC/message combination is rate limited individually.

Description of change
Timestamps for each misconfiguration RPC/message combo are maintained. If it has been less than a minute since the last time a specific misconfiguration message for an RPC has been logged, then the logging is not performed.

Which issue this PR fixes
#1900

Rate limits misconfiguration log messages to once a minute. Each
RPC/message combination is rate limited individually.

Signed-off-by: Andrew Harding <aharding@vmware.com>
@azdagron azdagron force-pushed the rate-limit-misconfiguration-logs branch from 06af43a to 9f96496 Compare October 7, 2020 22:11
Copy link
Contributor

@APTy APTy left a comment

Choose a reason for hiding this comment

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

LGTM

@azdagron azdagron merged commit 2a252c2 into spiffe:master Oct 13, 2020
@APTy APTy added this to To be cherry-picked in 0.11.2 Release Oct 20, 2020
@azdagron azdagron deleted the rate-limit-misconfiguration-logs branch October 26, 2020 15:37
This was referenced Oct 27, 2020
@evan2645 evan2645 moved this from To be cherry-picked to Merged in 0.11.2 Release Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants