Add versioned Audita config support

This commit is contained in:
2026-05-13 12:36:20 +00:00
parent ebbd2c8a63
commit 9a77a0cd0b
11 changed files with 1539 additions and 32 deletions

View File

@@ -40,6 +40,7 @@ CLI help:
```sh
audita --help
audita process --help
audita config --help
```
## Test
@@ -65,6 +66,16 @@ audita process transcript.json \
--report-json report.json
```
Recommended config-based run:
```sh
audita process transcript.json \
--glossary glossary.yaml \
--config audita.yml \
--output corrected.json \
--report-json report.json
```
Explicit module override:
```sh
@@ -116,8 +127,18 @@ For subprocess orchestration guidance, see [`docs/subprocess-operations.md`](doc
Precedence:
1. defaults
2. environment (`AUDITA_*`)
3. CLI flags
2. config file (`--config`, `AUDITA_CONFIG`, or `/etc/audita/config.yml` when present)
3. environment (`AUDITA_*`)
4. CLI flags
Config commands:
```sh
audita config validate --config audita.yml
audita config print-effective --config audita.yml
```
For full config-file schema and examples, see [`docs/configuration.md`](docs/configuration.md).
### Modules