Skip to content

feat(private-action-runner): add systemd host mounts - #3319

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 7 commits into
mainfrom
matthew.deguzman/add-system-service-mounts
Aug 6, 2026
Merged

feat(private-action-runner): add systemd host mounts#3319
gh-worker-dd-mergequeue-cf854d[bot] merged 7 commits into
mainfrom
matthew.deguzman/add-system-service-mounts

Conversation

@matt-dz

@matt-dz matt-dz commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds opt-in host systemd support to the node Private Action Runner. The cluster-agent runner is unchanged.

Configuration

Systemd access requires node PAR plus these annotations:

agent.datadoghq.com/private-action-runner-enabled: "true"
agent.datadoghq.com/private-action-runner-systemd-enabled: "true"
agent.datadoghq.com/private-action-runner-systemd-journal-storage: "persistent"
agent.datadoghq.com/private-action-runner-systemd-journal-vacuum-enabled: "true"

private-action-runner-systemd-journal-storage is required when systemd support is enabled and accepts:

  • persistent for /var/log/journal
  • volatile for /run/log/journal
  • both for both directories

Boolean annotations accept only "true" or "false". Invalid values or combinations are rejected before the node pod template is modified.

Host mounts

Host source Container target HostPath type Access
/etc/machine-id /host/etc/machine-id File Read-only
/run/dbus/system_bus_socket /host/run/dbus/system_bus_socket Socket Read-only
/run/systemd/journal /host/run/systemd/journal Directory Read-only
/var/log/journal /host/var/log/journal Directory Selected by persistent or both
/run/log/journal /host/run/log/journal Directory Selected by volatile or both

Selected journal directories are read-only by default. Setting private-action-runner-systemd-journal-vacuum-enabled to "true" makes only those directories writable so vacuum actions can delete archived journals. The existing /host/var/log mount remains read-only, and no broad /run mount is added.

The journald runtime directory is mounted instead of the individual io.systemd.journal socket. This keeps a replacement socket visible inside the container when journald restarts or is upgraded.

Motivation

DataDog/datadog-agent#54385 configures rshell systemd targets from paths under /host when PAR is containerized. The Operator must expose the corresponding host machine ID, system bus, journald runtime, and selected journal storage paths.

@datadog-official

datadog-official Bot commented Aug 3, 2026

Copy link
Copy Markdown

Code Coverage

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 47.83% (+0.08%)

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

@matt-dz

matt-dz commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 3a341af40a

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

@matt-dz
matt-dz marked this pull request as ready for review August 3, 2026 20:57
@matt-dz
matt-dz requested a review from a team August 3, 2026 20:57
@matt-dz
matt-dz requested a review from a team as a code owner August 3, 2026 20:57
@matt-dz
matt-dz requested review from DMatheo and removed request for a team August 3, 2026 20:57

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

ℹ️ 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/privateactionrunner/feature.go Outdated
Comment thread internal/controller/datadogagent/feature/privateactionrunner/feature.go Outdated
@matt-dz
matt-dz marked this pull request as draft August 4, 2026 14:32
@matt-dz

matt-dz commented Aug 4, 2026

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: f02f43c671

ℹ️ 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/privateactionrunner/systemd.go Outdated
@matt-dz

matt-dz commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 8417c405d9

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

@matt-dz
matt-dz marked this pull request as ready for review August 4, 2026 18:22

@julesmcrt julesmcrt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM with 1 nit

Comment thread internal/controller/datadogagent/feature/privateactionrunner/systemd.go Outdated
@Mathew-Estafanous Mathew-Estafanous added this to the v1.30.0 milestone Aug 5, 2026
@Mathew-Estafanous
Mathew-Estafanous self-requested a review August 6, 2026 00:45
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 1b2eed0 into main Aug 6, 2026
56 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the matthew.deguzman/add-system-service-mounts branch August 6, 2026 14:20
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