Chef Ideas

We believe that the best way to build software is to do it in close collaboration with the people who use it. We invite you to submit your ideas using the form below. Please be sure to include the problem for which you are solving and the benefits of implementing the idea.

We do our best to implement as many Ideas as we can. Our Product team will evaluate all submitted ideas in a timely manner and will disposition each into one of the following categories: will integrate into the product roadmap, further research is needed, unlikely to implement.

Thanks for collaborating with us!

Chef workstation setup without root privileges

We need to install Chef workstation on Redhat Code Ready Workspace where we doesn't have the root privileges. We need to have an alternate solution where we can setup the chef workstation without having the root access. Like we can copy the binaries to the workspace from another server. We dont have access to /opt directory so any other way to keep them and use them accordingly.

Hi Harshit,
As per https://docs.chef.io/workstation/install_workstation/#installation - "The Chef Workstation installer must run as a privileged user."
As I understand it, codeready workspaces/containers are a logical segregated construct which are build from an image/container. I would assume that you would need to build the container and install the binary as part of that process.
Im gauging that explanation from https://github.com/redhat-developer/codeready-workspaces, where a list of example stacks/environments are supplied. I would assume that adding a chef workstation container to that list would be something you should talk to your openshift admin team about.
If you still feel like you would like to deploy chef with a custom user it can be raised as a feature request, see How do I raise a Feature Request?
Let me know how you would like to proceed.
Thanks,
Chris

Hi Chris,

Basically we are installing chefdk package to setup workstation for cookbook developement. I think i miss quoted you.

https://docs.chef.io/release_notes_chefdk/

For this we need to have an alternate solution without having the root access as the chefdk package requires root admin privileges.

Hi Harshit,
The privileges required will almost certainly remain a requisite to install as they pertain to creating/augmenting root directories and permissions.
My assumption is that you would like to be able to install workstation in directories under the current user $HOME. If that seems like a feasible workaround can place a feature request for the work.
I've enquired with the workstation team and I'm sure they'll revert with their perspective, though I doubt it will be very much different to that previously stated.
Thanks,
Chris

Request #26173 "Chefdk setup without root privil..." was closed and merged into this request. Last comment in request #26173:
We need to install Chefdk on Redhat Code Ready Workspace where we doesn't have the root privileges. We need to have an alternate solution where we can setup the chef workstation without having the root access. Like we can copy the binaries to the workspace in different directory $HOME. We dont have access to /opt directory so any other way to keep them and use them accordingly.

Hi Harshit,
Unfortunately due to the expectations/assumptions made by the components of chef-workstation it will we require significant changes in numerous places.
We'll open this as a feature request because it is enhancement orientated but would like to set the expectations that it would take a long significant amount if time/effort to address were it to be undertaken.
We have passed through the request to your account team who can advise further on what, if anything could be done within your install environment to make this more manageable.
Thanks,
Chris
  • Guest
  • Sep 28 2020
  • Under Consideration
  • Attach files