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

add auth rate limit config #78

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/neon-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: neon-proxy
description: Neon Proxy
type: application
version: 1.7.21
version: 1.7.22
appVersion: "0.1.0"
kubeVersion: "^1.18.x-x"
home: https://neon.tech
Expand Down
4 changes: 3 additions & 1 deletion charts/neon-proxy/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# neon-proxy

![Version: 1.7.21](https://img.shields.io/badge/Version-1.7.21-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml)
![Version: 1.7.22](https://img.shields.io/badge/Version-1.7.22-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml)

Neon Proxy

Expand Down Expand Up @@ -65,6 +65,8 @@ Kubernetes: `^1.18.x-x`
| serviceAccount.name | string | `""` | |
| settings.authBackend | string | `"link"` | auth method used (console|link|postgres) |
| settings.authEndpoint | string | `""` | auth endpoint, e.g. "http://console.neon/authenticate_proxy_request/" |
| settings.authRateLimits | string | `nil` | |
| settings.authRateLimitsEnabled | bool | `nil` | Whether to enable the authentication rate limiter |
| settings.awsAccessKeyId | string | `""` | (string) AWS Access Key ID |
| settings.awsRegion | string | `""` | (string) Aws region to retrieve credentials |
| settings.awsSecretAccessKey | string | `""` | (string) AWS Secret Access Key |
Expand Down
6 changes: 6 additions & 0 deletions charts/neon-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ spec:
{{- range .Values.settings.endpointRpsLimits }}
- --endpoint-rps-limit={{ . }}
{{- end }}
{{- if .Values.settings.authRateLimitsEnabled }}
- --auth-rate-limit-enabled
{{- end }}
{{- range .Values.settings.authRateLimits }}
- --auth-rate-limit={{ . }}
{{- end }}
{{- with .Values.settings.region }}
- --region={{ . }}
{{ end }}
Expand Down
6 changes: 5 additions & 1 deletion charts/neon-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,14 @@ settings:
httpPoolOptIn: true
# settings.disableDynamicRateLimiter -- (bool) Disable dynamic rate limiter
disableDynamicRateLimiter: true
# settings.endpointRpsLimit -- (list) list of rate limiters over different time intervals
# settings.endpointRpsLimit -- (list) list of rate limiters for wake_compute over different time intervals
endpointRpsLimits:
- 300@1s
- 250@10m
# settings.authRateLimitsEnabled -- (bool) Whether to enable the authentication rate limiter
authRateLimitsEnabled: null
# settings.authRateLimit -- (list) list of rate limiters over different time intervals for authentication hash iterations per IP,EP
authRateLimits: null
# settings.parquetUploadRemoteStorage -- (string) Storage location to upload the parquet files to.
parquetUploadRemoteStorage: ""
# settings.parquetUploadRowGroupSize -- (string) How many rows to include in a row group
Expand Down
Loading