loading secrets as a file?

Options
grelca
grelca
Community Member

is there any way to use secret loading to point to a file containing a secret rather than the value of the secret itself? specific use case here is for sharing a GCP service account key to be used by development instances of an application

trying to use op://path/to/secret, the google SDKs simply complains the file doesn’t exist since it is actually the json value, not a file name pointing to the location of the json:

E, [2023-09-27T17:04:10.222592 #76034] ERROR -- : Unable to read the credential file specified by GOOGLE_APPLICATION_CREDENTIALS: file <concealed by 1Password> does not exist (RuntimeError)

since shell plugin docs explicitly call out awareness that some CLIs require a file and supports creating credential files from secrets, i am hoping there’s some way i’m missing to do the same for injecting secrets into my application for SDKs that also require a file.


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided

This discussion has been closed.