[DSEC-128] Add data security rust check - #53605
Closed
aimenebelfodil wants to merge 26 commits into
Closed
Conversation
…hared core types, not std::core
…y checks into checks.d Declare checks in shared_checks_manifest.yaml, build via rust-shared-checks.build, and assign CODEOWNERS to agent-build.
… shared-library checks into checks.d so they ship in linux/mac packages
…hmod 0500 shared libs so rust checks ship with loader-required permissions
…so rust libs keep loader-required perms after config chmod 660
…les after config chmod -R so shared-library loader perms survive image setup
…ylib on macOS postinst
Following review, the Rust shared-library checks are now built and shipped for Linux only; macOS (darwin/.dylib) is no longer targeted. - datadog-agent.rb: gate staging on linux_target? (was "unless windows_target?"), so nothing is built on macOS. - shared_checks_manifest.yaml: drop the darwin platform entry. - rust_shared_checks.py: build only for linux and the .so extension; remove the darwin/dylib handling and refuse to run outside linux. - agent-dmg/postinst: remove the macOS .dylib chmod, no longer needed. - datadog-agent-finalize.rb: move the built libdatadog-agent-*.so libs into the package checks.d and chmod 0500 each right after the move.
…od in Dockerfiles Replace the inline "find ... -exec chmod 0500 ... 2>/dev/null || true" with a clearer, dedicated RUN loop in both the agent and agent-ddot Dockerfiles. The chmod is kept in the agent-ddot image on purpose: agent-ddot is FROM the base agent image, which already ships the built-in Rust shared-library checks (libdatadog-agent-*.so) under /etc/datadog-agent/checks.d. Those libs are inherited into the DDOT image, so they must keep the loader-required owner-only (0500) perms. Since the recursive "chmod g+r,g+w,g+X -R /etc/datadog-agent" loosens them, the 0500 is re-applied afterwards.
…hen no .so files match
…urity scan results
Add event_platform_event_bytes / submit_event_platform_event_bytes so checks can submit arbitrary bytes (e.g. protobuf) to the event platform instead of only UTF-8 strings; the existing string API now delegates to the byte variant.
…ook stops regenerating an unused go_proto_library
aimenebelfodil
changed the base branch from
main
to
aimene.belfodil/dsec-124/support-run-once-for-shared-library-checks
July 13, 2026 19:06
Contributor
|
🎯 Code Coverage (details) 🔗 Commit SHA: 315aa01 | Docs | Datadog PR Page | Give us feedback! |
… registry can resolve it
… datadog registry can resolve them
Contributor
Files inventory check summaryFile checks results against ancestor 9cf224a0: Results for datadog-agent_7.82.0~devel.git.809.315aa01.pipeline.124473700-1_amd64.deb:Detected file changes:
|
Contributor
Static quality checks❌ Please find below the results from static quality gates Error
Gate failure full details
Static quality gates prevent the PR to merge! Successful checksInfo
15 successful checks with minimal change (< 2 KiB)
|
aimenebelfodil
force-pushed
the
aimene.belfodil/dsec-124/support-run-once-for-shared-library-checks
branch
from
July 15, 2026 19:21
93f51db to
d73ddb8
Compare
Base automatically changed from
aimene.belfodil/dsec-124/support-run-once-for-shared-library-checks
to
main
July 16, 2026 08:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Motivation
Describe how you validated your changes
Additional Notes