Named value transitive dependency not being extracted when used only in backend credentials header
@Alexey-Zheltov is already working on this.
Since Oct 9, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 66/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- azure, typescript
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 44
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/apiops-cli
-
type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
Azure/apiops-cli#350 ·
-
stale
Difficulty 1/5 1-3 hours Newbie friendliness 84/100
Azure/apiops-cli#333 · 1 comment ·
-
extract fails when a policy uses set-backend-service backend-id="{{namedValue}}"Possibly taken @dannyward630 claimed this 37 days ago. Openstale type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Azure/apiops-cli#331 · 1 comment ·
-
Docs example says products are auto-included transitively, but they aren't extracted with `products: []`Possibly taken @cdayne claimed this 27 days ago. Openstale type:question
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Azure/apiops-cli#277 · 1 comment ·
-
Extractor mistakes set-body json response as transitive dependency which causes pipeline failureOpentype:bug
Difficulty 3/5 1-2 days Newbie friendliness 56/100
Azure/apiops-cli#349 ·
All issues in Azure/apiops-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
tashfeenahmed/freellmapi#2217 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
remotion-dev/skills#37 ·
-
gui: a narrow window's gateway key row with a line under it wraps its faded badges onto blank linesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Slider: Escape during a thumb drag keeps and commits the dragged value, unlike ui-sdk's other dragsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vercel-labs/ui#1758 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
nicobailon/pi-subagents#3425 ·
Maintainers usually reply within 1 day