Why the heck can't I use secrets in templates?

Sometimes I need to use something like an API key in a larger template. Like if I’m constructing a URL and there’s an API key that needs to be passed as a query string parameter. I think you should be able to do this and definitely found it quite confusing that you couldn’t.

I also would say judging by the lists of posts this forum is telling me mine i similar to that others agree. Here’s some other asks for this as well:

Yes please. Sad to have all your stuff in secrets and then be forced to end up adding stuff directly into the configs because they don’t work in templates.

I think there might be security concerns, but if so, we could have variables that work just like secrets but aren’t secrets.