Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/vmm-cli-user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ Manage trusted KMS public keys for enhanced security:
./vmm-cli.py kms remove 0x1234567890abcdef...
```

The whitelist is stored in `~/.dstack-vmm/kms-whitelist.json`.
The whitelist is stored in `~/.dstack-vmm/kms-whitelist.json`; set `DSTACK_VMM_KMS_WHITELIST_PATH` to use a different file.

After a KMS root rotation, first remove the old signer with `kms remove`, then
add the new one with `kms add`. The whitelist is a flat set and the CLI cannot
Expand Down
5 changes: 4 additions & 1 deletion dstack/vmm/src/vmm-cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@

# Default config file locations
DEFAULT_CONFIG_PATH = os.path.expanduser("~/.dstack-vmm/config.json")
DEFAULT_KMS_WHITELIST_PATH = os.path.expanduser("~/.dstack-vmm/kms-whitelist.json")
DEFAULT_KMS_WHITELIST_PATH = os.environ.get(
"DSTACK_VMM_KMS_WHITELIST_PATH",
os.path.expanduser("~/.dstack-vmm/kms-whitelist.json"),
)


# VMM discovery directories
Expand Down
Loading