Repository navigation
WIP Security/Compliance Agent scaffold - #5440
Merged
Merged
Conversation
Security Agent runs as a separate process and is responsible for running compliance checks. Security Agent uses logs intake to trigger signals based on configured rules. - Initial CLI for security agent - `event` command to send a `compliance.RuleEvent` payload to the backend. ``` security-agent compliance event --rule-name=cis-something-1.2.3 --rule-version=v1 --framework=cis_something --data=permissions:644 ```
clamoriniere
approved these changes
May 1, 2020
ahmed-mez
reviewed
May 20, 2020
| // This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
| // Copyright 2016-2020 Datadog, Inc. | ||
|
|
||
| // +build kubeapiserver |
gh-worker-dd-mergequeue-cf854d Bot
pushed a commit
that referenced
this pull request
Nov 9, 2026
…` builds (#59871) ### What does this PR do? Drop the `ld_vars` blocks of `security-agent.build` and `cws-instrumentation.build`, which pass `-X` ldflags for `main.Version`, `main.GoVersion`, `main.GitBranch`, `main.GitCommit` and `main.BuildDate`, along with `get_go_version`, their last caller. ### Motivation Neither `cmd/security-agent` nor `cmd/cws-instrumentation` has ever declared those variables, so **the linker drops the flags**, while the tasks still run `git` and `go version` for them at every build. The block originates from the process agent, whose `main` package declared those variables at the time: - #5440 copied it into the security agent's scaffold, - #11230 removed it from the process agent, along with those variables, in favor of `pkg/version`, which both binaries already report, - #18620 copied the security agent's block into `tasks/cws_instrumentation.py`, leaving these 2 copies as the last ones. ### Describe how you validated your changes Built `security-agent` and `cws-instrumentation` with and without the change, and checked that: - each kept its size and build settings, - `security-agent` (the only one not stripped) kept its symbols (none of which is one of those variables) as well as its `version` output. Co-authored-by: regis.desgroppes <[email protected]>
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.
Security Agent runs as a separate process and is responsible for running compliance checks.
Security Agent uses logs intake to trigger signals based on configured rules.
eventcommand to send acompliance.RuleEventpayload to the backend.What does this PR do?
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Describe your test plan
Write there any instructions and details you may have to test your PR.