You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is related to the cursor field in the RuleDownloadRequest. Prior to 2024.6 Santa just used Foundation to parse the JSON to an NSDictionary. This meant that parsing was less strict and you could put any sort of JSON under the cursor field. Currently Rudolph expects to be able to pass the cursor field as JSON object.
In 2024.6 and afterwards the JSON is being parsed using the proto3 mapping to JSON. This makes the cursor field strictly a string.
The cursor field in the sync protocol is intended to be an opaque field and is expected to be parsed / unmarshalled after you've pulled the field out of the JSON. The fix should be then to serialize the cursor in the ruledownload request / response to a string and then marshal / unmarshal it separately.
I've written a fix here however I've not opened a PR because I've not been able to test it. Specifically I've not been able to get Rudolph up and running from a clean checkout without terraform errors related to IAM for the store module. This may be an error on my part.
Describe the bug
Rudolph does not support sync with Santa agents starting with v2024.6
To Reproduce
We observe the following behavior when running
santactl sync
using Santa agent v2024.8.Expected behavior
We see expected behavior when attempting to
santactl sync
running Santa agent v2024.5.Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Additional context
Per discussion here
The text was updated successfully, but these errors were encountered: