-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
S3 Plugin: Implement Server-Side Encryption option #8646
base: master
Are you sure you want to change the base?
Conversation
- Introduces a server_side_encryption parameter for the S3 [OUTPUT] plugin. Possible values are AES256 and aws:kms, as per AWS API documentation: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html#API_PutObject_ResponseSyntax - If either value is provided, the x-amz-server-side-encryption header will be included with S3 requests with the corresponding value set. Signed-off-by: Mark Solters <[email protected]>
62b337e
to
34a63d5
Compare
* AWS plugins that support sse will have these options. | ||
* Referenced function should return -1 on error and 0 on success. | ||
*/ | ||
static const struct sse_option sse_options[] = { |
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.
@edsiper is this a recommended style/technique for FLB C code? We have similar bits of code elsewhere in the project that have a set of values but that don't validate them in this way with a object list...
As noted per feedback this code is unrelated to compression Signed-off-by: Mark Solters <[email protected]>
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.
Thanks!
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
S3 [OUTPUT]
plugin. Possible values areAES256
andaws:kms
, as per AWS API documentation: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html#API_PutObject_ResponseSyntaxx-amz-server-side-encryption
header will be included with S3 requests with the corresponding value set.Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
Example config:
This shows the S3 output config loading correctly. Obviously the bucket isn't real in this config but the config load throws no error:
When the bucket is real (and IAM permissions exist) this does correctly upload to SSE-enabled buckets.
A negative example, where
server_side_encryption: wumbo
, fails to load as expected:Starting without
server_side_encryption
being defined at all also doesn't crash:Valgrind heap summary with
server_side_encryption: AES256
:If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Documentation PR here
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.