Skip to content

Remove obsolete launcher tables and fix Mach-O parsing - #2788

Merged
cesarfda merged 9 commits into
kolide:mainfrom
cesarfda:remove-obsolete-launcher-tables
Aug 31, 2026
Merged

Remove obsolete launcher tables and fix Mach-O parsing#2788
cesarfda merged 9 commits into
kolide:mainfrom
cesarfda:remove-obsolete-launcher-tables

Conversation

@cesarfda

@cesarfda cesarfda commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • remove the legacy Google Drive sync config/history and Chrome login data emails tables
  • keep the distinct kolide_chrome_login_keychain table registered
  • support thin and universal Mach-O binaries, returning one row per architecture
  • add fixture-based coverage for both Mach-O formats

Dependencies

  • depends on kolide/k2#15061, which migrates Check references from kolide_chrome_login_data_emails to katc_chrome_login_data_emails; merge that PR first

Follow-ups

  • removal of kolide_spotlight and kolide_onepassword_accounts moved to launcher#2791, linked to KOL-1178
  • retain kolide_slack_config for now because it is still in use

Test plan

  • Run go test ./cmd/launcher ./pkg/osquery/table -count=1
  • Run make lint
  • Build launcher and query /bin/ls through kolide_macho_info
  • Verify the generated launcher schema no longer contains the removed tables

Related

Stop advertising vestigial Google Drive and Spotlight capabilities, and support universal Mach-O binaries while documenting table reliability checks.
Keep this branch focused on the runtime table cleanup and Mach-O fix.
@cesarfda cesarfda added the component:table Table Changes label Aug 10, 2026
@cesarfda
cesarfda marked this pull request as ready for review August 10, 2026 15:09
@cesarfda
cesarfda requested a review from RebeccaMahany August 10, 2026 15:09

@RebeccaMahany RebeccaMahany left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for the cleanup!

macos_software_update.MacOSUpdate(k, slogger),
macos_software_update.RecommendedUpdates(k, slogger),
MachoInfo(k, slogger),
spotlight.TablePlugin(k, slogger),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you confirm that these tables aren't in use in any custom checks?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Heh, I came here to say the same thing. I think we were using it within the last couple years. Which of this or the osquery one works better seems to swap every couple years.

Comment thread pkg/osquery/table/macho.go
Normalize path separators so the cross-platform table tests and app-name extraction behave consistently.
Drop the legacy SQLite-backed table so it is no longer registered or published in the launcher schema.
Drop the launcher implementation now that the KATC replacement is available, and preserve the package-wide leak test harness.
Drop the remaining legacy Chrome saved-login implementation now that the KATC replacement is available.
Keep the distinct keychain table registered while removing only the superseded Chrome login email aggregation.
RebeccaMahany
RebeccaMahany previously approved these changes Aug 11, 2026
Restore these tables here so their removal can be reviewed independently under KOL-1178.
@cesarfda

Copy link
Copy Markdown
Contributor Author

https://github.com/kolide/k2/pull/15061 merged so we should be unblocked to merge this pr

@cesarfda
cesarfda added this pull request to the merge queue Aug 31, 2026
Merged via the queue into kolide:main with commit f223f3e Aug 31, 2026
49 of 50 checks passed
@cesarfda
cesarfda deleted the remove-obsolete-launcher-tables branch August 31, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:table Table Changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants