Skip to content

Commit 722c891

Browse files
committed
fix(vmm): align admin token header with gateway
1 parent 1fb1b4b commit 722c891

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

dstack/crates/api-auth/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ Shared authentication primitives for dstack HTTP and RPC administration APIs.
1111
HTTP integrations support:
1212

1313
- `Authorization: Bearer <token>`;
14-
- a service-specific token header (`X-Admin-Token` for Gateway and
15-
`X-API-Token` for VMM);
14+
- the shared `X-Admin-Token` header used by Gateway and VMM;
1615
- `Authorization: Basic ...` backed by a bcrypt Apache htpasswd file;
1716
- optional GET-only `?token=` links for the Gateway and VMM dashboards.
1817

dstack/vmm/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async fn run_external_api(app: App, figment: Figment, api_auth: Authenticator) -
9191
api_auth,
9292
HttpAuthConfig {
9393
realm: "dstack-vmm API".into(),
94-
token_header: Some("X-API-Token".into()),
94+
token_header: Some("X-Admin-Token".into()),
9595
allow_get_query_token: true,
9696
},
9797
))

0 commit comments

Comments
 (0)