I have a YAML file that i want to push it to Vault.
# values.yaml
db:
username: msql
pass: p$$ass
However, vault accepts only key/value pair namely secret engine v2.
vault kv secret/projects/craft/app-a mykey=value
If I can convert the YAML file into a properties file, i will get the key/value pair automatically. then, I can push its key/value pair .
I can see that the question Convert YAML file to Application.properties will answer my question.
However, the answers suggested some tools, however,it does not support yaml list format.
Also, the question was closed and no more accept answers !!
I've tried other ways , but nothing seems to work.
How can I convert the YAML file to a full key path/value pairs.. which is at the end a properties file.