Skip to content

fix(provider): keep Veryfront Cloud credentials internal - #4167

Merged
kwakayama merged 1 commit into
mainfrom
codex/propose-fix-for-exposed-api-token-vulnerability
Aug 25, 2026
Merged

fix(provider): keep Veryfront Cloud credentials internal#4167
kwakayama merged 1 commit into
mainfrom
codex/propose-fix-for-exposed-api-token-vulnerability

Conversation

@kojiwakayama

Copy link
Copy Markdown
Contributor

Motivation

  • A public provider barrel exposed credential-bearing cloud helpers such as getVeryfrontCloudBootstrap and getCurrentVeryfrontCloudContext, which can disclose host/request-scoped apiToken to tenant code and violate project env isolation.

Description

  • Remove the credential-bearing exports from the public provider barrel in src/provider/index.ts so cloud bootstrap and context helpers are not reachable via veryfront/provider.
  • Update internal framework and CLI call sites to import cloud internals from their internal module paths (for example #veryfront/provider/veryfront-cloud/context.ts and #veryfront/platform/cloud/resolver.ts) instead of the public barrel.
  • Add a regression test src/provider/index.test.ts that asserts the public provider export surface does not include the internal cloud bootstrap and context helpers.
  • Preserve all public model/provider APIs and surface behavior unrelated to the cloud credential exports.

Testing

  • Ran static verification that the provider barrel excludes credential-bearing exports using a Python check against src/provider/index.ts, and the check passed.
  • Ran a static scan to verify internal call sites do not import cloud internals from the public barrel, and the check passed.
  • Ran git diff --check and git diff --cached --check to validate the workspace and staged changes with no issues, and both passed.
  • deno fmt and the repository test suite were not executed because the deno executable is unavailable in this environment and attempts to download the pinned Deno binary failed with HTTP 403, so formatting and unit tests must be run in CI or a developer environment with Deno available. The added regression test src/provider/index.test.ts will run in CI where Deno is present.

Codex Task

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kojiwakayama has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 51 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: edeb2d85-d26a-4b7b-abd0-797f563c0e16

📥 Commits

Reviewing files that changed from the base of the PR and between a2a3938 and 6cbae26.

📒 Files selected for processing (15)
  • cli/commands/eval/command.test.ts
  • cli/commands/eval/command.ts
  • docs/api-reference/veryfront/agent.md
  • docs/api-reference/veryfront/provider.md
  • scripts/docs/verify-npm-exports.mjs
  • scripts/docs/verify-npm-node.mjs
  • src/agent/factory-call-context.test.ts
  • src/agent/hosted/cloud-chat-execution-preparation.ts
  • src/agent/hosted/context-summary-generator.ts
  • src/platform/cloud/resolver.test.ts
  • src/provider/index.test.ts
  • src/provider/index.ts
  • src/provider/veryfront-cloud/shared.test.ts
  • src/runs/runs-client.test.ts
  • src/workflow/blob/veryfront-cloud-storage.test.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7c5529d2e5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/provider/index.ts
@kwakayama
kwakayama force-pushed the codex/propose-fix-for-exposed-api-token-vulnerability branch from 7c5529d to ae77dc8 Compare August 25, 2026 15:56

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kojiwakayama has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae77dc8b43

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/provider/index.ts

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kojiwakayama has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@kwakayama kwakayama added the needs-human-input Maintainer action required label Aug 25, 2026
@kwakayama

Copy link
Copy Markdown
Contributor

Public barrel and tests are fixed, but the underlying credential boundary is not complete while tenant code can directly resolve #veryfront/provider/veryfront-cloud/context.ts. Hold for the same internal-module provenance restriction required by #4166.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 63f1a40226

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread cli/commands/eval/command.ts Outdated
@github-actions

Copy link
Copy Markdown

📦 Client bundle boundary

Entrypoint Modules Source size Server leaks
src/index.client.ts 330 1972 KiB ✅ 0

A server module in a client graph aborts hydration in the browser. New leaks fail CI; known leaks are tracked in scripts/lint/client-bundle-baseline.json to burn down.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kojiwakayama has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@kojiwakayama
kojiwakayama force-pushed the codex/propose-fix-for-exposed-api-token-vulnerability branch from e46ef4b to 3b8d40f Compare August 25, 2026 17:36

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kojiwakayama has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

Squashed from:
- fix(provider): keep cloud credentials internal
- test(provider): import cloud context from internal module
- fix(cli): use relative src imports for cloud internals in eval command
@kojiwakayama
kojiwakayama force-pushed the codex/propose-fix-for-exposed-api-token-vulnerability branch from 3b8d40f to 6cbae26 Compare August 25, 2026 17:40

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kojiwakayama has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@sonarqubecloud

Copy link
Copy Markdown

@kojiwakayama

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 6cbae26168

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@kwakayama
kwakayama enabled auto-merge August 25, 2026 19:59
@kwakayama
kwakayama added this pull request to the merge queue Aug 25, 2026
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Merged via the queue into main with commit 0c91edf Aug 25, 2026
57 checks passed
@kwakayama
kwakayama deleted the codex/propose-fix-for-exposed-api-token-vulnerability branch August 25, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aardvark needs-human-input Maintainer action required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants