Chaining secrets

Is there a way to chain secrets? Either by having one secret refer to another, or, at least, by combining the strings when used?

Here’s what I’d like to do. My secrets.yaml file looks something like this:

base_url: https://redacted.com
http_url: https://redacted.com:8123
configurator_url: https://redacted.com:3218

This offends my programmer’s sensibilities :slight_smile:

I’d really like to either be able to have the subsequent secrets refer back to the prior, something like

base_url: https://redacted.com
http_url: "!secret base_url":8123
configurator_url: "!secret base_url":3218

Or, at least, be able to do something in configuration.yaml like:

url: "!secret base_url":"!secret http_port"

Is either of these possible? My research so far suggests not, but maybe I’m missing something?

1 Like

Can’t currently be done, and I don’t think it’s specifically in the pipeline.