Skip to content

Commit 74f9943

Browse files
committed
change name to statesman
1 parent 78111a6 commit 74f9943

File tree

10 files changed

+26
-26
lines changed

10 files changed

+26
-26
lines changed

taco/AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ opentaco/
3939
├─ Makefile # build/lint/test/svc/cli/prov targets
4040
├─ .golangci.yml # linters config
4141
├─ cmd/
42-
│ ├─ opentacosvc/ # service entrypoint (Echo HTTP server)
42+
│ ├─ statesman/ # service entrypoint (Echo HTTP server)
4343
│ └─ taco/ # CLI entrypoint (Cobra)
4444
│ └─ commands/ # CLI commands package (keeps root main thin)
4545
├─ internal/
@@ -124,7 +124,7 @@ In this repo these commands are fully implemented and call the service. For M1-o
124124
- README.md: purpose, how to run service/CLI, where provider lives, constraints (no side effects outside opentaco/).
125125
- Makefile: build, lint, test, svc, cli, prov targets.
126126
- .golangci.yml: baseline linter configuration.
127-
- cmd/opentacosvc/: main.go bootstraps Echo; /healthz and /readyz → 200; wire API/backends.
127+
- cmd/statesman/: main.go bootstraps Echo; /healthz and /readyz → 200; wire API/backends.
128128
- internal/api/: routes registrar (only wiring).
129129
- internal/unit/: Management API handlers (CRUD, lock/unlock, upload/download).
130130
- internal/backend/: Terraform HTTP backend (GET/POST/PUT/LOCK/UNLOCK).
@@ -207,7 +207,7 @@ The repository includes working functionality beyond Milestone 1 for demos and i
207207
- Flags: `--dir`, `--system-unit`, `--force`, `--no-create`.
208208
209209
- Suggested Demo Flow
210-
1. Start service on S3: set `OPENTACO_S3_BUCKET`, `OPENTACO_S3_REGION`, `OPENTACO_S3_PREFIX`, run `./opentacosvc`.
210+
1. Start service on S3: set `OPENTACO_S3_BUCKET`, `OPENTACO_S3_REGION`, `OPENTACO_S3_PREFIX`, run `./statesman`.
211211
2. Run `./taco provider init opentaco-config --server http://localhost:8080`.
212212
3. `cd opentaco-config && terraform init && terraform apply -auto-approve`.
213213
4. Verify via `taco unit ls` and S3 listing of `__opentaco_system/` and `myapp/prod/`.

taco/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ build: build-svc build-cli build-prov ## Build service, CLI, and provider
1010

1111
build-svc: ## Build the OpenTaco service
1212
@echo "Building OpenTaco service..."
13-
cd cmd/opentacosvc && GOWORK=off go build -o ../../opentacosvc .
13+
cd cmd/statesman && GOWORK=off go build -o ../../statesman .
1414

1515
build-cli: ## Build the taco CLI
1616
@echo "Building taco CLI..."
@@ -24,7 +24,7 @@ install: install-svc install-cli ## Install service and CLI
2424

2525
install-svc: ## Build the OpenTaco service
2626
@echo "Installing OpenTaco service..."
27-
cd cmd/opentacosvc && GOWORK=off go install .
27+
cd cmd/statesman && GOWORK=off go install .
2828

2929
install-cli: ## Build the taco CLI
3030
@echo "Installing taco CLI..."
@@ -33,7 +33,7 @@ install-cli: ## Build the taco CLI
3333
# Run components
3434
svc: build-svc ## Run the OpenTaco service
3535
@echo "Starting OpenTaco service on :8080..."
36-
./opentacosvc
36+
./statesman
3737

3838
cli: build-cli ## Build and show CLI help
3939
@echo "Taco CLI built. Run ./taco --help for usage"
@@ -42,7 +42,7 @@ cli: build-cli ## Build and show CLI help
4242
# Development
4343
test: ## Run tests
4444
@echo "Running tests..."
45-
cd cmd/opentacosvc && go test ./...
45+
cd cmd/statesman && go test ./...
4646
cd cmd/taco && go test ./...
4747
cd pkg/sdk && go test ./...
4848
cd providers/terraform/opentaco && go test ./...
@@ -53,15 +53,15 @@ lint: ## Run linters
5353

5454
clean: ## Clean build artifacts
5555
@echo "Cleaning build artifacts..."
56-
rm -f opentacosvc taco terraform-provider-opentaco
56+
rm -f statesman taco terraform-provider-opentaco
5757
rm -rf .devdata/*
5858
find . -name "*.test" -delete
5959
find . -name "*.out" -delete
6060

6161
# Initialize modules
6262
init: ## Initialize Go modules
6363
@echo "Initializing Go modules..."
64-
cd cmd/opentacosvc && go mod init github.com/digger/opentaco/cmd/opentacosvc && go mod tidy
64+
cd cmd/statesman && go mod init github.com/digger/opentaco/cmd/statesman && go mod tidy
6565
cd cmd/taco && go mod init github.com/digger/opentaco/cmd/taco && go mod tidy
6666
cd pkg/sdk && go mod init github.com/digger/opentaco/pkg/sdk && go mod tidy
6767
cd providers/terraform/opentaco && go mod init github.com/digger/opentaco/providers/terraform/opentaco && go mod tidy

taco/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ make svc
4848
Auth is enabled by default. To temporarily bypass it (e.g., provider dev):
4949

5050
```bash
51-
./opentacosvc -auth-disable -storage memory
51+
./statesman -auth-disable -storage memory
5252
```
5353

5454
### Use the CLI
@@ -114,7 +114,7 @@ Configure OIDC so `taco login` works and protected endpoints require login.
114114
```bash
115115
export OPENTACO_AUTH_ISSUER="https://api.workos.com/user_management"
116116
export OPENTACO_AUTH_CLIENT_ID="<WORKOS_CLIENT_ID>"
117-
./opentacosvc -storage memory
117+
./statesman -storage memory
118118
```
119119

120120
3) Login via CLI (PKCE)
@@ -135,7 +135,7 @@ Auth0 variant:
135135
```bash
136136
export OPENTACO_AUTH_ISSUER="https://<TENANT>.auth0.com" # or <region>.auth0.com
137137
export OPENTACO_AUTH_CLIENT_ID="<AUTH0_NATIVE_APP_CLIENT_ID>"
138-
./opentacosvc -storage memory
138+
./statesman -storage memory
139139

140140
# No flags needed; CLI uses discovery via /v1/auth/config
141141
./taco login --server http://localhost:8080
@@ -256,7 +256,7 @@ Steps:
256256
OPENTACO_S3_BUCKET=<bucket> \
257257
OPENTACO_S3_REGION=<region> \
258258
OPENTACO_S3_PREFIX=<prefix> \
259-
./opentacosvc
259+
./statesman
260260
261261
# 2) Scaffold the provider workspace
262262
./taco provider init opentaco-config --server http://localhost:8080
@@ -298,7 +298,7 @@ terraform {
298298
299299
### Components
300300
301-
1. **Service** (`cmd/opentacosvc/`) - HTTP server with two surfaces:
301+
1. **Service** (`cmd/statesman/`) - HTTP server with two surfaces:
302302
- Management API (`/v1`) for CRUD operations on units
303303
- Terraform HTTP backend proxy (`/v1/backend/{id}`) for Terraform/OpenTofu
304304
@@ -427,7 +427,7 @@ Note: Terraform lock coordination uses the `X-Terraform-Lock-ID` header; the ser
427427
```
428428
opentaco/
429429
├── cmd/
430-
│ ├── opentacosvc/ # Service binary
430+
│ ├── statesman/ # Service binary
431431
│ └── taco/ # CLI binary
432432
│ └── commands/ # Cobra commands package
433433
├── internal/
@@ -497,16 +497,16 @@ make clean
497497
OPENTACO_S3_BUCKET=my-bucket \
498498
OPENTACO_S3_PREFIX=opentaco \
499499
OPENTACO_S3_REGION=us-east-1 \
500-
./opentacosvc
500+
./statesman
501501
502502
# Explicit flags (optional)
503-
./opentacosvc -storage s3 \
503+
./statesman -storage s3 \
504504
-s3-bucket my-bucket \
505505
-s3-prefix opentaco \
506506
-s3-region us-east-1
507507
508508
# Force in-memory storage
509-
./opentacosvc -storage memory
509+
./statesman -storage memory
510510
```
511511
512512
## Troubleshooting

taco/agents_done/002_auth-oidc-rbac.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ opentaco/
3131
│ ├─ backend_profile_guide.md # user-facing how-to (profile + backend block)
3232
│ └─ auth_config_examples.md # issuer-specific samples (Okta/WorkOS/Keycloak/etc.)
3333
├─ cmd/
34-
│ ├─ opentacosvc/ # service main (Echo server)
34+
│ ├─ statesman/ # service main (Echo server)
3535
│ └─ taco/ # CLI main (Cobra: login, creds, state cmds)
3636
├─ internal/
3737
│ ├─ api/ # JSON management API handlers (CRUD states, locks, upload/download)

taco/agents_done/003_s3-compat-backend-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Expose an S3‑compatible HTTP surface that Terraform’s `backend "s3"` can use
114114
- `export OPENTACO_STS_KID="k1"`
115115
- `export OPENTACO_STS_HMAC_k1="<BASE64URL_SECRET_32B>"`
116116
- `export OPENTACO_STS_TTL="2m"`
117-
- `./opentacosvc -storage memory`
117+
- `./statesman -storage memory`
118118

119119
2) Login & STS
120120
- `./taco login --server http://localhost:8080`

taco/cmd/statesman/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/diggerhq/digger/opentaco/cmd/opentacosvc
1+
module github.com/diggerhq/digger/opentaco/cmd/statesman
22

33
go 1.25
44

taco/examples/cloud-block/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This example demonstrates using OpenTaco as a Terraform Cloud-compatible backend
1616
OPENTACO_S3_BUCKET=your-bucket \
1717
OPENTACO_S3_REGION=us-east-1 \
1818
OPENTACO_S3_PREFIX=opentaco/ \
19-
./opentacosvc
19+
./statesman
2020
```
2121

2222
2. **Authenticate with OpenTaco**:
@@ -135,7 +135,7 @@ To migrate existing workspaces from Terraform Cloud:
135135
### Custom Client ID
136136
Set a custom OAuth2 client ID:
137137
```bash
138-
OPENTACO_AUTH_CLIENT_ID=my-terraform-app ./opentacosvc
138+
OPENTACO_AUTH_CLIENT_ID=my-terraform-app ./statesman
139139
```
140140

141141
### RBAC Permissions

taco/examples/demo-provider/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ make build-svc build-cli build-prov
2424
OPENTACO_S3_BUCKET=<bucket> \
2525
OPENTACO_S3_REGION=<region> \
2626
OPENTACO_S3_PREFIX=<prefix> \
27-
./opentacosvc
27+
./statesman
2828
```
2929

3030
Notes:

taco/examples/dependencies/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Quick start
2424

2525
```
2626
make build
27-
./opentacosvc -auth-disable -storage memory
27+
./statesman -auth-disable -storage memory
2828
# Service on http://localhost:8080
2929
```
3030

taco/examples/s3-compat/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This example shows how to use Terraform's native `s3` backend against OpenTaco's
1111

1212
## Prerequisites
1313
- OpenTaco service running locally on `:8080` (memory storage is fine for a quick test):
14-
- `./opentacosvc -storage memory`
14+
- `./statesman -storage memory`
1515
- CLI built and logged in (saves tokens under `~/.config/opentaco/credentials.json`):
1616
- `./taco login --server http://localhost:8080`
1717
- Terraform 1.13+ (for `use_lockfile = true`).

0 commit comments

Comments
 (0)