diff --git a/docs/install/kubernetes.md b/docs/install/kubernetes.md index 8459564..0931474 100644 --- a/docs/install/kubernetes.md +++ b/docs/install/kubernetes.md @@ -93,4 +93,4 @@ spec: Advanced deployment is to deploy Goma Gateway using its Kubernetes Operator. -See Operator Manuel +See Operator Manual diff --git a/docs/middleware/oauth.md b/docs/middleware/oauth.md index 6208c16..13e4068 100644 --- a/docs/middleware/oauth.md +++ b/docs/middleware/oauth.md @@ -74,36 +74,3 @@ nav_order: 5 middlewares: - oauth-authentik ``` - -## Advanced Kubernetes deployment - -```yaml -apiVersion: gomaproj.github.io/v1beta1 -kind: Middleware -metadata: - name: oauth-middleware-sample -spec: - type: oauth - paths: - - /protected - - /example-of-oauth - rule: - clientId: xxx - clientSecret: xxx - # oauth provider google, gitlab, github, amazon, facebook, custom - provider: custom - endpoint: - authUrl: https://authentik.example.com/application/o/authorize/ - tokenUrl: https://authentik.example.com/application/o/token/ - userInfoUrl: https://authentik.example.com/application/o/userinfo/ - redirectUrl: https://example.com/callback - #RedirectPath is the PATH to redirect users after authentication, e.g: /my-protected-path/dashboard - redirectPath: '' - #CookiePath e.g.: /my-protected-path or / || by default is applied on a route path - cookiePath: "/" - scopes: - - email - - openid - state: randomStateString - jwtSecret: your-strong-jwt-secret | It's optional -``` \ No newline at end of file diff --git a/docs/operator-manual/gateway.md b/docs/operator-manual/gateway.md index a0f3978..118fd40 100644 --- a/docs/operator-manual/gateway.md +++ b/docs/operator-manual/gateway.md @@ -77,12 +77,3 @@ spec: targetMemoryUtilizationPercentage: 80 affinity: {} ``` -### Delete gateway -```shell -kubectl delete gateway (gatewayName) -``` -Or - -```shell -kubectl delete gateways.gomaproj.github.io (gatewayName) -``` \ No newline at end of file diff --git a/docs/operator-manual/middlware.md b/docs/operator-manual/middlware.md index a9e8a51..134b4fd 100644 --- a/docs/operator-manual/middlware.md +++ b/docs/operator-manual/middlware.md @@ -47,3 +47,50 @@ spec: - /internal/* - /actuator/* ``` +## OAuth2 + +```yaml +apiVersion: gomaproj.github.io/v1beta1 +kind: Middleware +metadata: + name: oauth-middleware-sample +spec: + type: oauth + paths: + - /protected + - /example-of-oauth + rule: + clientId: xxx + clientSecret: xxx + # oauth provider google, gitlab, github, amazon, facebook, custom + provider: custom + endpoint: + authUrl: https://authentik.example.com/application/o/authorize/ + tokenUrl: https://authentik.example.com/application/o/token/ + userInfoUrl: https://authentik.example.com/application/o/userinfo/ + redirectUrl: https://example.com/callback + #RedirectPath is the PATH to redirect users after authentication, e.g: /my-protected-path/dashboard + redirectPath: '' + #CookiePath e.g.: /my-protected-path or / || by default is applied on a route path + cookiePath: "/" + scopes: + - email + - openid + state: randomStateString + jwtSecret: your-strong-jwt-secret | It's optional +``` +## Rate Limiting + +```yaml +apiVersion: gomaproj.github.io/v1beta1 +kind: Middleware +metadata: + name: ratelimit-middleware-sample +spec: + type: ratelimit + paths: + - /* + rule: + unit: minute # or hour + requestsPerUnit: 60 +``` \ No newline at end of file