Pre-populated build parameter keys

Hi, I have a question and was hoping this might be a good place to ask.

Drone promotions allow us to add custom parameters to promotions (which get passed in as environment vars). I see that these env vars can be passed in as build parameters via the Drone UI.

However, I’ve found that a user running a promotion needs to manually enter each parameter key and its value. Ideally, we’d like to be able to have keys pre-populated in the UI, and only enter the value (or even have default values pre-populated as well). This would allow us to not have to keep a reference at hand for each supported/required parameter key name for a given promotion.

For example-- suppose we have a drone pipeline that reads a DATA_TYPE environment variable, and behaves differently depending on whether DATA_TYPE is set to AB or BC. If a user clicks “promote” in UI, I’d like DATA_TYPE to already be visible in the “keys”, so the user would only have to fill out the value, say AB (currently, the user has to input both DATA_TYPE and AB which is not ideal).

Is this possible? Thanks in advance.

Hey Drone Support , do you have any feedback on topic as in how user can achieve the requirements to have pre-populated parameters ? thx

Hello Annuved and Vishal,

I will try to do my best to help.

I have run into the same issue, but I plan to deploy HashiCorp Vault to store my secrets.

You can use a third party environment or secrets management service to fetch secrets. You can define a pipeline that works on “promote” and that pull secrets from the external service.

https://docs.drone.io/extensions/overview/

Is this something you have looked into?