Skip to content

[Host Profiler] Remove seccomp configmap and use profile baked into image#3061

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 5 commits into
mainfrom
theomagellan/host-profiler-seccomp-from-image
Jun 8, 2026
Merged

[Host Profiler] Remove seccomp configmap and use profile baked into image#3061
gh-worker-dd-mergequeue-cf854d[bot] merged 5 commits into
mainfrom
theomagellan/host-profiler-seccomp-from-image

Conversation

@theomagellan

@theomagellan theomagellan commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Leverages the seccomp profile now bundled in the Host Profiler's image.
DataDog/datadog-agent#51545

Motivation

Before this, the seccomp profile was living in 3 different places:

  • datadog-operator
  • datadog's helm-charts
  • Standalone documentation

Bundling the seccomp directly in the image and using it as an initContainer enables us the version the seccomp profile with profiler versions and maintain only one copy.

Additional Notes

Anything else we should know when reviewing?

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

Used this branch alongside the datadog-agent PR's standalone image to test.

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 Jun 1, 2026

Copy link
Copy Markdown

Code Coverage

🎯 Code Coverage (details)
Patch Coverage: 96.55%
Overall Coverage: 44.17% (+0.21%)

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

@theomagellan theomagellan added enhancement New feature or request qa/skip-qa labels Jun 1, 2026
@codecov-commenter

codecov-commenter commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.77419% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 43.92%. Comparing base (5301a0c) to head (1f4ff19).
⚠️ Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
...oller/datadogagent/feature/hostprofiler/feature.go 96.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3061      +/-   ##
==========================================
+ Coverage   43.64%   43.92%   +0.28%     
==========================================
  Files         350      352       +2     
  Lines       30075    30374     +299     
==========================================
+ Hits        13125    13342     +217     
- Misses      16079    16151      +72     
- Partials      871      881      +10     
Flag Coverage Δ
unittests 43.92% <96.77%> (+0.28%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...oller/datadogagent/feature/hostprofiler/seccomp.go 100.00% <100.00%> (ø)
...oller/datadogagent/feature/hostprofiler/feature.go 82.07% <96.00%> (+0.07%) ⬆️

... and 11 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5301a0c...1f4ff19. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@theomagellan theomagellan changed the title remove seccomp configmap and use profile baked into image [Host Profiler] Remove seccomp configmap and use profile baked into image Jun 1, 2026
@theomagellan
theomagellan force-pushed the theomagellan/host-profiler-seccomp-from-image branch from 3c0461f to 16a44bf Compare June 1, 2026 09:55
@theomagellan

Copy link
Copy Markdown
Contributor Author

@codex review

@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: 16a44bffce

ℹ️ 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
@theomagellan
theomagellan marked this pull request as ready for review June 1, 2026 10:12
@theomagellan
theomagellan requested a review from a team June 1, 2026 10:12
@theomagellan
theomagellan requested a review from a team as a code owner June 1, 2026 10:12

@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: 16a44bffce

ℹ️ 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

Copy link
Copy Markdown
Contributor Author

@codex review

@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: 3d909a5dcc

ℹ️ 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/feature.go Outdated
Comment thread internal/controller/datadogagent/feature/hostprofiler/feature.go
@theomagellan
theomagellan force-pushed the theomagellan/host-profiler-seccomp-from-image branch from 3d909a5 to ec33f68 Compare June 4, 2026 10:37
@theomagellan
theomagellan force-pushed the theomagellan/host-profiler-seccomp-from-image branch from ec33f68 to f896b9a Compare June 4, 2026 10:41
Comment thread internal/controller/datadogagent/feature/hostprofiler/feature.go Outdated
@theomagellan
theomagellan force-pushed the theomagellan/host-profiler-seccomp-from-image branch from 0d9819f to 78e1ff2 Compare June 4, 2026 13:56

@r1viollet r1viollet 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.

LGTM
Thanks for adjusting

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit df55a51 into main Jun 8, 2026
53 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the theomagellan/host-profiler-seccomp-from-image branch June 8, 2026 13:44
khewonc added a commit that referenced this pull request Jun 9, 2026
…mage (#3061) (#3107)

remove seccomp configmap and use profile baked into image

add seccomp profile dynamic naming based on image hash

add support for separate image/tag attributes and add testing

rework resolveHostProfilerImage to account for dda image override annotations

add IPC_LOCK cap


(cherry picked from commit df55a51)

Co-authored-by: Théo de Magalhaes <[email protected]>
Co-authored-by: theo.demagalhaes <[email protected]>
Co-authored-by: khewonc <[email protected]>
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.

5 participants