Getting Started
Get Creddy up and running in minutes.
Installation
Download the latest release for your platform from GitHub Releases .
# macOS (Apple Silicon)
curl -LO https://github.com/getcreddy/creddy/releases/latest/download/creddy-darwin-arm64.tar.gz
tar -xzf creddy-darwin-arm64.tar.gz
sudo mv creddy /usr/local/bin/
# macOS (Intel)
curl -LO https://github.com/getcreddy/creddy/releases/latest/download/creddy-darwin-amd64.tar.gz
tar -xzf creddy-darwin-amd64.tar.gz
sudo mv creddy /usr/local/bin/
# Linux (amd64)
curl -LO https://github.com/getcreddy/creddy/releases/latest/download/creddy-linux-amd64.tar.gz
tar -xzf creddy-linux-amd64.tar.gz
sudo mv creddy /usr/local/bin/
# Linux (arm64)
curl -LO https://github.com/getcreddy/creddy/releases/latest/download/creddy-linux-arm64.tar.gz
tar -xzf creddy-linux-arm64.tar.gz
sudo mv creddy /usr/local/bin/From Source
If you have Go installed:
go install github.com/getcreddy/creddy@latestStarting the Server
creddy serverBy default, Creddy runs on http://localhost:8080.
Configuration Options
# Custom port
creddy server --port 9000
# Custom data directory
creddy server --data-dir /var/lib/creddyYour First Credential
Once the server is running, request a credential:
curl -X POST http://localhost:8080/api/v1/credentials \
-H "Content-Type: application/json" \
-d '{
"backend": "github",
"ttl": "1h",
"scopes": ["repo:read"]
}'Response:
{
"token": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9...",
"expires_at": "2024-01-15T16:00:00Z",
"backend": "github",
"scopes": ["repo:read"]
}Configuring Backends
Backends are the external services Creddy can issue credentials for. Configure them in ~/.creddy/config.yaml:
backends:
github:
type: github
token: ghp_xxxxxxxxxxxx
aws:
type: aws
access_key_id: AKIA...
secret_access_key: ...
region: us-east-1See Concepts for more on how backends work.
Next Steps
- Learn about Concepts like backends, scopes, and TTLs
- Explore the API Reference for all endpoints
- Check out the CLI Reference for command-line usage
Last updated on