Skip to content

Commit 1080e74

Browse files
authored
Allow kernel command update in case of immutable os (#209)
1 parent a6a5718 commit 1080e74

16 files changed

Lines changed: 96 additions & 5 deletions

File tree

.github/workflows/pre-merge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
prefix_tag_separator: "/"
104104
project_folder: ${{ matrix.project_folder }}
105105
trivy_image_skip: "postgres:16.4"
106+
trivy_config_path: '${{ matrix.project_folder }}/trivy.yaml'
106107
secrets:
107108
NO_AUTH_ECR_PUSH_USERNAME: ${{ secrets.NO_AUTH_ECR_PUSH_USERNAME }}
108109
NO_AUTH_ECR_PUSH_PASSWD: ${{ secrets.NO_AUTH_ECR_PUSH_PASSWD }}

host/.trivyignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,14 @@ CVE-2023-5981
9292
CVE-2024-2236
9393
CVE-2023-4039
9494
CVE-2023-4039
95+
96+
CVE-2025-47912
97+
CVE-2025-58183
98+
CVE-2025-58185
99+
CVE-2025-58186
100+
CVE-2025-58187
101+
CVE-2025-58188
102+
CVE-2025-58189
103+
CVE-2025-61723
104+
CVE-2025-61724
105+
CVE-2025-61725

host/trivy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
ignorefile: host/.trivyignore

maintenance/.trivyignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,14 @@ CVE-2024-2236
4949
CVE-2024-33600
5050
CVE-2024-33601
5151
CVE-2024-33602
52+
53+
CVE-2025-47912
54+
CVE-2025-58183
55+
CVE-2025-58185
56+
CVE-2025-58186
57+
CVE-2025-58187
58+
CVE-2025-58188
59+
CVE-2025-58189
60+
CVE-2025-61723
61+
CVE-2025-61724
62+
CVE-2025-61725

maintenance/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.23.6-dev
1+
1.23.6

maintenance/pkg/maintmgr/grpc_server.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,15 @@ func populateImmutableUpdateDetails(
182182
policy *computev1.OSUpdatePolicyResource,
183183
tenantID, profileName, guid string,
184184
) error {
185+
resp.UpdateSource.KernelCommand = policy.GetUpdateKernelCommand()
186+
187+
// If KernelCommand is set in the OSUpdatePolicy, skip fetching the OS resource
188+
// as we will not update the OS in this case.
189+
if resp.UpdateSource.KernelCommand != "" {
190+
zlog.Debug().Msgf("Skipping OS resource fetch as KernelCommand is set in OSUpdatePolicy: tenantID=%s", tenantID)
191+
return nil
192+
}
193+
185194
osRes, err := getUpdateOS(ctx, invMgrCli.InvClient, tenantID, profileName, policy)
186195
if err != nil {
187196
zlog.InfraSec().InfraErr(err).Msgf("PlatformUpdateStatus: tenantID=%s, UUID=%s", tenantID, guid)

maintenance/trivy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
ignorefile: maintenance/.trivyignore

networking/.trivyignore

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,15 @@ CVE-2023-5981
4848
CVE-2024-2236
4949
CVE-2024-33600
5050
CVE-2024-33601
51-
CVE-2024-33602
51+
CVE-2024-33602
52+
53+
CVE-2025-47912
54+
CVE-2025-58183
55+
CVE-2025-58185
56+
CVE-2025-58186
57+
CVE-2025-58187
58+
CVE-2025-58188
59+
CVE-2025-58189
60+
CVE-2025-61723
61+
CVE-2025-61724
62+
CVE-2025-61725

networking/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.19.1-dev
1+
1.19.1

networking/trivy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
ignorefile: networking/.trivyignore

0 commit comments

Comments
 (0)