Skip to content

Commit

Permalink
Merge pull request #217 from ksoclabs/eng-2172
Browse files Browse the repository at this point in the history
Add possibility to check and generate newest SBOMs in the container registry
  • Loading branch information
mateuszdyminski authored Nov 5, 2024
2 parents 35320c0 + eb140a4 commit bd6c892
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions stable/ksoc-plugins/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: ksoc-plugins
version: 1.9.3
version: 1.9.4
description: A Helm chart to run the KSOC plugins
home: https://ksoc.com
icon: https://ksoc.com/hubfs/Ksoc-logo.svg
Expand All @@ -17,7 +17,7 @@ annotations:
# Possible kind options are added, changed, deprecated, removed, fixed and security.
artifacthub.io/changes: |
- kind: added
description: Add documentation for the `IMAGE_PULL_SECRETS` config value in 'rad-sbom' component.
description: Add possibility to check and generate SBOMs for latests images in the container registry.
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/links: |
- name: source
Expand Down
3 changes: 2 additions & 1 deletion stable/ksoc-plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,10 @@ The command removes all the Kubernetes components associated with the chart and
| ksocSbom.env.LOG_LEVEL | string | `"info"` | The log level to use. Options are trace, debug, info, warn, error |
| ksocSbom.env.MUTATE_ANNOTATIONS | bool | `false` | Whether to mutate the annotations in pod spec by adding images digests. Annotations can be used to track image digests in addition to, or instead of the image tag mutation. |
| ksocSbom.env.MUTATE_IMAGE | bool | `true` | Whether to mutate the image in pod spec by adding digest at the end. By default, digests are added to images to ensure that the image that runs in the cluster matches the digest of the build. Disable this if your continuous deployment reconciler requires a strict image tag match. |
| ksocSbom.env.SBOM_CHECK_LATEST | bool | `false` | Experimental: Whether to check for the latest image in the container registry and generate SBOM for it. If deployed image has tag with semver format, rad-sbom tries to get the newest image, newest minor version, or newest patch version. If the tag is not in semver format, rad-sbom tries to get the newest image from the container registry based on the tag time. Please be aware that time-based algorithm requires many requests to the container registry and may be slow. It works only if credentials are provided. Please note that this feature is experimental and may not work with all container registries. |
| ksocSbom.env.SBOM_FORMAT | string | `"cyclonedx-json"` | The format of the generated SBOM. Currently we support: syft-json,cyclonedx-json,spdx-json |
| ksocSbom.image.repository | string | `"public.ecr.aws/n8h5y2v5/rad-security/rad-sbom"` | The image to use for the ksoc-sbom deployment |
| ksocSbom.image.tag | string | `"v1.1.28"` | |
| ksocSbom.image.tag | string | `"v1.1.30"` | |
| ksocSbom.nodeSelector | object | `{}` | |
| ksocSbom.podAnnotations | object | `{}` | |
| ksocSbom.resources.limits.cpu | string | `"1000m"` | |
Expand Down
8 changes: 7 additions & 1 deletion stable/ksoc-plugins/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ksocSbom:
image:
# -- The image to use for the ksoc-sbom deployment
repository: public.ecr.aws/n8h5y2v5/rad-security/rad-sbom
tag: v1.1.28
tag: v1.1.30
env:
# -- Whether to mutate the image in pod spec by adding digest at the end. By default, digests are added to images to ensure
# that the image that runs in the cluster matches the digest of the build. Disable this if your continuous deployment
Expand All @@ -108,6 +108,12 @@ ksocSbom:
# additionally, you can specify the secrets here.
# If you use AWS ECR private registry, we recommend to use EKS Pod Identity or IRSA to add access to "rad-sbom" to the ECR registry.
IMAGE_PULL_SECRETS: ""
# -- Experimental: Whether to check for the latest image in the container registry and generate SBOM for it.
# If deployed image has tag with semver format, rad-sbom tries to get the newest image, newest minor version, or newest patch version.
# If the tag is not in semver format, rad-sbom tries to get the newest image from the container registry based on the tag time.
# Please be aware that time-based algorithm requires many requests to the container registry and may be slow. It works only if
# credentials are provided. Please note that this feature is experimental and may not work with all container registries.
SBOM_CHECK_LATEST: false
# -- The log level to use. Options are trace, debug, info, warn, error
LOG_LEVEL: info
resources:
Expand Down

0 comments on commit bd6c892

Please sign in to comment.