forked from naemon/naemon-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this PR implements dynamic macro expansion from neb modules in order to implement password vault broker neb modules. From naemons point of view, we simply define a new macro prefix $VAULT...$ and add broker callbacks to fill the value. In order to make password vault work, we need enter a master password before naemon starts, thats why closing stdin moved to after the neb module initialization. So the neb module may implement reading something from stdin. Advantage of this vault macros would be: - dynamic 3rd party macro expansion is not limited to passwords - password storage can be implemented in any way you like, ex. simply encrypted file or advanced remote vaults - vault macros are not limited to numbers like $VAULT1$ but can be anything ex.: $VAULTSNMPCOMMUNITY$ - some context might be interesting during macro expansion, something like hostname, etc... thats why the macros *mac struct is passed to the broker which might contain host/service/contact pointer. Things to be done: - master password is lost during reloads and stdin is closed at that point, so need to find a way to save the master password over reloads. - systemd integration needs to be tested (can stdin be used here) Signed-off-by: Sven Nierlein <[email protected]>
- Loading branch information
Showing
7 changed files
with
56 additions
and
12 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
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