Authentication
All Vmake Labs business APIs (config, quota, and tools) authenticate with a signature made from an Access Key (AK) and Secret Key (SK). OSS uploads use separate temporary credentials returned by the token policy API.
Get credentials
- Create a key pair on the API keys page of the Vmake Labs developer center to get an Access Key (AK) and Secret Key (SK).
- The AK is sent in requests. The SK is only used locally to compute signatures and must never appear in request bodies or logs.
Signature headers
Compute the signature from the headers and body you chose for the request, then add Authorization. The table follows the signing script in the HTTP API quick start.
Request headers
When you call the config or quota APIs, you can describe your caller in the request headers. All of these headers are optional, and requests without them succeed. The Python SDK sends them automatically.
Include every X-Agent-* header you actually send in SignedHeaders, and sign with the same header values you send.
Clock sync
- The server checks the difference between
X-Sdk-Dateand server time. - Enable NTP on your containers and servers. A skew outside the allowed window results in a 401.
Certificates on macOS
Python requests uses the certifi CA bundle, which can fail on some macOS setups because of a missing intermediate certificate (curl and the system Keychain work). If you see SSLError: certificate verify failed, you can:
- Upgrade
certifi:pip install -U certifi. - Install
truststore(Python 3.10 or later) to use system certificates:pip install truststore, then calltruststore.inject_into_ssl()at startup.
If credentials leak
- Treat the SK like a password. Keep it only in a managed secret store or your CI secret store.
- Never log the full
Authorizationheader or the SK. Check request headers and bodies for secrets before sharing logs. - If a key leaks, delete it in the developer center right away and create a new one.