pass --config as environment variable #1320
-
If you use Instead to execute:
... I could image to use something similar to this:
That said, additional tools come into play (e.g.: Is this possible? If not yet: any plans to implement it? Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@michaelkrieg that is a great question. We have multiple options to set the configuration path, which by default includes the service account to communicate with the Mondoo Platform. If you have the config locally available, you can use MONDOO_CONFIG_PATH:
When you run
In CI/CD systems you normally need to store data as part of the ENV variables itself. Storing json files is not always well supported. Therefore, we also support reading base64 encoded config from the env variable
You can create base64 encoded config via clicking the checkbox for base64 in the Mondoo Console under Space -> Settings -> Service Accounts: or you just encode a config file to base64: # macos
cat ~/.config/mondoo/mondoo-default.yml | base64
export MONDOO_CONFIG_BASE64='YWd...zZQo='' |
Beta Was this translation helpful? Give feedback.
@michaelkrieg that is a great question. We have multiple options to set the configuration path, which by default includes the service account to communicate with the Mondoo Platform.
If you have the config locally available, you can use MONDOO_CONFIG_PATH:
When you run
cnspec
orcnquery
you see the log being read from the env variable:In CI/CD systems you normally need to store data as part of the ENV variables itself. Storing json files is …