Skip to content

[STACKED on #941] fix(kms): bound the authorization boot schema - #953

Merged
kvinwang merged 2 commits into
masterfrom
codex/fix-kms-auth-boot-schema
Aug 5, 2026
Merged

[STACKED on #941] fix(kms): bound the authorization boot schema#953
kvinwang merged 2 commits into
masterfrom
codex/fix-kms-auth-boot-schema

Conversation

@kvinwang

@kvinwang kvinwang commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

STACKED PR — merge #941 first.

Problem

The authorization boot payload/schema accepted unbounded or structurally unconstrained data. A malformed backend response could consume excessive resources or introduce unsupported fields/state during KMS startup.

Root cause and fix

Define and enforce the supported boot schema, including size/count bounds, before installing authorization state.

Implementation

The branch records the following focused implementation work:

  • fix(kms): bound authorization boot schema
  • fix(kms): preserve unprefixed auth measurements

Changed paths:

  • dstack/kms/auth-eth-bun/index.test.ts
  • dstack/kms/auth-eth-bun/index.ts

Scope

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

Dependency and merge order

Verification

  • git diff --check origin/codex/fix-kms-auth-locks..origin/codex/fix-kms-auth-boot-schema: 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:22

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.

Base automatically changed from codex/fix-kms-auth-locks to master August 5, 2026 03:18
@kvinwang
kvinwang force-pushed the codex/fix-kms-auth-boot-schema branch from f9e27ff to e538613 Compare August 5, 2026 03:18
@kvinwang
kvinwang merged commit 467ee97 into master Aug 5, 2026
15 checks passed
kvinwang added a commit that referenced this pull request Aug 6, 2026
…edaction

[STACKED on #953] fix(kms): redact the authorization backend endpoint
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