Skip to content

Conversation

@RomneyDa
Copy link
Collaborator

@RomneyDa RomneyDa commented Jan 13, 2026

Description

CLI was filtering secrets out in a way that prevented the proxy being used for unrendered secrets
Also updated config unrolling to use extractFQSNMap for injected blocks, which is more semantic


Continue Tasks

Status Task Actions
▶️ Queued Update docs on PR View
▶️ Queued Optimize Website Performance View

Powered by Continue


Summary by cubic

Fixes CLI secret resolution so unrendered injected block secrets use the proxy instead of being filtered out. Also updates block injection to generate proper FQSNs, ensuring secrets are correctly namespaced for proxy resolution.

  • Bug Fixes
    • CLI: Check local env first; call API only for unresolved; keep all found API results (even without value) for models_add_on/free_trial proxying; ignore NotFound; handle API errors gracefully.
    • Config unrolling: After replacing inputs with secrets, render FQSNs using extractFQSNMap and the injected block’s identifier (slug or file) so injected secrets resolve via the proxy.

Written for commit 6b3c0be. Summary will update on new commits.

@RomneyDa RomneyDa requested a review from a team as a code owner January 13, 2026 03:35
@RomneyDa RomneyDa requested review from sestinj and removed request for a team January 13, 2026 03:35
@continue
Copy link
Contributor

continue bot commented Jan 13, 2026

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

1 similar comment
@continue-staging
Copy link

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Jan 13, 2026
@github-actions
Copy link

github-actions bot commented Jan 13, 2026

✅ Review Complete

Code Review Summary

⚠️ Continue API authentication failed. Please check your CONTINUE_API_KEY.


Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 4 files

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="extensions/cli/src/CLIPlatformClient.test.ts">

<violation number="1" location="extensions/cli/src/CLIPlatformClient.test.ts:79">
P2: Test assumes env var is absent but does not clear real env, so real developer/CI env values can make the test fail flakily.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="extensions/cli/src/CLIPlatformClient.test.ts">

<violation number="1" location="extensions/cli/src/CLIPlatformClient.test.ts:344">
P2: Test is environment-dependent: does not clear OPENAI_API_KEY before asserting API fallback, so it fails when the variable exists in the runner environment.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

const resolvedBlock = parseMarkdownRuleOrConfigYaml(
const blockConfigYamlWithFQSNs = renderTemplateData(
blockConfigYamlWithSecrets,
{
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This includes block in FQSN e.g. secrets./anthropic/claude/ANTHROPIC_API_KEY rather than secrets.///ANTHROPIC_API_KEY which is needed for checking models add on eligibility

.map((r, i) => (r === undefined ? i : -1))
.filter((i) => i !== -1);

if (unresolvedIndices.length > 0) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This diff looks big but it's just reordering to check process.env for secrets and then not filter out secrets with values so that useProxyForUnrenderedSecrets can work

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Jan 13, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 13, 2026
@RomneyDa RomneyDa merged commit abff13d into main Jan 13, 2026
55 of 58 checks passed
@RomneyDa RomneyDa deleted the dallin/cli-secret-rendering-fix branch January 13, 2026 19:42
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Jan 13, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2026
@sestinj
Copy link
Contributor

sestinj commented Jan 13, 2026

🎉 This PR is included in version 1.38.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor

sestinj commented Jan 14, 2026

🎉 This PR is included in version 1.37.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm This PR has been approved by a maintainer released size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants