Runtime config should support appending hooks

Currently, the runtime config file ~/.spacelift/config.yml overrides specified hooks

instead of appending, like contexts.

We use hooks baked into stacks for the following:

  • azure SP provider credential env vars

  • Vault provider credential env vars

  • github token for read (for module source access)

These are implement via before_init hooks, this means that if any of our consumers specify before_init in runtime config, it breaks the integration with github , vault and azure.

Workaround
so far, we have been able to tell users to use before_plan instead of before_init
Problem
runtime config does not support appending hooks

Please authenticate to join the conversation.

Upvoters
Status

⬆️ Gathering votes

Board

πŸ’‘ Feature Requests

Date

7 months ago

Subscribe to post

Get notified by email when there are changes.