Table of contents
Confirm format and source of truth
Generated configuration should usually be updated through its source templates.
Treat environment context as part of correctness, not an afterthought.
Validate before deployment
Redact secrets before browser workflows and rotate exposed secrets immediately.
Parse with the real consumer and perform a safe environment dry run when available.
Worked example: preserve the environment while changing a timeout
Two valid configuration files can belong to different environments. In the example below, B contains a useful timeout adjustment but also points at staging. Copying all of B into production would change the destination. The desired result takes one setting from B while retaining the production endpoint from A.
These values are fictional and contain no credentials. Before using real configuration, replace secrets with obvious placeholders and preserve a protected original. Confirm which repository, template, deployment overlay, or secret store actually owns each setting.
Source A: production configuration
endpoint: https://api.example.com
timeoutMs: 5000
retries: 2
Source B: staging experiment
endpoint: https://staging.example.com
timeoutMs: 8000
retries: 2
Reviewed production candidate
endpoint: https://api.example.com
retries: 2
timeoutMs: 8000
Make a selective configuration merge
Paste the two samples into MergeGlass and select YAML explicitly. Review the endpoint and timeout changes separately if the diff splits them into separate blocks. Keep A for the endpoint and B for the timeout, then compare the full result against the reviewed candidate.
If both settings appear inside one changed block, choosing A or B cannot express the intended combination. Edit a source copy to contain the candidate, compare it against A, and verify that only the timeout changes. Never assume that selecting both sides will combine mapping keys safely.
Use Text mode when comments, exact quoting, anchors, or presentation must be preserved. Structured normalization works on parsed values; it is not a round-trip YAML editor. It may discard comments and rewrite representation, so keep that choice separate from the operational decision.
Validate with the consumer and prepare a rollback
Parsing YAML establishes syntax, not operational safety. Check that timeoutMs is a number in the expected unit, that retries stays within the service policy, and that the deployment overlay does not replace your reviewed value. Use the real consumer’s config-check or dry-run facility when available.
For this sample, explicitly assert endpoint equals https://api.example.com, timeoutMs equals 8000, and retries equals 2. For your service, add checks for routing, credentials, feature flags, and the relevant environment. A successful parser cannot tell whether staging was intentional.
Retain the previous known-good configuration and document how to restore it. Review the applied runtime settings after deployment, since templates, environment variables, and secret injection may produce a different effective configuration from the file you compared.
Try it yourself
Keep production routing while changing a timeout
Retain the production endpoint from A and the 8000ms timeout from B. Review each changed block separately; the staging endpoint must not survive.
Try this example adds fictional sample data as a separate file review and keeps your existing reviews.
The download is a standalone practice session. Save your current work before importing it through Add or import → Import review bundle. Your own content is never included in the download.
Review checklist
- Confirm format and ownership.
- Redact secrets.
- Review related settings together.
- Validate with real consumer tooling.