Skip to content

Configuration reference

The scimply serve command loads a YAML config file (default scimply.yaml, override with -c).

All fields are optional — omitted fields use the defaults listed below.

server:
addr: ":8080" # listen address
base_path: "/scim/v2" # URL prefix for all SCIM endpoints
base_url: "" # public URL of the SCIM root for Location / meta.location, e.g. "https://idp.example.com/scim/v2" (defaults to the request Host)
read_timeout: "5s"
write_timeout: "10s"
shutdown_timeout: "30s" # graceful shutdown window on SIGINT/SIGTERM
default_page_size: 100
max_page_size: 1000
max_bulk_ops: 100
max_body_size: 1048576 # bytes; larger request bodies get 413
max_bulk_payload_size: 1048576 # bytes; /Bulk body limit, advertised as bulk.maxPayloadSize
tls:
cert_file: "" # path to TLS certificate (PEM)
key_file: "" # path to TLS private key (PEM)

TLS is enabled when both cert_file and key_file are set.

log:
level: "info" # debug | info | warn | error
format: "json" # json | text

Logs are written to stderr.

audit:
type: "none" # none | json
output: "stdout" # stdout | stderr | /path/to/file.ndjson

When type is json, each SCIM operation is written as an NDJSON line. Output defaults to stdout; set a file path to write to disk.

auth:
type: "none" # none | bearer_token
token_env: # environment variables holding accepted tokens
- "SCIM_TOKEN"
token_files: # files holding accepted tokens (e.g. mounted secrets)
- "/run/secrets/scim_token"
tokens: # plain-text tokens (avoid in production)
- "secret-token-1"

Tokens from all three sources are accepted and compared in constant time. Startup fails if a referenced variable is unset or a file is missing or empty.

store:
type: "memory" # memory | postgres | mysql | mongodb | scim

No additional fields. Data is lost on restart.

store:
type: "postgres"
postgres:
dsn: "postgres://user:pass@localhost:5432/scimdb"
table_prefix: "scim_"
max_conns: 10
min_conns: 1
conn_timeout: "30s"
auto_migrate: true
store:
type: "mysql"
mysql:
dsn: "user:pass@tcp(localhost:3306)/scimdb?parseTime=true"
table_prefix: "scim_"
max_conns: 10
auto_migrate: true
store:
type: "mongodb"
mongodb:
uri: "mongodb://localhost:27017"
database: "scimdb"
collection_prefix: "scim_"
timeout: "30s"
auto_migrate: true

Forwards all operations to an upstream SCIM server.

store:
type: "scim"
scim:
base_url: "https://upstream.example.com/scim/v2"
token: "upstream-bearer-token"
version: "" # set to "v1" or "1.1" for a SCIM 1.1 upstream
timeout: "30s"