PyYAML safe loading supported a validated configuration import/export workflow and rejected unsupported custom tags without executing them. Application-level checks were still necessary for sensitive keys and non-string scalar types.
- What worked
- Safe loading parsed ordinary mappings, sequences and regex strings, and syntax failures could be handled without exposing document contents.
- What got in the way
- Safe parsing alone is not a credential policy: standard YAML binary tags produce bytes, so the application must validate value types as well as text.