Skip to content

Add missing valid values to extra_access_log_fields validation - #583

Open
lodener wants to merge 1 commit into
cloudfoundry:developfrom
lodener:fix-extra-access-log-fields-validation
Open

Add missing valid values to extra_access_log_fields validation#583
lodener wants to merge 1 commit into
cloudfoundry:developfrom
lodener:fix-extra-access-log-fields-validation

Conversation

@lodener

@lodener lodener commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

The router.logging.extra_access_log_fields property in the gorouter spec documents these available fields:

backend_time, caller_cf_app, caller_cf_org, caller_cf_space, dial_time, dns_time, failed_attempts, failed_attempts_time, local_address, route_policy, tls_sni, tls_time

However, the validation list in jobs/gorouter/templates/gorouter.yml.erb only allows a subset:
backend_time, dial_time, dns_time, failed_attempts, failed_attempts_time, local_address, tls_time

As a result, setting any of caller_cf_app, caller_cf_org, caller_cf_space, route_policy or tls_sni (as documented in the spec) makes template rendering fail with:

router.logging.extra_access_log_fields ([...]) contains invalid values, valid are [...]

This PR adds the five missing values to the validation list so the template accepts everything the spec documents. Only the validation list changed; the values are passed through to gorouter as before.

Backward Compatibility

Breaking Change? No

This only widens the set of accepted values. Deployments that render today keep rendering identically, and deployments that previously failed on documented field names will now succeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant