Skip to content

[common-go] Support rate limiting by enum key #16899

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

Merged
merged 1 commit into from
Mar 17, 2023
Merged

Conversation

WVerlaek
Copy link
Member

@WVerlaek WVerlaek commented Mar 17, 2023

Description

Support gRPC rate limiting on keys that are enums

Related Issue(s)

Allows us to rate limit by workspace type here https://github.com/gitpod-io/ops/issues/6831

How to test

Tested in a preview env, by configuring a rate limit on ws-manager-mk2's SetTimeout endpoint, key-ed on the type enum field:

"/wsman.WorkspaceManager/SetTimeout": {
  "block": true,
  "bucketSize": 1,
  "refillInterval": "30s",
  "key": "type",
  "keyCacheSize": 10
}

Release Notes

NONE

Documentation

Build Options:

  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish Options
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer Options
  • with-ee-license
  • with-dedicated-emulation
  • with-ws-manager-mk2
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated

Preview Environment Options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

Copy link
Member

@easyCZ easyCZ left a comment

Choose a reason for hiding this comment

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

legit

Message: &apipb.Api{},
Path: "name",
Expectation: Expectation{Found: true},
},
{
Name: "enum field",
Copy link
Member

Choose a reason for hiding this comment

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

👍

@roboquat roboquat merged commit 5cf9fca into main Mar 17, 2023
@roboquat roboquat deleted the wv/rate-limit-enum-key branch March 17, 2023 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants