Metadata-Version: 2.5
Name: caisson-ops
Version: 0.1.0
Summary: Trusted operator CLI for Caisson
Author: Tetrel Security
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Requires-Python: >=3.11
Requires-Dist: caisson-tools==0.1.0
Description-Content-Type: text/markdown

# Caisson operators

`caisson-ops` administers Caisson deployments. Install it only on a **trusted
machine**. Deployment commands require a Caisson checkout and your existing
private deployment configuration. Do not put operator credentials in an agent-accessible workspace.
The operator package shares its CLI code with `caisson-tools`; it does not
install infrastructure or cloud tools.

```sh
uv tool install caisson-ops
```

## Set up

This assumes GCP infrastructure exists. For first-time provisioning, follow
`docs/deployment.md` in your Caisson checkout.

```sh
cd /path/to/caisson             # repository root
export PROJECT_ID=your-project  # explicit GCP project ID
# Set REGION and STATE_BUCKET if your deployment differs from the defaults.
gcloud auth login
gcloud auth application-default login
caisson-ops init                # initialize the state backend; does not apply
caisson-ops doctor              # check tools, login, and deployed state
caisson-ops status
```

Check the project, region, and state bucket **before** `init`. `doctor` checks
required tools including Nix, gcloud, Skopeo, OpenTofu, and Go.

## Common tasks

```sh
caisson-ops users edit            # access and quotas
caisson-ops creds edit            # shared credentials
caisson-ops config edit           # fleet environment, named egress lists, and defaults
caisson-ops image build --deploy  # build and deploy a workstation image
caisson-ops mgmt build --deploy   # build and deploy management
```

See `caisson-tools/caisson-ops/workspace-config.json.example` in your checkout for workspace config
fields and examples of default, explicit, and wildcard HTTP method grants.

Image builds require a clean, committed checkout and a trusted x86-64 Linux
builder. Running workspaces need stop/start to pick up image or workspace config
updates. Run `caisson-ops --help` for commands or `caisson-ops` for the
interactive prompt; `caisson-ops version` shows the package version and build
revision. See `docs/operations.md` in your checkout
for maintenance and recovery.

Copyright 2026 Tetrel Security. Apache-2.0 applies to `caisson-tools/`
(including `caisson-ops/`) only, not the rest of the repository.
