Monedula
monedula-acl-rbac-converter docs menu

monedula-acl-rbac convert

Stateless extract -> plan -> emit in one call. Usage and flags for monedula-acl-rbac convert.

Reference 10 of 29

Reference for monedula-acl-rbac-converter v0.10.0

Updated 2 October 2026

On this page
usage
monedula-acl-rbac convert [flags]

One-shot file-to-file conversion for exploration and small batches: read ACLs from --input, plan against --scopes (and optional rules / principals), and emit the result to --out (default stdout).

This is the fast path. It does NOT create a run directory, does NOT apply anything to MDS, does NOT verify, and does NOT support live or k8s sources (those need state). Production migrations should use the explicit pipeline: extract -> plan -> apply -> verify -> delete-acls.

Source detection: --from is required for live/k8s/cfk directories; otherwise the file extension chooses (.yaml/.yml -> yaml, .json -> json, .csv -> csv, .sh -> script, .txt -> text).

Example: monedula-acl-rbac convert \ --from yaml --input acls.yaml \ --scopes scopes.yaml --rules rules.yaml \ --format script \ > bindings.sh

Read-only: this command does not change the cluster.

Flags

FlagTypeDefaultDescription
--fromstring text|json|yaml|csv|strimzi|cfk|script (use extract+plan workflow for live/k8s)
--inputstring Input file path
--scopesstring scopes.yaml (required)
--rulesstring Optional rules.yaml
--principalsstring Optional principals.yaml
--formatstring script script|cfk|mds-curl
--outstring Output path (default: stdout)
--varsstring Script source: vars.yaml for variable substitution
--ignore-non-addbool Script source: skip --remove/--list invocations
--cfk-namespacestring CFK ConfluentRolebinding namespace (cfk emit format)
--cfk-name-saltstring Salt mixed into binding IDs

Global flags

FlagTypeDefaultDescription
--log-formatstringtextLog output format (text|json); set MONEDULA_ACL_RBAC_LOG_FORMAT to override the default.
--log-levelstringinfoLog level (debug|info|warn|error); set MONEDULA_ACL_RBAC_LOG_LEVEL to override the default.

Examples

examples
monedula-acl-rbac convert --from yaml --input acls.yaml --scopes scopes.yaml --rules rules.yaml --principals principals.yaml > bindings.sh

Exit codes

CodeMeaning
0Success.
1Usage error: missing required flag, malformed argument, or unknown subcommand.
4Any other error: failures the CLI does not classify (for example an unreadable or invalid input file, scopes.yaml, or rules.yaml) fall back to exit code 4.