v0.1.1 (2026-03-27)
Features
- add webhook signature verification utilities (e97b3a6)
- add is-allowed API (1fa61f0)
- add structured error codes and idempotency support across all SDKs (2dd6d0b)
- add ReplicateAppCVM for app-scoped replica creation (22acec1)
- add Region field to ProvisionCVMRequest (ab5eaf1)
- add visibility and storage fields to ComposeFile struct (0443f82)
- enhance SDK types for Terraform provider integration (ba9ecb4)
Bug Fixes
- add timestamp freshness check to VerifyWebhookSignature (7e714bd)
- preserve endpoint instance and error detail values (d3fd65f)
- make WatchCVMState MaxRetries default to unlimited (c4b7eb4)
v0.1.0
Initial release The first public release of the Phala Cloud Go SDK, providing full coverage of the Phala Cloud REST API.Features
- Client initialization with functional options pattern (
NewClient,WithAPIKey,WithBaseURL, etc.) - CVM lifecycle — provision, commit, start, stop, shutdown, restart, delete, replicate
- CVM configuration — update Docker Compose, pre-launch scripts, resources, visibility, env vars, OS images
- Multi-field patch —
PatchCVMandConfirmCVMPatchfor atomic multi-field updates with on-chain confirmation support - Real-time state watching —
WatchCVMStatevia SSE with Go channels, automatic reconnection, and configurable retries - App management — list apps, get info, query CVMs, revisions, attestations, and device allowlists
- Workspace operations — list workspaces, get details, query nodes and quotas
- KMS — list servers, get info, fetch encryption public keys, query on-chain details
- SSH key management — list, create, delete, import from GitHub profile, sync from linked GitHub account
- Automatic retries — exponential backoff (1s base, 20s cap) for 409/429/503 responses
- Structured error handling —
APIErrorwith classification methods, error codes, suggestions, and documentation links - CVM ID resolution — automatic normalization of UUIDs, app IDs, hashed IDs, and names
- Pointer helpers —
String(),Int(),Int64(),Float64(),Bool()for optional fields - Environment variable fallbacks —
PHALA_CLOUD_API_KEYandPHALA_CLOUD_API_PREFIX
Requirements
- Go 1.25 or later
- API version:
2026-01-21

