oracle / oci-typescript-sdk

Oracle Cloud Infrastructure SDK for TypeScript and JavaScript
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/typescriptsdk.htm
Other
77 stars 54 forks source link

pass phrase prompting when using ConfigFileAuthenticationDetailsProvider #309

Open roeycohen opened 2 months ago

roeycohen commented 2 months ago

Hi.

When using ConfigFileAuthenticationDetailsProvider, is it possible to pass the passphrase from the user's input?

from the code it seems the passphrase should be set in the config file... https://github.com/oracle/oci-typescript-sdk/blob/e299503b1e94acb5e2ccc58be1cf172a5e7a75a6/lib/common/lib/auth/config-file-auth.ts#L120 but that would be less secure comparing to the user is typing it in the prompt when possible.

Thanks!

jyotisaini commented 2 months ago

Hi @roeycohen I don't think there is a prompt to ask passphrase while running the program.

roeycohen commented 2 months ago

hi @jyotisaini indeed there isn't. But I'd like to type the passphrase myself and pass it to the ConfigFileAuthenticationDetailsProvider...