-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
agent: Add implementation for injecting secrets as environment variab…
…les to vault agent cmd (#20739) * added exec and env_template config/parsing * add tests * we can reuse ctconfig here * do not create a non-nil map * check defaults * Apply suggestions from code review Co-authored-by: Anton Averchenkov <[email protected]> * Apply suggestions from code review Co-authored-by: Anton Averchenkov <[email protected]> * first go of exec server Signed-off-by: Daniel Huckins <[email protected]> * convert to list Signed-off-by: Daniel Huckins <[email protected]> * convert to list Signed-off-by: Daniel Huckins <[email protected]> * sig test Signed-off-by: Daniel Huckins <[email protected]> * add failing example Signed-off-by: Daniel Huckins <[email protected]> * refactor for config changes Signed-off-by: Daniel Huckins <[email protected]> * add test for invalid signal Signed-off-by: Daniel Huckins <[email protected]> * account for auth token changes Signed-off-by: Daniel Huckins <[email protected]> * only start the runner once we have a token * tests in diff branch Signed-off-by: Daniel Huckins <[email protected]> * Apply suggestions from code review Co-authored-by: Anton Averchenkov <[email protected]> * fix rename Signed-off-by: Daniel Huckins <[email protected]> * Update command/agent/exec/exec.go Co-authored-by: Anton Averchenkov <[email protected]> * apply suggestions from code review Signed-off-by: Daniel Huckins <[email protected]> * cleanup Signed-off-by: Daniel Huckins <[email protected]> * remove unnecessary lock Signed-off-by: Daniel Huckins <[email protected]> * refactor to use enum Signed-off-by: Daniel Huckins <[email protected]> * dont block Signed-off-by: Daniel Huckins <[email protected]> * handle default Signed-off-by: Daniel Huckins <[email protected]> * make more explicit Signed-off-by: Daniel Huckins <[email protected]> * cleanup Signed-off-by: Daniel Huckins <[email protected]> * remove unused Signed-off-by: Daniel Huckins <[email protected]> * remove unused file Signed-off-by: Daniel Huckins <[email protected]> * remove test app Signed-off-by: Daniel Huckins <[email protected]> * Apply suggestions from code review Co-authored-by: Anton Averchenkov <[email protected]> * apply suggestions from code review Signed-off-by: Daniel Huckins <[email protected]> * update comment Signed-off-by: Daniel Huckins <[email protected]> * add changelog Signed-off-by: Daniel Huckins <[email protected]> * new channel for exec server token * wire to run with vault agent Signed-off-by: Daniel Huckins <[email protected]> * watch for child process to exit on its own Signed-off-by: Daniel Huckins <[email protected]> * block before returning Signed-off-by: Daniel Huckins <[email protected]> --------- Signed-off-by: Daniel Huckins <[email protected]> Co-authored-by: Anton Averchenkov <[email protected]>
- Loading branch information
Showing
4 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters