Skip to content
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

Add PNC prebuild task based upon git-clone-oci-ta #1819

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rnc
Copy link

@rnc rnc commented Jan 14, 2025

As middleware (PNC) need to preprocess the source in order to prepare it for building within a container an extra step is required for the PNC custom pipeline

@rnc rnc marked this pull request as ready for review January 15, 2025 12:08
@rnc rnc requested a review from a team as a code owner January 15, 2025 12:08
task/pnc-prebuild-git-clone-oci-ta/0.1/patch.yaml Outdated Show resolved Hide resolved
Comment on lines 64 to 65
- prepare
- --build-tool-version=$(params.BUILD_TOOL_VERSION)
- --java-version=$(params.JAVA_VERSION)
- --recipe-image=$(params.RECIPE_IMAGE)
- --tooling-image=$(params.PNC_KONFLUX_TOOLING_IMAGE)
- --type=$(params.BUILD_TOOL)
- /var/workdir/source
Copy link
Member

Choose a reason for hiding this comment

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

This is a very opaque command. It isn'y clear what this actually does to the source especially since it is running with full access to the internet. I don't know how we would be able to qualify/verify our trust in the changes made here.

Copy link
Author

@rnc rnc Jan 17, 2025

Choose a reason for hiding this comment

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

Admittedly this command does not need network access and is similar to what we would need if KONFLUX-4903 was available. It runs java code to preprocess the source to ensure its possible to build it inside a container from https://github.com/project-ncl/konflux-tooling and is only meant to be used by middleware/pnc. Is one of the main concerns because the language is not in shell scripting?

Choose a reason for hiding this comment

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

If the concern is full internet access we can probably run it within "unshare" but I believe it's a matter of trusting the application, that it rally does what it should?

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.

3 participants