Skip to content

fix(guest-agent): report the effective quote prefix - #864

Merged
kvinwang merged 1 commit into
masterfrom
codex/fix-guest-agent-quote-prefix
Aug 3, 2026
Merged

fix(guest-agent): report the effective quote prefix#864
kvinwang merged 1 commit into
masterfrom
codex/fix-guest-agent-quote-prefix

Conversation

@kvinwang

@kvinwang kvinwang commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Problem

The guest-agent response reported the configured quote prefix rather than the effective prefix actually used after defaults/normalization. Clients could then call the advertised endpoint and fail because it differed from the active route.

Root cause and fix

Return the resolved effective quote prefix from runtime configuration, including the defaulted value.

Implementation

The branch records the following focused implementation work:

  • fix(guest-agent): report effective quote prefix

Changed paths:

  • dstack/guest-agent/src/rpc_service.rs

Scope

This PR addresses one logical guest-agent finding. It intentionally excludes the acceptance-test infrastructure from #841 and unrelated product fixes from #840.

Dependency and merge order

This PR is based directly on master and does not require another split product PR to merge first.

Verification

  • git diff --check origin/master..origin/codex/fix-guest-agent-quote-prefix: passed.
  • The declared base was verified as an ancestor of the PR head.
  • Focused compile/check verification was run for the changed component where applicable; non-Rust packaging or configuration changes were reviewed against their exact branch delta.

Defect: TdxQuote always reported app-data even when the request selected a custom report-data prefix.

Observed symptom: the response metadata disagreed with the domain separation actually used to construct report_data.

Fix: derive the returned prefix from the effective QuoteContentType and cover default and custom prefixes.
Copilot AI review requested due to automatic review settings July 31, 2026 02:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@kvinwang
kvinwang merged commit 4e71e05 into master Aug 3, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants