Skip to content

[STACKED on #956] fix(kms): align Node authorization safety - #957

Merged
kvinwang merged 7 commits into
masterfrom
codex/fix-kms-node-auth-safety
Aug 6, 2026
Merged

[STACKED on #956] fix(kms): align Node authorization safety#957
kvinwang merged 7 commits into
masterfrom
codex/fix-kms-node-auth-safety

Conversation

@kvinwang

@kvinwang kvinwang commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

STACKED PR — merge #956 first.

Problem

Node-based authorization did not apply the same input, failure, and trust-safety checks as the other backend path. Backend errors or malformed decisions could be interpreted inconsistently, including unsafe fallback behavior.

Root cause and fix

Normalize Node authorization results through the same fail-closed validation and decision contract used by KMS.

Implementation

The branch records the following focused implementation work:

  • fix(kms): align Node authorization safety
  • fix(test): isolate Node authorization mocks
  • fix(kms): align Node authorization build entrypoint
  • fix(kms): align authorization validation errors
  • fix(kms): narrow authorization validation errors
  • fix(kms): resolve test upgrade artifacts
  • fix(kms): align authorization container runtime

Changed paths:

  • dstack/kms/auth-eth-bun/index.test.ts
  • dstack/kms/auth-eth-bun/index.ts
  • dstack/kms/auth-eth/script/Upgrade.s.sol
  • dstack/kms/auth-eth/src/main.test.ts
  • dstack/kms/auth-eth/src/server.ts
  • dstack/kms/auth-eth/tsconfig.json
  • dstack/kms/dstack-app/compose-dev.yaml
  • dstack/kms/dstack-app/docker-compose.yaml

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-endpoint-redaction..origin/codex/fix-kms-node-auth-safety: 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:23

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-node-auth-safety branch from 2b2914d to 8abaf22 Compare August 5, 2026 03:18
@kvinwang
kvinwang force-pushed the codex/fix-kms-node-auth-safety branch from 8abaf22 to a3444ec Compare August 5, 2026 15:42
Base automatically changed from codex/fix-kms-auth-endpoint-redaction to master August 6, 2026 01:05
@kvinwang
kvinwang force-pushed the codex/fix-kms-node-auth-safety branch from a3444ec to cc90872 Compare August 6, 2026 01:05
@kvinwang
kvinwang force-pushed the codex/fix-kms-node-auth-safety branch from cc90872 to 5fd14a3 Compare August 6, 2026 01:38
@kvinwang
kvinwang merged commit d041485 into master Aug 6, 2026
17 checks passed
kvinwang added a commit that referenced this pull request Aug 6, 2026
…reum-auth

[STACKED on #957] feat(kms): authorize from finalized Ethereum snapshots
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