Skip to content

Conversation

@craigcomstock
Copy link
Contributor

@craigcomstock craigcomstock commented May 5, 2025

This should simplify selinux policy where we want the agent to have broad access but other components like serverd, execd, hub to have more limited access.

The paths bundle checks for the existence of many commands and this operation can cause SELinux AVCs.

Ticket: ENT-12954
Changelog: title

@craigcomstock
Copy link
Contributor Author

@cf-bottom jenkins please, thanks!

@cf-bottom
Copy link

@craigcomstock
Copy link
Contributor Author

ubu24 hub had trouble installing, some problem with postgres starting. Looks like a flake.

…n SELinux policy

This should simplify selinux policy where we want the agent to have broad access but other components like serverd, execd, hub to have more limited access.

The paths bundle checks for the existence of many commands and this operation can cause SELinux AVCs.
The inventory bundle uses the curl command to see if the host is an AWS instance and if so collects some inventory from a well known API/IP.
The cfe_internal_hub_vars needs to determine if php-fpm executable is present.

As far as I can tell there isn't a need for the vars/classes defined in paths and inventory in components other than agent so this change should be OK.

Ticket: ENT-12954
Changelog: title

more common to agent fixes
Copy link
Member

@nickanderson nickanderson left a comment

Choose a reason for hiding this comment

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

Not sure how I feel about this one. My initial reaction is no. But, i think it's true that most use of paths is from cf-agent.

I need to ponder on it. I guess we will if we have not yet confirmed that we aren't using any of the paths in MPF stock and probably scour build modules as well.

Plausibly could add something, sort of like the extend paths capability to get certain paths into common availability if needed. I wonder, will this change negatively affect the ability of the paths bundle to be extended without modification?

@craigcomstock
Copy link
Contributor Author

Not sure how I feel about this one. My initial reaction is no. But, i think it's true that most use of paths is from cf-agent.

I need to ponder on it. I guess we will if we have not yet confirmed that we aren't using any of the paths in MPF stock and probably scour build modules as well.

Plausibly could add something, sort of like the extend paths capability to get certain paths into common availability if needed. I wonder, will this change negatively affect the ability of the paths bundle to be extended without modification?

Let's make some tests then for at least the extend case. We can run this through CI as well to try and catch troubles there.

@cf-bottom jenkins please, thanks.

@cf-bottom
Copy link

@craigcomstock
Copy link
Contributor Author

looks like ci tells us one var is trouble:

Processing host events
18.203.244.34	   error: Unresolved variable "@(cfe_hub_specific_file_control.inputs)" in input list, cannot parse

I will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants