Skip to content

feat(sbom): add experimental GOST SBOM support#48

Merged
nervgh merged 9 commits intomainfrom
feat/sbom/gost-attack-surf-and-gost-sec-func
Mar 4, 2026
Merged

feat(sbom): add experimental GOST SBOM support#48
nervgh merged 9 commits intomainfrom
feat/sbom/gost-attack-surf-and-gost-sec-func

Conversation

@nervgh
Copy link
Collaborator

@nervgh nervgh commented Feb 27, 2026

Introducted support for GOST-specific properties in SBOM generation. This allows users to specify attackSurface and securityFunction attributes at both the global build and per-image configuration levels.

@nervgh nervgh force-pushed the feat/sbom/gost-attack-surf-and-gost-sec-func branch from 10fc795 to 680fd66 Compare February 27, 2026 17:03
Copy link
Collaborator

@reyreavman reyreavman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i also think that we need to take into account the GOST fields during the calculation of the checksums

}

if !hasAttackSurface && !config.AttackSurface.IsUndefined() {
if comp.Properties == nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's take this outside of the checks and avoid duplication

@nervgh nervgh force-pushed the feat/sbom/gost-attack-surf-and-gost-sec-func branch 3 times, most recently from c72f193 to 8b3c3d2 Compare March 3, 2026 12:42
nervgh added 8 commits March 3, 2026 17:57
Introducted support for GOST-specific properties in SBOM generation.
This allows users to specify `attackSurface` and `securityFunction`
attributes at both the global build and per-image configuration levels.

Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Move GOST component validation and fragment preparation to a dedicated
method to ensure they happen before checksum calculation. Extract stable
checksum logic into a helper method and add unit tests to verify
consistency
across different merge options.

Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
properties instead of
just injecting them. Added a temporary checksum stub in the BOM
checksum calculation to be replaced with a stable implementation later,
and updated E2E test expectations accordingly.

Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
@nervgh nervgh force-pushed the feat/sbom/gost-attack-surf-and-gost-sec-func branch from 25753da to 4628240 Compare March 3, 2026 14:58
@nervgh nervgh requested a review from reyreavman March 3, 2026 16:03
return o.BaseBOM == nil && len(o.ImportBOMs) == 0 && o.FragmentBOM == nil
}

func (o MergeOpts) Checksum() string {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems to me that the GOST fields are still not taken into account in the calculation of the checksum and these tests confirm it

Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
@nervgh nervgh requested a review from reyreavman March 4, 2026 10:00
@nervgh nervgh merged commit 4f17e5d into main Mar 4, 2026
21 of 29 checks passed
@nervgh nervgh deleted the feat/sbom/gost-attack-surf-and-gost-sec-func branch March 4, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants