Skip to content

fix(test): update zz_compat_wss_test auth payload for PILOT-145 timestamp (PILOT-348)#12

Merged
TeoSlayer merged 1 commit into
mainfrom
fix/zz-compat-wss-auth-payload-PILOT-348
May 29, 2026
Merged

fix(test): update zz_compat_wss_test auth payload for PILOT-145 timestamp (PILOT-348)#12
TeoSlayer merged 1 commit into
mainfrom
fix/zz-compat-wss-auth-payload-PILOT-348

Conversation

@TeoSlayer
Copy link
Copy Markdown
Contributor

PR #9 added a server timestamp to the WSS auth-challenge payload and updated zz_coverage_test.go's helper to sign compat_auth:nodeID:ts:nonce. zz_compat_wss_test.go was missed in that pass — its dialCompatWSS helper still signed the pre-PILOT-145 compat_auth:nodeID:nonce format, so the server rejected with StatusPolicyViolation reason="auth failed" and TestEnableCompatWSS_HappyPath failed on main since the merge.

Same fix shape as zz_coverage_test.go in #9:

  • Add Timestamp int64 field to authChallengeMsg
  • Include ch.Timestamp in the signed payload

Tested locally: green.

Closes PILOT-348.

…tamp (PILOT-348)

PR #9 added a server-issued timestamp to the WSS auth-challenge payload
and updated zz_coverage_test.go's helper to sign 'compat_auth:nodeID:ts:nonce'.
zz_compat_wss_test.go was missed in that pass — its dialCompatWSS helper
still signed the pre-PILOT-145 'compat_auth:nodeID:nonce' format, so the
server rejected with StatusPolicyViolation reason='auth failed' and
TestEnableCompatWSS_HappyPath failed on main since the merge.

Same fix shape as zz_coverage_test.go in #9:
- add Timestamp int64 `json:"ts"` field to authChallengeMsg
- include ch.Timestamp in the signed payload

Closes PILOT-348.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@TeoSlayer TeoSlayer merged commit 6a77390 into main May 29, 2026
2 checks passed
@TeoSlayer TeoSlayer deleted the fix/zz-compat-wss-auth-payload-PILOT-348 branch May 29, 2026 19:18
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