feat: SBOMs for OpenSearch and opensearch-security-plugin #1211
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I had to use an older version of the cyclonedx-gradle-plugin for OpenSearch itself, since newer versions caused issues with the version of the
com.networknt:json-schema-validator
component used by the OpenSearch build process. Updatingcom.networknt:json-schema-validator
to the latest version is also possible (then the most recent version of cyclonedx-gradle-plugin works), but I decided against it to prevent side effect on the OpenSearch build process.--warning-mode=summary
is passed to thecyclonedxBom
subcommand to prevent it from failing because of deprecated features. The SBOM is generated correctly, it will probably not work with Gradle 9 but by then newer versions of OpenSearch and the cyclonedx-gradle-plugin might be ready that fix these warnings.I also moved the
COPY
line of the security plugin further down to avoid rebuilding OpenSearch when changing something in the plugin.Definition of Done Checklist
Note
Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant.
Please make sure all these things are done and tick the boxes
TIP: Running integration tests with a new product image
The image can be built and uploaded to the kind cluster with the following commands:
See the output of
bake
to retrieve the image tag for<image-tagged-with-the-major-version>
.