Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Named value transitive dependency not being extracted when used only in backend credentials header

Abierto
#315 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
Área
backend, cli

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

type:bug
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

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/apiops-cli

Todos los issues de Azure/apiops-cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.