Repository navigation
fix(config): a config read quotes no text of a bad YAML file - #3552
Merged
Merged
Conversation
Owner
Author
|
Test results.
|
dan-petty
marked this pull request as ready for review
November 5, 2026 00:12
dan-petty
pushed a commit
that referenced
this pull request
Nov 5, 2026
🤖 I have created a release *beep* *boop* --- ## [0.57.1](v0.57.0...v0.57.1) (2026-11-05) ### Bug Fixes * **config:** a config read quotes no text of a bad YAML file ([#3552](#3552)) ([a99d1a6](a99d1a6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A config file can hold a credential. Three paths read it without the settings load, and showed text of it when PyYAML or ruamel.yaml could not load it.
write_history._mappingranyaml.safe_load. ruamel.yaml accepts a local tag such as!vault, sodevops config unsetreached PyYAML, and its error quoted the line with the value.round_trip.findandeditcaught onlyruamel.yaml.YAMLError.!!intand!!boolraisedValueErrorandKeyErrorwith the value in the message.New
config/yaml_errors.py::load_yamlraises one ConfigurationError. It names the file, the type of the error, and the line and column when the error has a mark. It quotes no text, and has no cause and no context. The settings load, the audit record, the redaction and the round trip use it.Closes #2451
Change:
openspec/changes/archive/2026-11-04-2451-config-yaml-load-error-hides-text/