push-nrwyxtxvlsqn #2
Loading…
Reference in a new issue
No description provided.
Delete branch "push-nrwyxtxvlsqn"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Improve documentation across the crate, standardize error handling with a new `Permission` variant, and introduce a `TODO.md` file to track future maintenance tasks including API breakage risks and dependency updates. - Add `src/TODO.md` to categorize issues into API breakages and non-breaking changes, noting migration from `serde_yaml` 0.9 and documentation language consistency - Update `src/error.rs` to add `Permission { message: String }` variant to `PmoConfigError` and update `Result` type alias - Modify `src/config.rs` to handle missing files as new configurations in `load` and improve error handling in `get_managed_dir` - Add TODO comments in `src/encryption.rs` regarding deprecated `wmic` on Windows and nonce derivation logic - Update `src/openapi.rs` to set API version to "0.1.0" and describe the REST API purpose in French - Document `src/spec.rs` prefix validation at load time and mark `key_salt`/`nonce_salt` for internal visibility - Note inconsistencies in `src/typed.rs` regarding number handling and null key treatment in `get_number_or_set` - Add TODOs in `src/global.rs` for integration tests and suggest `try_get_config` to avoid panics - Update `src/lib.rs` to highlight missing documentation for public modules and warn about `missing_docs`Update Makefile to use --all-features for tests and docs, remove obsolete TODOs, and align encryption tests with a new oracle using MONAPP. - .crate-kit/crate.mk: Add `--all-features` to `debug`, `test-doc`, `doc`, and `doc-build` commands. - TODO.md: Remove three TODO comments regarding tokio dependencies, test behavior, and README compilation. - src/encryption.rs: Update `test_known_answers_*` tests to use `AppSpec::new("MONAPP", "")`; update `KNOWN_ANSWERS` ciphertexts; clarify that vectors are generated by an independent oracle with a fixed UUID.Introduce a new `api` feature exposing a REST interface for configuration management, while refactoring the core library to use a tree-based storage model with strict typing. The crate now enforces machine-bound encryption, provides atomic file operations, and exposes detailed error contexts for debugging. - Add `api` feature exposing `GET /api/config`, `GET /api/config/{path}`, and `POST /api/config` routes via Axum, with documentation in `src/openapi.rs` and `api/0.2.0.json`. - Refactor configuration storage into `src/tree.rs`, moving `env_overrides` from `src/config.rs` and implementing key lowercasing, null removal, and merge logic. - Update `src/config.rs` to use the new tree model, adding atomic save operations and environment override handling via `effective` and `lock`. - Introduce typed readers in `src/typed.rs` (`get_integer`, `get_bool_or_set`) that treat absent values as `None` and enforce type safety during reads. - Enhance error handling in `src/error.rs` with specific variants for YAML, JSON, and encryption errors, using French messages and context-aware IO errors. - Implement machine-bound encryption in `src/encryption.rs`, checking `/etc/machine-id` and requiring `encrypted:` prefixes for decryption. - Update global configuration management in `src/global.rs` with `try_get_config` to handle initialization order safely and prevent duplicate specs. - Add comprehensive tests in `tests/global.rs` and `src/config_tests.rs` for atomic saves, null handling, and single-process configuration loading. - Bump version to 0.2.0 in `Cargo.toml`, `.crate-kit/VERSION`, and `ReleaseNotes/version-0.1.1.md`. - Update `README.md` to reflect new API routes, `init_in` usage, and environment override behavior.