Skip to content

fix(kms): reject repeated onboarding - #930

Merged
kvinwang merged 1 commit into
masterfrom
codex/fix-kms-repeated-onboarding
Aug 5, 2026
Merged

fix(kms): reject repeated onboarding#930
kvinwang merged 1 commit into
masterfrom
codex/fix-kms-repeated-onboarding

Conversation

@kvinwang

@kvinwang kvinwang commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Problem

After successful KMS onboarding, the onboarding RPC remained usable. A repeated or concurrent request could replace identity state that must remain stable after initialization.

Fix

Serialize onboarding with the existing bootstrap lock and reject onboarding when either persisted KMS identity key already exists.

The branch is rebuilt on current master. The graceful Finish shutdown behavior is already provided by #875 and is no longer part of this PR's delta. The unrelated global ra-rpc JSON response normalization has been removed.

Verification

  • cargo fmt --manifest-path dstack/Cargo.toml --all
  • cargo check --manifest-path dstack/Cargo.toml -p dstack-kms
  • cargo test --manifest-path dstack/Cargo.toml -p dstack-kms --no-run
  • git diff --check

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

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 force-pushed the codex/fix-kms-repeated-onboarding branch from 6db5a47 to 308ad3a Compare July 31, 2026 03:15
@kvinwang kvinwang changed the title [STACKED on #873] fix(kms): reject repeated onboarding [STACKED on #875] fix(kms): reject repeated onboarding Jul 31, 2026
@kvinwang
kvinwang changed the base branch from codex/fix-kms-bootstrap-once to codex/fix-kms-finish-response-order July 31, 2026 03:15
@kvinwang
kvinwang force-pushed the codex/fix-kms-repeated-onboarding branch from 308ad3a to cb9a01e Compare August 3, 2026 14:53
@kvinwang
kvinwang force-pushed the codex/fix-kms-repeated-onboarding branch from cb9a01e to 22490ad Compare August 3, 2026 16:39
@kvinwang
kvinwang force-pushed the codex/fix-kms-repeated-onboarding branch from 22490ad to 9a25fff Compare August 3, 2026 16:57
@kvinwang
kvinwang force-pushed the codex/fix-kms-repeated-onboarding branch from 9a25fff to dd852f2 Compare August 4, 2026 02:26
Base automatically changed from codex/fix-kms-finish-response-order to master August 4, 2026 03:09
@kvinwang
kvinwang force-pushed the codex/fix-kms-repeated-onboarding branch from dd852f2 to 865c50e Compare August 5, 2026 01:43
@kvinwang kvinwang changed the title [STACKED on #875] fix(kms): reject repeated onboarding fix(kms): reject repeated onboarding Aug 5, 2026
@kvinwang
kvinwang merged commit cd1b0a1 into master Aug 5, 2026
15 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