CLI in a Coder built pod and permissions
This is a fairly noob Linux question (despite me working with Linux more intensively for over a year now) and only semi-related to Coder and I decided to ask the question before experimenting, so sorry for me not putting in the work in advance....
But, would it be possible to offer a CLI accessed via the SSH shell Coder offers in the agent pod, yet also deny access to the lower level commands the CLI might use itself? For instance, lets say I create a CLI command
My first thought is this won't be possible. I just want to get confirmation from someone more experienced, before I tried to make it happen (only to find out it won't work).
But, would it be possible to offer a CLI accessed via the SSH shell Coder offers in the agent pod, yet also deny access to the lower level commands the CLI might use itself? For instance, lets say I create a CLI command
my-cli commit and it in effect calls Git's commit command internally. The my-cli commitcommand should work, but when the user calls git commit, she'll get a no command available error. She won't be able to do anything with Git. My first thought is this won't be possible. I just want to get confirmation from someone more experienced, before I tried to make it happen (only to find out it won't work).