Skip to content

[DO NOT MERGE] feat(runtime): enable scratch runtime via in-binary firewall lifecycle - #79

Open
rkschamer wants to merge 11 commits into
masterfrom
d053727/runtime-image-from-scratch
Open

[DO NOT MERGE] feat(runtime): enable scratch runtime via in-binary firewall lifecycle#79
rkschamer wants to merge 11 commits into
masterfrom
d053727/runtime-image-from-scratch

Conversation

@rkschamer

Copy link
Copy Markdown
Contributor

Enables FROM scratch runtime image by moving NFLOG rule and rp_filter sysctl management from shell scripts (init container + preStop hook) into the go-pmtud binary. Companion helm-charts PR removes the init container and preStop hook.

After merge, sapcc/helm-charts#12636 needs to be merged as well.

@rkschamer
rkschamer force-pushed the d053727/runtime-image-from-scratch branch 3 times, most recently from 30bc7fb to b1bde83 Compare August 25, 2026 14:56
@rkschamer
rkschamer marked this pull request as draft August 26, 2026 13:32
@rkschamer rkschamer changed the title feat(runtime): enable scratch runtime via in-binary firewall lifecycle [DO NOT MERGE] feat(runtime): enable scratch runtime via in-binary firewall lifecycle Aug 26, 2026
@rkschamer

Copy link
Copy Markdown
Contributor Author

Do not merge this PR, before we verified in QA that this version is working as expected in QA.

We use the image produced by the PR pipeline to deploy this version to QA.

Because of reported vulnerbilities
@rkschamer
rkschamer marked this pull request as ready for review August 31, 2026 07:37
sapcc-bot and others added 8 commits August 31, 2026 10:25
Builds and pushes PR images tagged as ghcr.io/sapcc/go-pmtud:pr-<number>
to allow testing container images before merge.

This file is not managed by go-makefile-maker and will not be overwritten.
* feat(ci): add per-commit SHA tag to PR container image

The PR workflow only produces a mutable pr-<number> tag which gets
overwritten on every push. Keppel mirror caches won't re-pull the
same tag, making it impossible to test updated PR builds.

Add an immutable pr-<number>-<sha> tag alongside the existing one
so each push produces a unique image reference usable for testing.

* fix docker image

---------

Co-authored-by: Rene Kschamer <rene.kschamer@sap.com>
@github-actions

Copy link
Copy Markdown

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/sapcc/go-pmtud/internal/cmd 0.00% (ø)
github.com/sapcc/go-pmtud/internal/firewall 49.30% (+49.30%) 🌟

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/sapcc/go-pmtud/internal/cmd/command.go 0.00% (ø) 0 (-90) 0 0 (-90)
github.com/sapcc/go-pmtud/internal/firewall/manager.go 25.00% (+25.00%) 48 (+48) 12 (+12) 36 (+36) 🌟
github.com/sapcc/go-pmtud/internal/firewall/manager_nonlinux.go 0.00% (ø) 0 0 0
github.com/sapcc/go-pmtud/internal/firewall/rule.go 100.00% (+100.00%) 21 (+21) 21 (+21) 0 🌟
github.com/sapcc/go-pmtud/internal/firewall/sysctl.go 100.00% (+100.00%) 2 (+2) 2 (+2) 0 🌟

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/sapcc/go-pmtud/internal/firewall/manager_test.go
  • github.com/sapcc/go-pmtud/internal/firewall/rule_test.go
  • github.com/sapcc/go-pmtud/internal/firewall/sysctl_test.go

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants