Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Homebrew upgradeable table implementation #1847

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

Micah-Kolide
Copy link
Contributor

@Micah-Kolide Micah-Kolide commented Aug 28, 2024

There was an issue raised with this table where the implementation didn't quite make sense as it attempts to run Brew for multiple users. Homebrew in nature is owned and ran by a single non-root user.

I believe the customer who reported the issue has a good suggestion on detecting the owner of the binary and using that user as the running user context. Therefore I've updated the table implementation to do just this. There is a possible question of if we want to put this into the allowedcmd method, but I assumed we don't want to put operations like this in that area of the codebase.

I haven't removed the uid column from the table, so this change will not break anything for the Homebrew packages up-to-date check while I refactor that to not join against the users table.

I've also added the MacOS Intel Homebrew binary path.

@RebeccaMahany RebeccaMahany added the component:table Table Changes label Aug 29, 2024
@Micah-Kolide Micah-Kolide added this pull request to the merge queue Aug 29, 2024
Merged via the queue into main with commit 4a2c595 Aug 29, 2024
29 checks passed
@Micah-Kolide Micah-Kolide deleted the micah/fix_homebrew_logic branch August 29, 2024 14:23
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.

2 participants