json2yaml-config

command
v0.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL