Skip to content

[PROF-15317] allow operator to use logging seccomp - #3229

Open
theomagellan wants to merge 4 commits into
mainfrom
theomagellan/hp-logging-seccomp
Open

[PROF-15317] allow operator to use logging seccomp#3229
theomagellan wants to merge 4 commits into
mainfrom
theomagellan/hp-logging-seccomp

Conversation

@theomagellan

@theomagellan theomagellan commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR adds a new annotation to let Host Profiler deployments use a logging seccomp profile.

Motivation

This allows seccomp denials monitoring.

Additional Notes

Leverages DataDog/datadog-agent#53189

Minimum Agent Versions

Are there minimum versions of the Datadog Agent and/or Cluster Agent required?

  • Agent: vX.Y.Z
  • Cluster Agent: vX.Y.Z

Describe your test plan

Write there any instructions and details you may have to test your PR.

Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies
  • PR has a milestone or the qa/skip-qa label
  • All commits are signed (see: signing commits)

@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Jul 7, 2026

Copy link
Copy Markdown

Pipelines  Code Coverage

🎯 Code Coverage (details)
Patch Coverage: 90.48%
Overall Coverage: 47.35% (-0.03%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 37c76c1 | Docs | Datadog PR Page | Give us feedback!

@theomagellan
theomagellan force-pushed the theomagellan/hp-logging-seccomp branch from 9276e2e to f9d5752 Compare July 7, 2026 12:46
@theomagellan theomagellan changed the title allow operator to use logging seccomp [PROF-15317] allow operator to use logging seccomp Jul 7, 2026
@theomagellan theomagellan added enhancement New feature or request qa/skip-qa labels Jul 13, 2026
@theomagellan
theomagellan force-pushed the theomagellan/hp-logging-seccomp branch 2 times, most recently from 82974d7 to 04f1180 Compare July 13, 2026 12:21
@theomagellan
theomagellan marked this pull request as ready for review July 15, 2026 11:25
@theomagellan
theomagellan requested a review from a team July 15, 2026 11:25
@theomagellan
theomagellan requested a review from a team as a code owner July 15, 2026 11:25

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 160bc0a6e7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/controller/datadogagent/feature/hostprofiler/seccomp.go Outdated
@theomagellan
theomagellan force-pushed the theomagellan/hp-logging-seccomp branch from fceecbd to 063c626 Compare July 27, 2026 15:49
@theomagellan
theomagellan force-pushed the theomagellan/hp-logging-seccomp branch 2 times, most recently from a8ee5c6 to b6df78c Compare July 28, 2026 08:04
@theomagellan
theomagellan force-pushed the theomagellan/hp-logging-seccomp branch from b6df78c to 37c76c1 Compare July 28, 2026 08:17

o.loggingSeccomp = featureutils.HasFeatureEnableAnnotation(dda, featureutils.EnableHostProfilerLoggingSeccompAnnotation)
if o.loggingSeccomp && !o.seccompEnabled {
o.logger.Info("host profiler: logging-seccomp annotation has no effect when seccomp is disabled")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this will show up every 15s at reconciliation in info mode, so just flagging in case it should be debug instead. Info sounds appropriate nonetheless to surface something like this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the heads-up, I do agree that Info is appropriate, but I would rather not flood logs. Moving it to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants