Skip to content

[2.0] Fixes #28858: set seccompProfile RuntimeDefault on K8s pipeline pods - #38696

Merged
pmbrull merged 3 commits into
2.0from
backport/2.0/pr-34326
Nov 26, 2026
Merged

pmbrull merged 3 commits into
2.0from
backport/2.0/pr-34326

Conversation

@gh-bot-collate

Copy link
Copy Markdown

Automated backport of #34326 to 2.0.

Source PR #34326
Author @stefan-wisbric
Merge commit 245690d04ce7525d33489223c39904fbd186b5da
Method Conflicts resolved by Claude — worth a read of the diff.

Resolution notes

Backport notes: #34326 → 2.0

Backports "Fixes #28858: set seccompProfile RuntimeDefault on K8s pipeline pods"
(merge commit 245690d04ce7525d33489223c39904fbd186b5da) onto 2.0.

Conflict

Only one file conflicted:
openmetadata-service/src/test/java/org/openmetadata/service/clients/pipeline/k8s/K8sPipelineClientTest.java

The conflict was limited to the import block. The PR's commit added these
imports right after an existing import java.net.ConnectException; line:

import java.net.ConnectException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

2.0 doesn't have ConnectException imported at all in this file (and it's
not referenced anywhere in the file on 2.0 — it must back a test that only
exists on main, added by some other commit not part of this PR). That import
mismatch is what caused the conflict; the rest of the file (including the new
testSeccompConfigurationFromYamlIsSetOnJob parameterized test and the two
assertNull(...SeccompProfile()) assertions added to
testSecurityContextIsSetOnJob) merged cleanly via 3-way merge since the
surrounding context matched.

Resolution: kept only StandardCharsets, Files, and Path (the imports
this PR's new test actually needs) and dropped ConnectException, since it's
unrelated to this change and isn't used anywhere in the 2.0 version of the
file.

Non-conflicting files

conf/openmetadata.yaml, K8sPipelineClient.java, and
K8sPipelineClientConfig.java applied cleanly via cherry-pick with no
changes needed — the new seccomp parameter/config plumbing is additive and
didn't collide with anything on 2.0.

What to check by hand

  • Confirm no other test in this file on 2.0 depends on an exception-handling
    test that was supposed to import ConnectException — a quick grep (done
    during this backport) shows no usage, but worth a second look given it's a
    removed import from the incoming side of the conflict.
  • Couldn't run mvn test-compile in this sandbox (offline, missing Maven
    Central artifacts), so the module hasn't been build-verified here — please
    run the module's test suite (mvn test -pl openmetadata-service -Dtest=K8sPipelineClientTest)
    in CI/locally to confirm the merged test file compiles and passes.

Opened from openmetadata-collate, which holds the credentials needed to open a PR here. It merges itself once this branch's required checks pass — no review needed. If a check fails it stays open and the author of #34326 is asked to look.

resolver run

…34326)

* Fixes #28858: set seccompProfile RuntimeDefault on K8s pipeline pods

* fix(k8s): configure seccomp from YAML

Leave the profile unset by default to preserve existing deployments.
Allow runtime and node-local profiles through the pipeline client
seccomp parameters.

* fix(k8s): expose seccomp via environment

Allow env-configured deployments to set K8S_SECCOMP without mounting
a custom YAML file. Preserve the nullable map and unset default.

---------

Co-authored-by: Stefan Scharlott <stefans@Stefans-MacBook-Pro.local>
Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
(cherry picked from commit 245690d)
@gh-bot-collate
gh-bot-collate Bot requested a review from a team as a code owner November 25, 2026 13:50
@gh-bot-collate
gh-bot-collate Bot requested review from TeddyCr and removed request for a team November 25, 2026 13:50
@gh-bot-collate gh-bot-collate Bot added the safe to test Add this label to run secure Github workflows on PRs label Nov 25, 2026
@gh-bot-collate

Copy link
Copy Markdown
Author

🤖 This backport will not merge itself: 2.0 has no required status checks, so there is nothing for auto-merge to wait on. Merge it by hand once CI is green.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@TeddyCr
TeddyCr requested review from pmbrull and removed request for TeddyCr November 25, 2026 22:29
@pmbrull pmbrull assigned pmbrull and unassigned ulixius9 Nov 26, 2026
@pmbrull
pmbrull merged commit 158638c into 2.0 Nov 26, 2026
66 of 67 checks passed
@pmbrull
pmbrull deleted the backport/2.0/pr-34326 branch November 26, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants