Is it possible to dynamically interact with drone secrets?

My code contains a list of secret variable names, which can be changed by developers. During build stage, I would like to iterate through those variables and for each one retrieve a secret from drone. Is this possible? If not, what is the alternative?

Say I have:

secrets.conf.dist

DB_PASS
SECRET_URL

buildsecrets.sh iterated through lines above, and for each variable name retrieves secret from drone. Then creates secrets.conf

DB_PASS = irj843utw84utwo8eut
SECRET_URL = https://droneciisawesome.com/irj89w3ue4t34

Can this be done?

this is not possible. the only way to inject secrets into a pipeline and make available to your pipeline steps is through yaml configuration, as shown in the docs at https://docs.drone.io/secret/repository/