Skip to content
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

Remove disabling UTF-8 validation hack #205

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Remove disabling UTF-8 validation hack #205

merged 2 commits into from
Jan 24, 2025

Conversation

dnr
Copy link
Member

@dnr dnr commented Jan 23, 2025

What changed?
Remove the hack to allow disabling UTF-8 validation on our Go protos.

Why?
We should allow protobuf to validate all strings are valid UTF-8 as specified.

How did you test it?
Will be tested by server, sdk, and other components.

Potential risks
Anyone still using invalid UTF-8 will see their grpc requests fail. We've been monitoring for this in Temporal Cloud for most of a year now and there's no more invalid data. Self-hosted users should do the same validation before upgrading to a server or Go SDK release that contains this change (instructions here).

@dnr dnr requested review from a team as code owners January 23, 2025 02:05
Copy link
Contributor

@tdeebswihart tdeebswihart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff stats are horrifying for this change. Thank you for following this saga through to its conclusion!

Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Echoing @tdeebswihart, thank you very much for sticking with it

@dnr dnr merged commit a53ea3f into master Jan 24, 2025
4 checks passed
@dnr dnr deleted the david/utfcleanup branch January 24, 2025 19:53
Shivs11 pushed a commit that referenced this pull request Jan 25, 2025
**What changed?**
Remove the hack to allow disabling UTF-8 validation on our Go protos.

**Why?**
We should allow protobuf to validate all strings are valid UTF-8 as specified.

**How did you test it?**
Will be tested by server, sdk, and other components.

**Potential risks**
Anyone still using invalid UTF-8 will see their grpc requests fail. We've been monitoring for this in Temporal Cloud for most of a year now and there's no more invalid data. Self-hosted users should do the same validation before upgrading to a server or Go SDK release that contains this change (instructions [here](https://github.com/temporalio/temporal/releases/tag/v1.24.0)).
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.

5 participants