Replies: 1 comment 1 reply
|
definitely cool with me |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
fnox execcurrently spawns the target command, remains as its parent, forwards SIGINT/SIGTERM, and waits for it. That behavior is necessary when fnox must keepas_filetemporary files alive, but it adds a supervision layer for workloads that only inject environment variables.Would an opt-in Unix-only replacement mode fit fnox's scope?
For example:
After resolving secrets, fnox would use
std::os::unix::process::CommandExt::exec()so the target replaces fnox while keeping the same PID. The target would then receive signals and report exit status directly, which is useful whenfnox execis the container entrypoint.I think the mode should:
as_file, because fnox cannot run cleanup after a successful process replacement;FNOX_AGE_KEYandFNOX_AGE_KEY_FILEfrom the target environment after resolution;The current spawn mode would remain appropriate for file-backed secrets and any future resources requiring post-child cleanup. Replacement would be a narrower path for environment-only injection.
Does this direction fit the project, and should bootstrap-credential scrubbing be part of this mode or a separate
execbehavior?No implementation has been started. This discussion was prepared with AI assistance and reviewed by the author.
All reactions