upload_S3: Unexpected arg kmsEncryptionKey #2694
Replies: 1 comment 1 reply
-
If you are developing new functionality that should be used by the offline collector you will need to manually upload the offline collector into the tools setup screen - otherwise Velociraptor will just package the release binary and that one does not know about the new parameter. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am attempting to update the S3_Upload functionality to allow for specifying the KMS key when
aws:kms
is selected for the server side encryption. In my use case, we have one bucket and instead of specifying a key for the entire bucket, we use different keys for various prefixes of the S3 bucket.I found this PR https://github.com/Velocidex/velociraptor/pull/1064/files and thought I could basically duplicate it with the new parameter.
My initial test case can be found here: https://github.com/superbobdthm/velociraptor/pull/1/files
Everything builds correctly, I can install the server build offline collectors. But when I try to run them I am getting
Full Log can be found here: collector_log.txt
If I am reading this error correctly, it seems like the upload_s3 function isn't expecting the kmsEncryptionKey argument, but if you look at the PR. I have included it.
Is there somewhere else I need to specify the new argument? or additional logging I can get to troubleshoot this error?
Beta Was this translation helpful? Give feedback.
All reactions