Reference Vault key from Consul KV entry

Hi all. I’m wondering if it’s possible to reference a secret in Vault from a Consul KV entry?

For example, we would like to store full Spring Boot application.yml files in Consul as such:

application:
    config:
        username: admin

This is then read at app startup using Spring Cloud Consul.

If we had to add a secret there, such as password, we would want that to reference a secret in Vault. For example:

application:
    config:
        username: admin
        password: {{ vault('password') }}

Is something like this possible? If not, what would be the suggested approach?

Thanks - Aaron