-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: generate seccomp profile within pipeline #1325
ci: generate seccomp profile within pipeline #1325
Conversation
✅ Deploy Preview for capsule-documentation canceled.
|
2816ee9
to
62f2e5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @alegrey91 great tool, hope we can get you gain some traction as example. I have requested changes regarding the chart
Makefile
Outdated
harpoon: ## Download harpoon locally if necessary. | ||
@curl -s https://raw.githubusercontent.com/alegrey91/harpoon/main/install | \ | ||
sudo bash -s -- --install-version $(HARPOON_VERSION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big fan of this, we should try to install binaries into the project's bin/ folder, i am assuming this is going to install harpoon at system level. Since it,s go, can't we make a target like the other binary dependencies:
HARPOON = $(shell pwd)/bin/harpoon
HARPOON_VERSION = v0.9.4
harpoon:
$(call go-install-tool,$(HARPOON),github.com/alegrey91/harpoon@$(HARPOON_VERSION))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @oliverbaehler, unfortunately I don't think we can currently use go install
with harpoon
.
The project has a complex toolchain that requires a separated compilation of the ebpf object.
About the installation directory, I think this is fine, I can set the location through the install
script.
Hello @oliverbaehler, I'm having a problem with the Test charts pipeline. |
I'm thinking about a possible solution for that. Since the
|
@alegrey91 can you grant me access to your fork? |
You should have access now. |
@alegrey91 I can't invest more time into this, sorry. I heave reconciled your targets and simplified the approach. It should now work better. |
@oliverbaehler any reasons why the other workflows are not starting anymore? |
@alegrey91 conflicts? |
186a22f
to
a0f3d18
Compare
@oliverbaehler ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final changes, sowy :3
Signed-off-by: Alessio Greggi <[email protected]>
a0f3d18
to
f24d2f1
Compare
@oliverbaehler can you please re-run the CI? |
This PR introduces the ability of generating seccomp profiles within the pipeline.
This will be helpful in case some user wants to secure his capsule installation by leveraging the power of seccomp.
To do so,
capsule
container image is built replacing the base image with the one provided byharpoon
. This will allow the execution ofcapsule
throughharpoon
.Then, set up a Kubernetes cluster using
kind
with a shared folder that is used to retrieve the metadata generated byharpoon
during the e2e tests execution.Capsule image is consequently installed on the cluster with a customized values file from
helm
, and the e2e could start.Once finished, the results are merged with the tracing of the unit tests (handled by
harpoon
).This generates the
seccomp
profile tailored forcapsule
, which is going to be uploaded with the other artifacts in the upcoming releases.