Preflight Checklist

  • [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Problem Description

In Kubernetes, secrets are mounted into individual files, with the filename being the name of the secret and the contents of the file containing the secret: https://kubernetes.io/docs/tasks/inject-data-application/distribute-credentials-secure/#create-a-pod-that-has-access-to-the-secret-data-through-a-volume

I want to use Viper to parse and watch these secrets, so I would like to see viper support the following: - Ability to use the name of the file as the key - Ability to make parsing of file contents optional, as the contents of the file often already contain a plain string

Proposed Solution

Add ability to use the name of the loaded file as the key Add ability to disable parsing of file contents

Alternatives Considered

None.

Additional Information

No response

Comment From: github-actions[bot]

Issues with no activity for 30 days are marked stale and subject to being closed.