-
Notifications
You must be signed in to change notification settings - Fork 11
Disable Test Modules #127
Comments
@ryanmoran without a huge amount of context, I had recommended this issue be filed on a Python buildpack, since we want to evaluate the effect of setting this flag, before we go in and just rebuild our dependencies. Do you think this should be approached differently? |
I don't think we should just rebuild the Python dependency without discussion from the @paketo-buildpacks/python-maintainers, but I think the issue still belongs here given that this is ultimately where the dependency lives and the work would be tracked. |
|
Hi, Is this still under consideration? |
Hey @jjsheridan, it's still under consideration, we just haven't had the time to prioritize this yet. Is this blocking for you, or have you been able to find a workaround? Contributions are always welcome; although, in this case I recognize that the dependency compilation code quite difficult to navigate (which is a problem), and it's not the easiest thing to test in the full buildpack workflow. For reference, here are the steps I'd follow if I were to pick up this issue:
|
Thanks @sophiewigmore. We haven't been able to come up with a work-around for this, so yes, this is a blocker. Our Security team won't accept containers with key files. |
Got it, I'll try to take a look at this soon. |
I'm still working on this investigation. To document what I've seen so far:
Building with
I need to do more investigation to understand the issue with Pip and this version of Python, since it's likely just a problem with the new version of Python, and not the lack of test module availability
|
Thanks for the update, @sophiewigmore. Were you able to determine what caused the pip install to fail? |
@jjsheridan this is as far as I've gotten with the exploration so far. Not sure yet 👎 |
After recompiling the 3.10.1 dependency, it works in builds! I think it was compiled with an out of date version of the compilation code. |
When Installing However, when actually running the built container, I am still seeing failures:
From a cursory search, this seems like a common issue with Python ConclusionFrom my investigation, I think it's viable to compile At this point, some work on the Python side of things is needed to support version |
Thanks for putting the time into this, @sophiewigmore. |
What happened?
After building a Python image, our scanner flagged private keys contained in the image. @arjun024 states that these come from the dependency archive released by python. He mentioned there's an option to set --disable-test-modules that could possibly remove the keys. Our Security team requires our containers to not have any private keys stored.
Build a Python image.
Container without private keys.
Build Configuration
We were just using the Python sample code from this git site.
What platform (
pack
,kpack
,tekton
buildpacks plugin, etc.) are youusing? Please include a version.
Pack
What buildpacks are you using? Please include versions.
No buildpacks were specified.
What builder are you using? If custom, can you provide the output from
pack inspect-builder <builder>
?Paketo base builder
Can you provide a sample app or relevant configuration (
buildpack.yml
,nginx.conf
, etc.)?Checklist
You can refer to this conversation in Slack - https://paketobuildpacks.slack.com/archives/CULAS8ACD/p1637103874047800
The text was updated successfully, but these errors were encountered: