Skip to content

fix(guest-agent): reject inverted certificate validity - #894

Merged
kvinwang merged 1 commit into
masterfrom
codex/fix-guest-agent-cert-validity
Aug 4, 2026
Merged

kvinwang merged 1 commit into
masterfrom
codex/fix-guest-agent-cert-validity

Conversation

@kvinwang

@kvinwang kvinwang commented Jul 31, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Certificate parsing did not reject not_before > not_after. Such a certificate can never be valid but was accepted into configuration and failed only when TLS attempted to use it.

Root cause and fix

Validate validity ordering and reject every certificate whose end precedes its start.

Implementation

The branch records the following focused implementation work:

  • fix(guest-agent): reject inverted certificate validity

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-cert-validity: 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.

Copilot AI review requested due to automatic review settings July 31, 2026 03:01

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 45bd26d into master Aug 4, 2026
15 checks passed
@kvinwang
kvinwang deleted the codex/fix-guest-agent-cert-validity branch August 7, 2026 13:46
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