Skip to main content
The SDK automatically creates secure Git URLs with embedded JWT authentication.

Options

string
Array of permissions. Defaults to ["git:read", "git:write"].
string
Token TTL. Token TTL in seconds. Defaults to 1 year.
object[]
Ordered ref policy rules. Each entry is { pattern, ops? }. Code Storage uses the first rule that matches the target ref.An entry with no ops permits the matched ref. Code Storage treats a pattern without refs/ as a branch name.Use ref_policies in Python. Use RefPolicies with storage.RefPolicyList in Go.Available operations:See Ref Policies for full details.

Available Permissions

Ephemeral Remote URL

Use getEphemeralRemoteURL() (TypeScript), get_ephemeral_remote_url() (Python), or EphemeralRemoteURL() (Go) to generate URLs that point to the ephemeral namespace. Use this namespace for isolated refs that must not sync to an upstream host. See Ephemeral Namespace and getEphemeralRemoteURL() reference for details.

Import Remote URL

Use getImportRemoteURL() (TypeScript), get_import_remote_url() (Python), or ImportRemoteURL() (Go) to generate URLs that point to the +import push namespace. Pushing to this URL triggers immediate cold-storage archival after pack distribution. See the Import Namespace guide and getImportRemoteURL() reference for details.

Response

Returns a string containing the HTTPS Git remote URL with embedded JWT authentication:
For ephemeral URLs:
For import URLs: