Skip to content

TUN-9253: Fix list cloudflared tunnels optional fields #5589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

jcsf
Copy link

@jcsf jcsf commented May 15, 2025

Summary

Previously, fields were parsed before checking if they were set, which could lead to empty value parsing. This change moves parsing after validation to ensure the fields are present.

Closes #5524

@jcsf jcsf force-pushed the joaocarlos/TUN-9253-fix-list-tunnels-data-source branch 2 times, most recently from 91185d8 to b960cb6 Compare May 19, 2025 11:02
@jcsf jcsf changed the base branch from main to next May 19, 2025 11:03
@jcsf jcsf force-pushed the joaocarlos/TUN-9253-fix-list-tunnels-data-source branch from b960cb6 to ccdd6ab Compare May 19, 2025 17:17
Previously, fields were parsed before checking if they were set, which could lead to empty value parsing. This change moves parsing after validation to ensure the fields are present.
@jcsf jcsf force-pushed the joaocarlos/TUN-9253-fix-list-tunnels-data-source branch from ccdd6ab to 7666be3 Compare May 22, 2025 11:43
@jacobbednarz jacobbednarz merged commit 2858b2d into cloudflare:next May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optional fields cause crash in cloudflare_zero_trust_tunnel_cloudflared(s) when left null
4 participants