Skip to content

Go V3 transition server, duvet'ed#60

Merged
lucasmcdonald3 merged 19 commits into
fireegg-test-serversfrom
go-v3-transition-duvet
Nov 10, 2025
Merged

Go V3 transition server, duvet'ed#60
lucasmcdonald3 merged 19 commits into
fireegg-test-serversfrom
go-v3-transition-duvet

Conversation

@lucasmcdonald3

@lucasmcdonald3 lucasmcdonald3 commented Nov 5, 2025

Copy link
Copy Markdown

Issue #, if available:

Description of changes:

To simplify reading this, here's the diff between the v3/v4 main.go server implementation: diff.txt

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@lucasmcdonald3 lucasmcdonald3 changed the title m add go v3 transition server Nov 5, 2025
@lucasmcdonald3 lucasmcdonald3 changed the title add go v3 transition server duvet go v3 transition server Nov 5, 2025
@lucasmcdonald3 lucasmcdonald3 changed the title duvet go v3 transition server Go V3 transition server, duvet'ed Nov 7, 2025

@ShubhamChaturvedi7 ShubhamChaturvedi7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor / Clarification below, lgtm.

Comment on lines +152 to +159
var commitmentPolicy commitment.CommitmentPolicy
switch input.Config.CommitmentPolicy {
case "REQUIRE_ENCRYPT_REQUIRE_DECRYPT":
commitmentPolicy = commitment.REQUIRE_ENCRYPT_REQUIRE_DECRYPT
case "REQUIRE_ENCRYPT_ALLOW_DECRYPT":
commitmentPolicy = commitment.REQUIRE_ENCRYPT_ALLOW_DECRYPT
case "FORBID_ENCRYPT_ALLOW_DECRYPT":
commitmentPolicy = commitment.FORBID_ENCRYPT_ALLOW_DECRYPT

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not have the input.Config.CommitmentPolicy type as commitment.CommitmentPolicy ? Maybe because commitment.CommitmentPolicy doesn't have the json tag?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I think that'd be more effort -- this input is coming in from the Java test servers as a string, and I think I'd need to do some extra work to align these. But I think this is fine

@lucasmcdonald3 lucasmcdonald3 merged commit 3e29c21 into fireegg-test-servers Nov 10, 2025
3 checks passed
@lucasmcdonald3 lucasmcdonald3 deleted the go-v3-transition-duvet branch November 10, 2025 23:16
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.

2 participants