Can i store yaml files in vault and retrieve in using chef

I have a file that contains some secrets and i would like to store that file in vault. From there, i would like to retrieve the file via chef. Is this possible without having to store each individual secrets on vault

Yes, you can store YAML files in HashiCorp Vault and retrieve them using Chef. Store the entire YAML file as a base64-encoded string or a direct string in Vault’s Key-Value Secrets Engine. Then, use Chef to retrieve the file content from Vault, decode it if necessary, and use it as needed in your configurations. This method allows you to manage the file as a single secret instead of handling each piece of data individually.

And look at Limits and Maximums | Vault | HashiCorp Developer for secret size limit