Loading
Set an explicit command for the certificates and cfssl-self-sign containers
What does this MR do?
The certificates and cfssl-self-sign containers set no command, so the chart relies on an
undocumented image CMD. Images without one, such as the hardened nix images, fail every Pod with
no command specified.
- Run
/scripts/bundle-certificatesand/scripts/generate-certificatesexplicitly. - Document the certificates image contract in the developer docs, link it from the custom CA docs, and add a 10.6.0 upgrade note.
- Mount the self-signed wildcard CA as
cfssl_ca.crt. Debian'supdate-ca-certificatesonly reads*.crt, so the chart's own CA was missing from the Debian trust store.
A custom certificates image must now provide /scripts/bundle-certificates. command also skips the
image entrypoint, which bundle-certificates does not need.
Testing
On a fresh kind cluster with cert-manager disabled and a custom CA:
- The
selfsignJob and everycertificatesinit container completed. - The trust store contains both CAs, and certificates signed by them verify.
- With the Debian, UBI and FIPS certificates images, the init container succeeds. Only Debian dropped the self-signed CA before this change.
The nix images also need hardened-builds !254 (merged) and !256 (merged).
Related issues
Closes #6729 (closed)
Author checklist
For general guidance, please follow our Contributing guide.
Required
For anything in this list which will not be completed, please provide a reason in the MR discussion.
- Merge Request Title and Description are up to date, accurate, and descriptive.
- MR targeting the appropriate branch.
- MR has a green pipeline.
- Documentation created/updated.
- Tests added/updated.
- Have you validated that your change works end-to-end on a real cluster deployment?
- Describe how you did it in a comment. (See Testing above.)
-
Equivalent MR/issue foromnibus-gitlabopened. (Not applicable: chart-only change.) - When ready for review, MR is marked as ready (not a draft) and assigned to a reviewer.
Reviewers checklist
- As soon as you begin reviewing, select Start a review on your first comment so the MR shows Reviewer started review.
- MR has a green pipeline on https://gitlab.com/gitlab-org/charts/gitlab.
- Consider downstream impact to the Operator, as per evaluating impact from changes to GitLab chart.
Edited by Clemens Beck