René's URL Explorer Experiment


Title: ROX-34519: Populate VM scan OS from Sensor by vikin91 · Pull Request #20337 · stackrox/stackrox · GitHub

Open Graph Title: ROX-34519: Populate VM scan OS from Sensor by vikin91 · Pull Request #20337 · stackrox/stackrox

X Title: ROX-34519: Populate VM scan OS from Sensor by vikin91 · Pull Request #20337 · stackrox/stackrox

Description: Description After enrichment, look up the VM's guest_os (populated from KubeVirt informer data via Sensor) and use it as scan.operating_system. This provides a human-readable OS name (e.g. "Red Hat Enterprise Linux 10") instead of relying solely on the Scanner V4 distribution identifier. The lookupGuestOS helper queries the v2 datastore (VirtualMachineV2.guest_os) when the enhanced data model is enabled, falling back to the v1 facts map. Values that are empty or "unknown" are ignored, preserving the enricher's default. See also a fallback option that populates OS from Scanner if the one added in this PR fails: #20336 Partially AI-generated. User-facing documentation CHANGELOG.md is updated OR update is not needed documentation PR is created and is linked above OR is not needed Testing and quality the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag CI results are inspected Automated testing added unit tests added e2e tests added regression tests added compatibility tests modified existing tests How I validated my change CI (unit tests) Manually on a cluster Install ACS, create a VM and run an agent. Wait for the scan to arrive. Before this change: ➜ curl -sk -u admin:admin 'https://localhost:8443/v2/virtualmachines' | jq '.virtualMachines[] | {id, name, namespace, scanOS: .scan.operatingSystem}' { "id": "09164dea-8d42-4c00-a2f2-8bf97b69c79a", "name": "rhel10-1", "namespace": "openshift-cnv", "scanOS": null } after this change: ➜ curl -sk -u admin:admin 'https://localhost:8443/v2/virtualmachines' | jq '.virtualMachines[] | {id, name, namespace, scanOS: .scan.operatingSystem}' { "id": "09164dea-8d42-4c00-a2f2-8bf97b69c79a", "name": "rhel10-1", "namespace": "openshift-cnv", "scanOS": "Red Hat Enterprise Linux" }

Open Graph Description: Description After enrichment, look up the VM's guest_os (populated from KubeVirt informer data via Sensor) and use it as scan.operating_system. This provides a human-readable OS name (e.g. &quo...

X Description: Description After enrichment, look up the VM's guest_os (populated from KubeVirt informer data via Sensor) and use it as scan.operating_system. This provides a human-readable OS name (e.g. ...

Opengraph URL: https://github.com/stackrox/stackrox/pull/20337

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6abe9c35-275e-105f-dccb-8da627c604fa
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB7BA:1C7367:68BCF2:998D5F:6A4E1226
html-safe-noncee361d5b7450101db6937f296c5033f05c9f5b2f50903c50b1fe12a499b6072bc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0JBOjFDNzM2Nzo2OEJDRjI6OTk4RDVGOjZBNEUxMjI2IiwidmlzaXRvcl9pZCI6IjEzNzg5NDk0NzYzODM1MDM3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac595ebc28e0c324b15541fb1f353df520884e78a0ca4c01ffdf8b115b5655a434
hovercard-subject-tagpull_request:3623485118
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/stackrox/stackrox/pull/20337/files
twitter:imagehttps://avatars.githubusercontent.com/u/114479?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/114479?s=400&v=4
og:image:altDescription After enrichment, look up the VM's guest_os (populated from KubeVirt informer data via Sensor) and use it as scan.operating_system. This provides a human-readable OS name (e.g. &quo...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/stackrox/stackrox git https://github.com/stackrox/stackrox.git
octolytics-dimension-user_id40638982
octolytics-dimension-user_loginstackrox
octolytics-dimension-repository_id434017296
octolytics-dimension-repository_nwostackrox/stackrox
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id434017296
octolytics-dimension-repository_network_root_nwostackrox/stackrox
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseea9187571e3edc5f2780f750631138669441ca50
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/stackrox/stackrox/pull/20337/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackrox%2Fstackrox%2Fpull%2F20337%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackrox%2Fstackrox%2Fpull%2F20337%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=stackrox%2Fstackrox
Reloadhttps://github.com/stackrox/stackrox/pull/20337/files
Reloadhttps://github.com/stackrox/stackrox/pull/20337/files
Reloadhttps://github.com/stackrox/stackrox/pull/20337/files
Please reload this pagehttps://github.com/stackrox/stackrox/pull/20337/files
stackrox https://github.com/stackrox
stackroxhttps://github.com/stackrox/stackrox
Notifications https://github.com/login?return_to=%2Fstackrox%2Fstackrox
Fork 180 https://github.com/login?return_to=%2Fstackrox%2Fstackrox
Star 1.3k https://github.com/login?return_to=%2Fstackrox%2Fstackrox
Code https://github.com/stackrox/stackrox
Issues 52 https://github.com/stackrox/stackrox/issues
Pull requests 549 https://github.com/stackrox/stackrox/pulls
Actions https://github.com/stackrox/stackrox/actions
Security and quality 0 https://github.com/stackrox/stackrox/security
Insights https://github.com/stackrox/stackrox/pulse
Code https://github.com/stackrox/stackrox
Issues https://github.com/stackrox/stackrox/issues
Pull requests https://github.com/stackrox/stackrox/pulls
Actions https://github.com/stackrox/stackrox/actions
Security and quality https://github.com/stackrox/stackrox/security
Insights https://github.com/stackrox/stackrox/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fstackrox%2Fstackrox%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fstackrox%2Fstackrox%2Fissues%2Fnew%2Fchoose
vikin91https://github.com/vikin91
masterhttps://github.com/stackrox/stackrox/tree/master
piotr/ROX-34519-vm-os-sensorhttps://github.com/stackrox/stackrox/tree/piotr/ROX-34519-vm-os-sensor
Conversation 4 https://github.com/stackrox/stackrox/pull/20337
Commits 3 https://github.com/stackrox/stackrox/pull/20337/commits
Checks 93 https://github.com/stackrox/stackrox/pull/20337/checks
Files changed https://github.com/stackrox/stackrox/pull/20337/files
Please reload this pagehttps://github.com/stackrox/stackrox/pull/20337/files
ROX-34519: Populate VM scan OS from Sensor https://github.com/stackrox/stackrox/pull/20337/files#top
Show all changes 3 commits https://github.com/stackrox/stackrox/pull/20337/files
8086e2a ROX-34519: populate VM scan OS from stored guest_os vikin91 May 4, 2026 https://github.com/stackrox/stackrox/pull/20337/commits/8086e2aed0c31cc2c0785d0405735b45f0330b2c
2b7e1f8 Self-review vikin91 May 4, 2026 https://github.com/stackrox/stackrox/pull/20337/commits/2b7e1f8104880c1954fbe25d602df34b693e1ba8
aaa02e8 Fill OS in VM.Scan vikin91 May 4, 2026 https://github.com/stackrox/stackrox/pull/20337/commits/aaa02e80c3ab07b0e9fa557fdd871bfcc8dc73e7
Clear filters https://github.com/stackrox/stackrox/pull/20337/files
Please reload this pagehttps://github.com/stackrox/stackrox/pull/20337/files
Please reload this pagehttps://github.com/stackrox/stackrox/pull/20337/files
pipeline.go https://github.com/stackrox/stackrox/pull/20337/files#diff-2e81916a6c78528ede13721c489a37a1f474d4b6084f8d392e7fb08f99261eee
pipeline_test.go https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
central/sensor/service/pipeline/virtualmachineindex/pipeline.gohttps://github.com/stackrox/stackrox/pull/20337/files#diff-2e81916a6c78528ede13721c489a37a1f474d4b6084f8d392e7fb08f99261eee
View file https://github.com/stackrox/stackrox/blob/aaa02e80c3ab07b0e9fa557fdd871bfcc8dc73e7/central/sensor/service/pipeline/virtualmachineindex/pipeline.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrox/stackrox/pull/20337/{{ revealButtonHref }}
https://github.com/stackrox/stackrox/pull/20337/files#diff-2e81916a6c78528ede13721c489a37a1f474d4b6084f8d392e7fb08f99261eee
https://github.com/stackrox/stackrox/pull/20337/files#diff-2e81916a6c78528ede13721c489a37a1f474d4b6084f8d392e7fb08f99261eee
https://github.com/stackrox/stackrox/pull/20337/files#diff-2e81916a6c78528ede13721c489a37a1f474d4b6084f8d392e7fb08f99261eee
https://github.com/stackrox/stackrox/pull/20337/files#diff-2e81916a6c78528ede13721c489a37a1f474d4b6084f8d392e7fb08f99261eee
https://github.com/stackrox/stackrox/pull/20337/files#diff-2e81916a6c78528ede13721c489a37a1f474d4b6084f8d392e7fb08f99261eee
central/sensor/service/pipeline/virtualmachineindex/pipeline_test.gohttps://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
View file https://github.com/stackrox/stackrox/blob/aaa02e80c3ab07b0e9fa557fdd871bfcc8dc73e7/central/sensor/service/pipeline/virtualmachineindex/pipeline_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrox/stackrox/pull/20337/{{ revealButtonHref }}
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
https://github.com/stackrox/stackrox/pull/20337/files#diff-30293a0c45ce77daaa5148cfb8ec11e07097576113e87744c3c1b0b1112a37c8
Please reload this pagehttps://github.com/stackrox/stackrox/pull/20337/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.