feat: paas-config.yaml validation
Metadata
Current evaluation
Adds paas-config.yaml validation during charmcraft pack to catch invalid YAML and unsupported logging formats early, currently awaiting maintainer review after 24 days of inactivity.
Suggested action: needs triage
Reason: The PR lacks labels, assignees, and maintainer comments, indicating it has not yet been assessed by the team. The author's recent pings confirm it is awaiting review, making triage the necessary next step before technical review or merging can occur.
Staleness:
35
Complexity:
30
Confidence:
90
Issue body
The 12-factor tooling accepts a configuration file `paas-config.yaml` that is read by the
`paas-charm` library. See https://canonical-12-factor-app-support.readthedocs-hosted.com/latest/reference/paas-config/
This file is written in `yaml` format, and currently it contains functionality about Prometheus scraping configuration and [logging formatting in the frameworks](https://canonical-12-factor-app-support.readthedocs-hosted.com/latest/reference/paas-config-structured-logging/).
If the file is not correct, because it is not valid `yaml` or because the keys/values are wrong, the application will get into error state, as it is invalid and the file has to be fixed and the charm packed again.
To improve the feedback loop, this PR will make the `charmcraft pack` fail if the `paas-config.yaml` is not correct `yaml`. It will also fail if the `framework_logging_format` is set to `json` for any of the frameworks where it is not supported (only Gunicorn and Uvicorn based frameworks support this option, as the other frameworks can be easily configured in the charmed application).
---
- [x] I've followed the [contribution guidelines](https://github.com/canonical/charmcraft/blob/main/CONTRIBUTING.md).
- [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/).
- [x] I've successfully run `make lint && make test`.
- [x] I've added or updated any relevant documentation.
- [ ] I've updated the relevant release notes.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| 2026-06-15 12:13:56.307622+00:00 | qwen3.6-35b-a3b-mtp-q6 |
Staleness:
35
Complexity:
30
Confidence:
90
|
needs triage | Adds paas-config.yaml validation during charmcraft pack to catch invalid YAML and unsupported logging formats early, currently awaiting maintainer review after 24 days of inactivity. |
| 2026-06-15 12:11:48.974775+00:00 | pending | — | — | — |