Update CA bundle logic
What does this MR do?
Why:
- Some analyzers need to write the custom CA to a file that already has other certificates within it.
- The analyzers have different locations where they need the CA certificate to be written.
This change addresses the need by:
- Update bundle write function to append the certificate if the file already exists.
- Update the
Import
function to allow the location of the CA certificate bundle file to be specified. - Update the
command.Config
to pass throughcacert.ImportOptions
Side effects:
- The change the
cacert.Import
function signature is a breaking change and will require work in each analyzer that doesn't use the command package and calls that function directly.
What are the relevant issue numbers?
Does this MR meet the acceptance criteria?
-
Changelog entry added - [-] Documentation created/updated for GitLab EE, if necessary
- [-] Documentation created/updated for this project, if necessary
- [-] Documentation reviewed by technical writer or follow-up review issue created
-
Tests added for this feature/bug - [-] Job definition updated, if necessary
- [-] Auto-DevOps template
- [-] Job definition example
- [-] CI Templates
-
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by 🤖 GitLab Bot 🤖