Named value transitive dependency not being extracted when used only in backend credentials header
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 66/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- azure, typescript
Línea de trabajo
Start with the apiops extract entry point and trace how it discovers transitive dependencies from backends and named values. Compare that path with the policy reference behavior described in the issue; done means a named value referenced only in a backend credential header is extracted too.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Command that triggered the bug
apiops extract
Expected behavior
When extracting transitive dependencies from an API a Named Value that is referenced in a Backend credential header should also be extracted.
Example backend:
{
"id": "redacted",
"type": "Microsoft.ApiManagement/service/backends",
"name": "function-backend",
"properties": {
"title": null,
"description": "function app backend",
"type": "Single",
"url": "https://function-test.azurewebsites.net/api",
"protocol": "http",
"credentials": {
"query": {},
"header": {
"x-functions-key": [
"{{function-test-key}}"
]
}
},
"tls": {
"validateCertificateChain": false,
"validateCertificateName": false
}
}
}
The Named value function-test-key is not being extracted.
Actual behavior
When running apiops-extract the Backend is being extracted as a transitive dependency, but the Named value function-test-key is not being extracted which is used as header in the backend.
To test this if we add:
<set-variable name="testVar" value="{{ function-test-key }}" />
to the API policy, the Named value will then be automatically extracted as expected.
However it should also extract the Named value even if the only reference is in the Backend credentials.
apiops CLI version
1.0.4
Environment details
Azure devops
CI/CD environment
None
Is this bug blocking you?
None
- Lenguaje dominante
- TypeScript
- Estrellas
- 29
- Forks
- 11
- Merge medio
- 1 d 15 h
- PR fusionados (30 d)
- 15
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
- Sin 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 Azure/apiops-cli
-
type:question
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Azure/apiops-cli#277 ·
Los mantenedores suelen responder en 1 día
-
stale type:documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 94/100
Azure/apiops-cli#250 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Documentation P2 stale
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Azure/apiops-cli#24 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
type:bug
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
Azure/apiops-cli#317 ·
Los mantenedores suelen responder en 1 día
-
type:feature
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
Azure/apiops-cli#316 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Azure/apiops-cli
Issues similares
-
bug DUP Reservations
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
bcgov/reserve-rec-public#952 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
daufderheide/racecoordinator_ai#948 ·
Los mantenedores suelen responder en 1 día
-
Bug pulumi/pulumi
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug priority:high
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
api bug claude
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
diegosouzapw/OmniRoute#15764 ·
Los mantenedores suelen responder en 2 días