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

feat: login auth rate limite #291

Merged
merged 2 commits into from
Oct 21, 2022

Conversation

qinyer
Copy link
Contributor

@qinyer qinyer commented Oct 21, 2022

Signed-off-by: qinyer qy913726062@gmail.com

What type of PR is this?

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #286

Special notes for reviewers:

Does this PR introduced a user-facing change?


Additional documentation, usage docs, etc.:


Signed-off-by: qinyer <qy913726062@gmail.com>
@kubeclipper-bot
Copy link
Collaborator

@qinyer: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kubeclipper-bot kubeclipper-bot added kind/feature Categorizes issue or PR as related to a new feature. dco-signoff: yes do-not-merge/release-note-label-needed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 21, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #291 (1a9b390) into master (6c6b23a) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #291      +/-   ##
==========================================
- Coverage   13.23%   13.23%   -0.01%     
==========================================
  Files          98       98              
  Lines       15212    15215       +3     
==========================================
  Hits         2014     2014              
- Misses      12958    12961       +3     
  Partials      240      240              
Impacted Files Coverage Δ
pkg/cli/deploy/deploy.go 5.65% <0.00%> (-0.03%) ⬇️

@@ -30,6 +30,7 @@ import (
)

type AuthenticationOptions struct {
AuthenticateRateLimiterEnable bool `json:"authenticateRateLimiterEnable" yaml:"authenticateRateLimiterEnable"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

AuthenticateRateLimiterEnable should removed. i don't think this field is needed.

@@ -43,6 +44,7 @@ type AuthenticationOptions struct {

func NewAuthenticateOptions() *AuthenticationOptions {
return &AuthenticationOptions{
AuthenticateRateLimiterEnable: false,
AuthenticateRateLimiterMaxTries: 5,
AuthenticateRateLimiterDuration: time.Minute * 30,
Copy link
Collaborator

Choose a reason for hiding this comment

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

default value change to 10m

Signed-off-by: qinyer <qy913726062@gmail.com>
@x893675
Copy link
Collaborator

x893675 commented Oct 21, 2022

/lgtm
/approve

@kubeclipper-bot kubeclipper-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 21, 2022
@kubeclipper-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 2abe29371de33e9594addc5f9ed9870ae2518dec

@kubeclipper-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qinyer, x893675

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeclipper-bot kubeclipper-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 21, 2022
@kubeclipper-bot kubeclipper-bot merged commit 7185a4e into kubeclipper:master Oct 21, 2022
@qinyer qinyer deleted the fix-login-rate-limit-cache branch November 4, 2022 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes do-not-merge/release-note-label-needed kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

login authentication rate limiter
4 participants