Skip to content

Feature/sec 471 + sync #9905

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

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2e6f9c5
- Introduced encrypt plugin
Jul 3, 2024
1c7f638
- Removed dependency on <fluent-bit/flb_tls.h>
Jul 8, 2024
5f34688
- Introduced/Enabled 'FILTER_ENCRYPT' plugin in Dockerfile which are…
Jul 8, 2024
71cdb7f
- Fixed multiple bugs causing compilation errors in macOS. Adapted t…
Jul 9, 2024
6634067
- Fixed bug related with undeclared identifier
Jul 9, 2024
989c635
- Fixed bug: Missing function `readlink` on Windows.
Jul 12, 2024
a43da71
- Multiple bug-fixes and refactoring for windows support.
Jul 12, 2024
17a9d39
- Reverted changes back
Jul 12, 2024
57e3807
- Fixed minor coding style in C.
Jul 16, 2024
2042d28
- Removed function generate_key_from_pbkdf2 used in aes_deterministi…
Jul 16, 2024
f4c732b
- Renamed function because there was another identical function with…
Jul 16, 2024
2557660
- Improved function convert_to_ipv6_format
Jul 16, 2024
cf714ab
- Code refactoring: Moved includes from .c to .h file
Jul 16, 2024
40ec6f0
- Renamed invoking function generate_key_from_pbkdf2 to crypto_utils…
Jul 16, 2024
1f822c0
- Fixed memory bug affecting windows related with data copying.
Jul 16, 2024
240c6cc
- Fixed minor coding style in C.
Jul 16, 2024
7456946
- Code refactoring: moving imports from .c to .h file
Jul 16, 2024
3b966f8
- Removed function generate_key_from_pbkdf2 used in aes_deterministic…
Jul 16, 2024
11c35e6
Merge branch 'fluent:master' into master
arasic Jul 16, 2024
c2f10d3
Merge remote-tracking branch 'origin/master'
Jul 16, 2024
fc9530b
Merge branch 'fluent:master' into master
arasic Aug 12, 2024
157143e
Merge branch 'fluent:master' into master
arasic Aug 18, 2024
d31f68d
SEC-456:
Nov 4, 2024
a77cedd
SEC-456:
Nov 6, 2024
0339fa0
Commit code related with build fix for Windows.
Nov 18, 2024
5103350
The commit before was a revert of few earlier commit. This bug was re…
Nov 18, 2024
296d5ac
Merge branch 'fluent:master' into master
arasic Nov 18, 2024
db3984f
Fixed bug related with AES-GCM DET encryption
Nov 18, 2024
9cee826
Resolved merge conflicts and merged upstream changes
Feb 1, 2025
4538d9b
SEC-471: Fixed a bug which would not limit fluent-bit to ship logs be…
Feb 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ if(FLB_TRACE)
add_definitions(-DFLB_TRACE=1)
endif()

# Debug messages to check the values of options
message(STATUS "FLB_RECORD_ACCESSOR: ${FLB_RECORD_ACCESSOR}")
message(STATUS "FLB_REGEX: ${FLB_REGEX}")

if(FLB_CHUNK_TRACE)
FLB_DEFINITION(FLB_HAVE_CHUNK_TRACE)
endif()
Expand Down
2 changes: 2 additions & 0 deletions packaging/distros/amazonlinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ ARG FLB_RELEASE=On
ARG FLB_TRACE=On
ARG FLB_SQLDB=On
ARG FLB_HTTP_SERVER=On
ARG FLB_FILTER_ENCRYPT=On
ARG FLB_OUT_KAFKA=On
ARG FLB_OUT_PGSQL=On
ARG FLB_JEMALLOC=On
Expand All @@ -92,6 +93,7 @@ RUN cmake3 -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
-DFLB_TRACE="$FLB_TRACE" \
-DFLB_SQLDB="$FLB_SQLDB" \
-DFLB_HTTP_SERVER="$FLB_HTTP_SERVER" \
-DFLB_FILTER_ENCRYPT="$FLB_FILTER_ENCRYPT" \
-DFLB_OUT_KAFKA="$FLB_OUT_KAFKA" \
-DFLB_OUT_PGSQL="$FLB_OUT_PGSQL" \
-DFLB_NIGHTLY_BUILD="$FLB_NIGHTLY_BUILD" \
Expand Down
2 changes: 2 additions & 0 deletions packaging/distros/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ ARG FLB_RELEASE=On
ARG FLB_TRACE=On
ARG FLB_SQLDB=On
ARG FLB_HTTP_SERVER=On
ARG FLB_FILTER_ENCRYPT=On
ARG FLB_OUT_KAFKA=On
ARG FLB_JEMALLOC=On
ARG FLB_CHUNK_TRACE=On
Expand All @@ -171,6 +172,7 @@ RUN cmake3 -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
-DFLB_TRACE="$FLB_TRACE" \
-DFLB_SQLDB="$FLB_SQLDB" \
-DFLB_HTTP_SERVER="$FLB_HTTP_SERVER" \
-DFLB_FILTER_ENCRYPT="$FLB_FILTER_ENCRYPT" \
-DFLB_OUT_KAFKA="$FLB_OUT_KAFKA" \
-DFLB_OUT_PGSQL="$FLB_OUT_PGSQL" \
-DFLB_NIGHTLY_BUILD="$FLB_NIGHTLY_BUILD" \
Expand Down
2 changes: 2 additions & 0 deletions packaging/distros/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ ARG FLB_RELEASE=On
ARG FLB_TRACE=On
ARG FLB_SQLDB=On
ARG FLB_HTTP_SERVER=On
ARG FLB_FILTER_ENCRYPT=On
ARG FLB_OUT_KAFKA=On
ARG FLB_OUT_PGSQL=On
ARG FLB_JEMALLOC=On
Expand All @@ -125,6 +126,7 @@ RUN cmake -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
-DFLB_TRACE="$FLB_TRACE" \
-DFLB_SQLDB="$FLB_SQLDB" \
-DFLB_HTTP_SERVER="$FLB_HTTP_SERVER" \
-DFLB_FILTER_ENCRYPT="$FLB_FILTER_ENCRYPT" \
-DFLB_OUT_KAFKA="$FLB_OUT_KAFKA" \
-DFLB_OUT_PGSQL="$FLB_OUT_PGSQL" \
-DFLB_NIGHTLY_BUILD="$FLB_NIGHTLY_BUILD" \
Expand Down
2 changes: 2 additions & 0 deletions packaging/distros/raspbian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ ARG FLB_RELEASE=On
ARG FLB_TRACE=On
ARG FLB_SQLDB=On
ARG FLB_HTTP_SERVER=On
ARG FLB_FILTER_ENCRYPT=On
ARG FLB_OUT_KAFKA=On
ARG FLB_OUT_PGSQL=On
ARG FLB_JEMALLOC=On
Expand All @@ -81,6 +82,7 @@ RUN cmake -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
-DFLB_TRACE="$FLB_TRACE" \
-DFLB_SQLDB="$FLB_SQLDB" \
-DFLB_HTTP_SERVER="$FLB_HTTP_SERVER" \
-DFLB_FILTER_ENCRYPT="$FLB_FILTER_ENCRYPT" \
-DFLB_OUT_KAFKA="$FLB_OUT_KAFKA" \
-DFLB_OUT_PGSQL="$FLB_OUT_PGSQL" \
-DFLB_NIGHTLY_BUILD="$FLB_NIGHTLY_BUILD" \
Expand Down
2 changes: 2 additions & 0 deletions packaging/distros/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ ARG FLB_RELEASE=On
ARG FLB_TRACE=On
ARG FLB_SQLDB=On
ARG FLB_HTTP_SERVER=On
ARG FLB_FILTER_ENCRYPT=On
ARG FLB_OUT_KAFKA=On
ARG FLB_OUT_PGSQL=On
ARG FLB_JEMALLOC=On
Expand All @@ -187,6 +188,7 @@ RUN cmake -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
-DFLB_TRACE="$FLB_TRACE" \
-DFLB_SQLDB="$FLB_SQLDB" \
-DFLB_HTTP_SERVER="$FLB_HTTP_SERVER" \
-DFLB_FILTER_ENCRYPT="$FLB_FILTER_ENCRYPT" \
-DFLB_OUT_KAFKA="$FLB_OUT_KAFKA" \
-DFLB_OUT_PGSQL="$FLB_OUT_PGSQL" \
-DFLB_NIGHTLY_BUILD="$FLB_NIGHTLY_BUILD" \
Expand Down
1 change: 1 addition & 0 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ REGISTER_FILTER_PLUGIN("filter_alter_size")
REGISTER_FILTER_PLUGIN("filter_aws")
REGISTER_FILTER_PLUGIN("filter_checklist")
REGISTER_FILTER_PLUGIN("filter_ecs")
REGISTER_FILTER_PLUGIN("filter_encrypt")
REGISTER_FILTER_PLUGIN("filter_record_modifier")
REGISTER_FILTER_PLUGIN("filter_sysinfo")
REGISTER_FILTER_PLUGIN("filter_throttle")
Expand Down
25 changes: 25 additions & 0 deletions plugins/filter_encrypt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Define the list of source files excluding applink.c
set(src
utils.c
crypto_utils.c
mjson.c
hashmap.c
ip_utils.c
ip_encryption.c
cryptopANT.c
aes.c
cmac.c
aes_deterministic.c
aes_gcm_hmac_deterministic.c
aes_gcm.c
hmac.c
encrypt.c)

# Conditionally include applink.c only on Windows
if(WIN32)
# Adjust the path if applink.c is in a different directory
list(APPEND src applink.c)
endif()

# Define the Fluent Bit plugin with the configured source files
FLB_PLUGIN(filter_encrypt "${src}" "")
Loading