Skip to content

Installation

Production installation guide for JITSudo.

  • PostgreSQL 15+
  • Go 1.25+ (if building from source)
  • AWS Identity Center configured in your organization
  • An OIDC provider (e.g., Okta, Auth0, Google Workspace, Keycloak, Dex)

The simplest production deployment. See Docker Compose for details.

Build all three binaries:

Terminal window
git clone https://github.com/jitsudo/jitsudo.git
cd jitsudo
make build

This produces three binaries in bin/:

BinaryDescription
bin/serverHTTP API server
bin/workerBackground job processor
bin/migrateDatabase migration runner

Run migrations, then start the server and worker:

Terminal window
./bin/migrate
./bin/server
./bin/worker # in a separate process

Both the server and worker require the same DATABASE_URL and share most configuration. The worker additionally requires IC_INSTANCE_ARN to provision AWS assignments.

If modifying the API spec or SQL queries, regenerate code:

Terminal window
make generate

This runs two generators:

  1. oapi-codegen — OpenAPI spec → Go server interfaces (internal/api/api.gen.go)
  2. sqlc — SQL queries → type-safe Go database code (internal/store/db/)