-
Notifications
You must be signed in to change notification settings - Fork 27
[FSSDK-11793] Release/v4.2.1 #441
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
Handle SDK keys with secure tokens in format 'sdkKey:apiKey' by extracting only the SDK key portion for notification processing.
Change comment from 'PSUBSCRIBE' to 'Subscribe/PSubscribe' to clarify support for both Redis subscription patterns in notification sync.
Add unit tests covering: - Standard SDK keys without secure tokens - Secure token format (sdkKey:apiKey) parsing - Edge cases: multiple colons, empty parts, empty headers - Integration test with notification event stream Ensures secure token parsing logic has proper test coverage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parses out SDK key if needed.
Remove unused 'conf' variables that were causing linting errors in CI checks for the new secure token parsing unit tests.
Clean up trailing whitespace that was causing formatting issues in CI checks for golangci-lint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
feb79f1
to
5193aff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prisma Cloud has found errors in this PR ⬇️
@@ -1,13 +1,13 @@ | |||
ARG GO_VERSION | |||
FROM golang:$GO_VERSION-alpine3.21 as builder | |||
FROM golang:$GO_VERSION-alpine3.20 as builder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
busybox 1.36.1 / Dockerfile.alpine.FROM
Total vulnerabilities: 4
Critical: 0 | High: 0 | Medium: 4 | Low: 0 |
---|
Vulnerability ID | Severity | CVSS | Fixed in | Status |
---|---|---|---|---|
CVE-2023-42363 | 5.5 | - |
Open | |
CVE-2023-42364 | 5.5 | - |
Open | |
CVE-2023-42365 | 5.5 | - |
Open | |
CVE-2023-42366 | 5.5 | - |
Open |
5193aff
to
b94a793
Compare
… channel The previous test was closing the event channel immediately, which caused the notification handler to hang in an infinite loop reading zero values. Fix by using a context timeout to properly terminate the test.
c2513aa
to
8fc0e5e
Compare
4056d7e
to
b1527dc
Compare
sdkKey:apiKey
Issues
https://jira.sso.episerver.net/browse/FSSDK-11793
https://jira.sso.episerver.net/browse/FSSDK-11833