-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Is your feature request related to a problem? Please describe.
This request falls in the same context as the previous discussion #629. We have now fully switched to managed layers and it works very well both locally and in the CI. 🥳
When preparing the required (layers) scm overrides, I came across two things that could be improved with the config.yaml.
-
If I want to avoid specifying an additional file with
-lcfor almost every bob command (which would be an issue for the local users) I must add the layer overrides directly to theconfig.yaml. This is then detected as an uncommitted change by git, even though it is only necessary for the local project configuration and should not be committed. -
The CI setup requires GitLab job tokens in the overrides. In the regular scm overrides, I can access the environment variable where the job token is stored, but this doesn't work for the layer overrides. So currently the job token gets inserted into the layer overrides in plaintext. Not ideal, but acceptable in this specific circumstance since job tokens are short-lived and I clean up the generated files afterwards. But maybe there's a better way.
Describe the solution you'd like
-
Allow includes in the
config.yamlso that it doesn't need to be touched when adding layer overrides. Missing include files should be ignored silently, just as with thedefault.yaml. I could then simply generate the file that is already specified as an include. The generated file would be ignored by git. -
Allow access to the system environment variables, possibly limited using
whitelist? Not sure if this is a viable solution.