Team Access & Deployments

This guide covers team management and deployment. You will configure user access, set up runtime instances, and deploy your data workflows.

Organization and User Access

Loxtep uses role-based access control (RBAC) scoped to organizations and projects. Every user belongs to an organization and receives grants that determine which resources they can view and modify.

Check your current user context and grants:

loxtep whoami

The response includes your organization ID, assigned roles, and the specific projects you can access. Project-scoped operations require your user to have a grant for that project.

Team Roles

Roles define the boundaries of what team members can do:

RoleScopeCapabilities
AdminOrganizationFull access — billing, users, settings, all resources
EngineerOrganizationBuild, deploy, manage data products, workflows, entities, AI
ViewerOrganizationRead-only access; discover/read entities; run queries and execute pipelines

New users default to Viewer. Admins upgrade them via the Team page. Organizations can create custom roles by duplicating any system role and adjusting permissions.

Known issue: After you create a custom role, including Create from Template, open the role and check its permissions. The save can leave the pre-selected permissions off the new role. Add any missing permissions by hand. Tracked as #3311.

For the complete permission reference, see the Roles & Permissions guide.

Domain-Level Governance

Domains provide an additional governance boundary. Domain stewards can manage data products, quality rules, and semantic annotations within their domain without needing organization-wide admin access.

You can add, update, or remove domain members when the domain belongs to the organization on your token and any of these is true:

  • Your token includes the organizations:admin permission.
  • You have an active assignment to the system admin role in that organization. The assignment joins your user to the system role row (is_system_role, name admin). Its status is active or unset, and it is not revoked or deleted.
  • You are a platform super admin. Your token's organization is the system organization, and you have an active system super_admin assignment there. The domain must belong to that same organization.
  • You are the domain owner. domains.owner_user_id is your user id, or your domain membership role is owner.
  • Your domain membership role is steward.

A custom organization role named owner, admin, org_admin, or super_admin does not pass this check. Domain membership roles (owner, steward, engineer, member, viewer) are separate from organization role names. A domain membership of engineer, member, or viewer does not let you manage members.

A steward can add, update, and remove members. Assigning the domain membership role owner requires a domain owner or an organization admin as defined above.

Add, change, and remove domain members on the domain's Members tab under Organization → Domains. When that check fails, Loxtep returns 403 with one of these messages. They are unverified against a live environment.

Actionerror.message
Adding a domain memberOnly domain owners, stewards, and organization admins can add members
Changing a domain member's roleOnly domain owners, stewards, and organization admins can update members
Removing a domain memberOnly domain owners, stewards, and organization admins can remove members
Adding a member as owner, or changing a member's role to owner, when you cannot assign ownerOnly domain owners and organization admins can assign the owner role

List domains and their stewards:

{ "operation": "list_domains" }

Provision Runtime Instances

Runtime instances are the execution environment for workflows and data processing. Each instance runs in a specific region and scales based on workload.

Create an Instance

Provision a new runtime instance for your organization:

loxtep instances create \
  --name "production-us" \
  --region "us-east-1" \
  --type managed \
  --plan-id growth \
  --payment-method-id 550e8400-e29b-41d4-a716-446655440000 \
  --cross-account-role-arn arn:aws:iam::123456789012:role/LoxtepCrossAccountDeploymentRole

--cross-account-role-arn is the account key on connection_details.observe_api.cross_account_role_arn. Use the stack output RoleArn (LoxtepCrossAccountDeploymentRole, plus role_name_suffix when set). Record that same ARN as meter_role_arn and bus_lifecycle_role_arn on the cross_account_roles entry whose arn equals that RoleArn, with register_infrastructure. Other entries in the same AWS account keep their tier fields. Managed create stores the account key. A later register_infrastructure call that sends meter and bus ARNs copies them onto an instance that is not detached, whose candidate ARN is in that AWS account, and whose stored cross_account_role_arn is unset or equals the sent ARN. A detached instance stays unchanged. An instance in that account that names a different cross_account_role_arn stays unchanged. A later register_infrastructure call does not restore bus or workflow ARNs that detach cleared on a detached instance. Do not send api_url, stack_id, observe_api.namespace, observe_proxy_role_arn, or plan metadata (metadata.subscription, tier, plan_id, limits, subscription_details). Those are platform-owned and return 400. Send top-level --plan-id; the backend derives plan metadata. Unknown keys on the MCP flat input, HTTP body, or instance_config are a 400 Unrecognized key: "<key>". connection_details is still passthrough. observe_api is strict, so a tier field on create is Unrecognized key: "<key>". The loxtep-sdk CLI still requires all three ARNs for self-hosted (parseCreateInstanceArgs on main de6bc7c0e7380f3d1afee9556d5a5b6bd2b0dd4b: --cross-account-role-arn, --rstreams-secret-arn, --rstreams-auth-arn); this managed example does not need those flags. The mapped HTTP body shape for this managed command was run through PostInputSchema before this role-name update. The CLI invocation itself is unverified against a live CLI process.

Instance types:

  • shared — multi-tenant, suitable for development and low-volume workloads
  • managed — single-tenant data layer in Loxtep's infrastructure, guaranteed resources for production workloads
  • self-hosted — single-tenant data layer deployed to your own AWS account; the control plane remains managed by Loxtep

Deploy Projects to Instances

Once provisioned, deploy your project's workflows to the instance:

{ "operation": "deploy_project", "project_id": "<project-uuid>", "instance_id": "<instance-uuid>" }

Monitor Deployments

Track deployment status and history:

loxtep deployments list --project-id <project-uuid> --status active

Workspace Snapshots and Recovery

Create Snapshots

Create regular snapshots of your project state for point-in-time recovery:

{
  "operation": "create_snapshot",
  "description": "weekly-backup-2024-06",
  "snapshot_type": "manual"
}

Version History

Loxtep maintains a complete version history of all workspace changes. List available versions:

{ "operation": "list_versions" }

Restore in Studio with an instance selected, or via hosted MCP restore_version with both version_id (commit SHA) and instance_id (target instance workspace). Omitting instance_id fails validation.