-
Notifications
You must be signed in to change notification settings - Fork 112
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
[edpm_image_build] Copy certificates based on regexes #2673
[edpm_image_build] Copy certificates based on regexes #2673
Conversation
91053cc
to
581bc52
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/91e7a27003d84220a087735093d190dc ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 39m 27s |
581bc52
to
199b359
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/0f9726fc52c2422280e4878d9dd28879 ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 43m 01s |
1909102
to
e90b63d
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lewisdenny The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Minor commit suggestion. LGTM! |
To avoid assuming the source certificate to copy into the diskimage-builder has a specific name just use the system CAs chain and allow the user to provide some regexes to select which CAs should be copied. The new module can read a PEM file (that can list many certs) and, optionally, filter the certs by OU or CN regexes.
e90b63d
to
04d7424
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.
/lgtm
I did not know about the ldap filters (so I googled that). Will we need to add more filters like dc_filter later on (I am not sure if that is even a filter - just saw it somewhere)?
Do we have coverage to test this change because i have seen the jobs ran in the tide here https://logserver.rdoproject.org/73/2673/04d74241fbc5700accd07880c8cc424aa0bd97d4/github-check/cifmw-edpm-build-images/404ed41/job-output.txt but it's not testing the change as may be the when condition has been false. |
Yeah, in upstream the entire yaml file is not executed. We do need it in DS, but the jobs are already blocked, thus this change. |
Oh, what a casualty in naming, this has nothing to do with LDAP DNs but with x509 certificates. |
To avoid assuming the source certificate to copy into the diskimage-builder has a specific name just use the system CAs chain and allow the user to provide some regexes to select which CAs should be copied.