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

error executing process while using empty cmd #23

Open
RichardHCL opened this issue May 12, 2020 · 6 comments
Open

error executing process while using empty cmd #23

RichardHCL opened this issue May 12, 2020 · 6 comments
Assignees

Comments

@RichardHCL
Copy link

While using cmd = "", spiffe-helper keeps showing:

unable to signal process: error executing process: 
fork/exec : no such file or directory

< helper.conf with cmd = "" >
Screen Shot 2020-05-12 at 12 01 19 PM

< helper.conf with cmd = "echo" >
Screen Shot 2020-05-12 at 12 01 51 PM

@marcosy
Copy link
Contributor

marcosy commented May 12, 2020

Hi @RichardHCL 👋
spiffe-helper currently requires the cmd configurable to be set. The provided command is invoked (or signaled if the process is running) every time certificates are rotated.

Curious to hear what your use case is for an empty cmd... would you expect it to only update the certificate files?

@RichardHCL
Copy link
Author

Hi @marcosy ~~
Yes, I though it can update the certificate files without running any additional commands. And, I just got one more question, is there any specific command for cmd input or just general linux cmd would be sufficed?

@marcosy
Copy link
Contributor

marcosy commented May 13, 2020

I though it can update the certificate files without running any additional commands

Yes, that sounds reasonable to me. If cmd is unset or empty it should only update the certs.

is there any specific command for cmd input or just general linux cmd would be sufficed?

Just general unix commands. If the value assigned to the cmd configurable does not contains path separators, spiffe-helper tries to resolve it to a complete path (like with the echo example). Otherwise it uses the cmd content as the path to an executable file (like /Users/marcos/my-executable-file).

@JU4N98
Copy link
Contributor

JU4N98 commented Jun 15, 2023

You can assign me this issue.

@faisal-memon
Copy link
Collaborator

Thanks @JU4N98

@JU4N98
Copy link
Contributor

JU4N98 commented Jan 3, 2024

We should close this issue, was solved on this commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants