feat: As a user, I want to add metadata to routes, so that I can filter global plugins configuration by _meta.filter with this metadata
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
Comienza revisando la configuración de rutas existente y el comportamiento de _meta.filter del plugin global, especialmente cómo se usa actualmente $route_name. Aclara con los maintainers la forma propuesta de los metadatos de ruta y la semántica del filtrado antes de identificar los puntos de entrada de la implementación. La tarea estará terminada cuando incluya un diseño de la funcionalidad acordado y el comportamiento correspondiente para hacer coincidir metadatos en los filtros de plugins globales.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Problem description
We are using apisix with global configuration for a huge number of routes created by different teams. In this context, a global rate limit configuration plugin was deployed, but there are instances were this global configuration should be skipped in favor of a different, more permissive one.
We know it's possible to remove the global configuration and make plugin configurations shared and referenced between routes, but we want to still preserve the global rule as a default, instead of relying on routes to attach to a plugin definition, because otherwise we can't enforce that.
We came to a solution where we append special string on route names to be able to disable this global rate limit configuration on some routes, by using the _meta.filter property, and matching this special string on the $route_name variable.
Feature request
Having done this, it occurred to us that it may be useful to add metadata to a route, and be able to use it in the plugin's _meta.filter property, so we can share a common default behavior, but also skippable if requested.
I wanted to discuss if it's a common case, enough to justify this as a new feature, or maybe I'm just guessing too much and there are different solutions to this problem.
Thank you.
- Lenguaje dominante
- Lua
- Estrellas
- 17.3k
- Forks
- 3k
- Merge medio
- 4 d 16 h
- PR fusionados (30 d)
- 69
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/apisix
-
bug: an admin key injected with ${{VAR}} that contains only digits becomes a number, so the correct key gets 401Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
bug(body-transformer): runtime crash when request or response body is a JSON primitivePosiblemente ocupada @bhuvan-somisetty la tomó hace 5 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
bug: openapi-to-mcp appends a second ? to a query-suffixed path templatePosiblemente ocupada @lordcheng10 la tomó hace 5 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 2 días
-
ai-proxy forwards client `Transfer-Encoding: chunked` but sends an unchunked body (upstream 400)Posiblemente ocupada @locker95 la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
As a user, I want the opa plugin to propagate trace context (traceparent) to OPA, so that OPA spans are linked to the APISIX request tracePosiblemente ocupada @GitNimay la tomó hace 21 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/apisix#14051 · 3 comentarios ·
Los mantenedores suelen responder en 2 días
Todos los issues de apache/apisix
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dustwallow soothing spices stepAbiertobug discord guide:04-dustwallow-marsh locale:enUS lua-error triage v0.3.6
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
NaixGames/Polycosmos#79 ·
-
Add support for dropbar.nvimAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
loctvl842/monokai-pro.nvim#178 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100