Documentation
¶
Overview ¶
json2yaml-config converts the old (pre 0.5.0) osctrl JSON configuration files into the single YAML configuration file used by osctrl-tls and osctrl-api since the YAML migration.
The old configuration was split in multiple JSON files, each one wrapped in a top-level key:
tls.json / api.json -> {"tls": {...}} service values
db.json -> {"db": {...}} PostgreSQL backend
redis.json -> {"redis": {...}} cache
jwt.json -> {"jwt": {...}} JWT for api
saml.json -> {"saml": {...}} SAML
logger_<service>.json -> {"graylog": {...}} et al, keyed by logger type
carver_<service>.json -> {"s3": {...}} S3 carver
Usage:
go run ./tools/json2yaml-config -service tls -config config/tls.json \ -db config/db.json -redis config/redis.json -output tls.yml
Click to show internal directories.
Click to hide internal directories.